Method: Polaris::BaseCheckbox#initialize
- Defined in:
- app/components/polaris/base_checkbox.rb
#initialize(form: nil, attribute: nil, name: nil, checked: false, disabled: false, mulitple: false, value: "1", unchecked_value: "0", **system_arguments) ⇒ BaseCheckbox
Returns a new instance of BaseCheckbox.
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'app/components/polaris/base_checkbox.rb', line 3 def initialize( form: nil, attribute: nil, name: nil, checked: false, disabled: false, mulitple: false, value: "1", unchecked_value: "0", **system_arguments ) @form = form @attribute = attribute @name = name @checked = checked @disabled = disabled @value = value @unchecked_value = unchecked_value @system_arguments = system_arguments end |