Class: Playbook::PbCheckbox::Checkbox

Inherits:
Object
  • Object
show all
Includes:
Playbook::Props
Defined in:
app/pb_kits/playbook/pb_checkbox/checkbox.rb

Instance Attribute Summary

Attributes included from Playbook::Props

#block

Instance Method Summary collapse

Methods included from Playbook::Props

#generate_classname, #initialize, #prop

Instance Method Details

#checked_htmlObject



17
18
19
# File 'app/pb_kits/playbook/pb_checkbox/checkbox.rb', line 17

def checked_html
  checked ? "checked='true'" : nil
end

#classnameObject



21
22
23
# File 'app/pb_kits/playbook/pb_checkbox/checkbox.rb', line 21

def classname
  generate_classname("pb_checkbox_kit", dark_class, checked_class)
end