Class: LightningUiKit::CheckboxComponent

Inherits:
BaseComponent
  • Object
show all
Defined in:
app/components/lightning_ui_kit/checkbox_component.rb

Instance Method Summary collapse

Methods inherited from BaseComponent

#merge_classes

Methods included from HeroiconHelper

#heroicon

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, **options)
  @form = form
  @name = name
  @value = value
  @description = description
  @label = label
  @checked = checked
  @disabled = disabled
  @options = options
end