Class: LightningUiKit::Command::ItemComponent

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value: nil, **options) ⇒ ItemComponent

Returns a new instance of ItemComponent.



4
5
6
7
# File 'app/components/lightning_ui_kit/command/item_component.rb', line 4

def initialize(value: nil, **options)
  @value = value
  @options = options
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



2
3
4
# File 'app/components/lightning_ui_kit/command/item_component.rb', line 2

def value
  @value
end