Class: FormProps::Inputs::CollectionCheckBoxes::CheckBoxBuilder
- Inherits:
-
Builder
- Object
- Builder
- FormProps::Inputs::CollectionCheckBoxes::CheckBoxBuilder
- Defined in:
- lib/form_props/inputs/collection_check_boxes.rb
Instance Method Summary collapse
Instance Method Details
#render(extra_html_options = {}) ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/form_props/inputs/collection_check_boxes.rb', line 14 def render( = {}) = .merge(@input_html_options) [:multiple] = true [:skip_default_ids] = false checkbox = CheckBox.new(@object_name, @method_name, @template_object, @value, nil, ) checkbox.render(true) checkbox.json.label @text end |