Class: Playbook::PbToggle::Toggle

Inherits:
Object
  • Object
show all
Includes:
ActionView::Context, ActionView::Helpers::FormTagHelper, Playbook::Props
Defined in:
app/pb_kits/playbook/pb_toggle/toggle.rb

Instance Method Summary collapse

Methods included from Playbook::Props

#dark_props, #generate_classname, #generate_classname_without_spacing, #initialize, #prop, #spacing_options, #spacing_props, #spacing_values

Instance Method Details

#classnameObject



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

#inputObject



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