Class: Playbook::PbCheckbox::Checkbox
- Inherits:
-
Object
- Object
- Playbook::PbCheckbox::Checkbox
show all
- Includes:
- Playbook::Props
- Defined in:
- app/pb_kits/playbook/pb_checkbox/checkbox.rb
Instance Attribute Summary
#block
Instance Method Summary
collapse
#generate_classname, #initialize, #prop
Instance Method Details
#checked_html ⇒ Object
17
18
19
|
# File 'app/pb_kits/playbook/pb_checkbox/checkbox.rb', line 17
def checked_html
checked ? "checked='true'" : nil
end
|
#classname ⇒ Object
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
|