Class: LightningUiKit::TableComponent

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

Instance Method Summary collapse

Methods inherited from BaseComponent

#merge_classes

Methods included from HeroiconHelper

#heroicon

Constructor Details

#initialize(data:, actions_title: "Actions", empty_message: "No data available") ⇒ TableComponent

Returns a new instance of TableComponent.



11
12
13
14
15
# File 'app/components/lightning_ui_kit/table_component.rb', line 11

def initialize(data:, actions_title: "Actions", empty_message: "No data available")
  @data = data
  @actions_title = actions_title
  @empty_message = empty_message
end