Class: Playbook::PbToggle::Toggle
- Inherits:
-
Object
- Object
- Playbook::PbToggle::Toggle
show all
- Includes:
- ActionView::Context, ActionView::Helpers::FormTagHelper, Playbook::Props
- Defined in:
- app/pb_kits/playbook/pb_toggle/toggle.rb
Instance Method Summary
collapse
#dark_props, #generate_classname, #generate_classname_without_spacing, #initialize, #prop, #spacing_options, #spacing_props, #spacing_values
Instance Method Details
#classname ⇒ Object
25
26
27
|
# File 'app/pb_kits/playbook/pb_toggle/toggle.rb', line 25
def classname
generate_classname("pb_toggle_kit", size, checked_class)
end
|
29
30
31
|
# File 'app/pb_kits/playbook/pb_toggle/toggle.rb', line 29
def input
check_box_tag(name, value, checked, input_options)
end
|