class SimpleFormExtension::Inputs::CollectionCheckBoxesInput

Protected Instance Methods

build_nested_boolean_style_item_tag(collection_builder) click to toggle source
# File lib/simple_form_extension/inputs/collection_check_boxes_input.rb, line 6
def build_nested_boolean_style_item_tag(collection_builder)
  "#{collection_builder.check_box} <i class=\"checkbox-icon\"></i> #{collection_builder.text}".html_safe
end
item_wrapper_class() click to toggle source
# File lib/simple_form_extension/inputs/collection_check_boxes_input.rb, line 10
def item_wrapper_class
  nested_boolean_style? ? "checkbox" : "checkbox-inline"
end