Class: LightningUiKit::CheckboxComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- LightningUiKit::CheckboxComponent
- Defined in:
- app/components/lightning_ui_kit/checkbox_component.rb
Instance Method Summary collapse
-
#initialize(name:, value: nil, label: nil, description: nil, form: nil, checked: false, disabled: false, **options) ⇒ CheckboxComponent
constructor
A new instance of CheckboxComponent.
Methods inherited from BaseComponent
Methods included from HeroiconHelper
Constructor Details
#initialize(name:, value: nil, label: nil, description: nil, form: nil, checked: false, disabled: false, **options) ⇒ CheckboxComponent
Returns a new instance of CheckboxComponent.
4 5 6 7 8 9 10 11 12 13 |
# File 'app/components/lightning_ui_kit/checkbox_component.rb', line 4 def initialize(name:, value: nil, label: nil, description: nil, form: nil, checked: false, disabled: false, **) @form = form @name = name @value = value @description = description @label = label @checked = checked @disabled = disabled @options = end |