Class: SolidWebUi::Ui::TableComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- SolidWebUi::Ui::TableComponent
- Defined in:
- app/components/solid_web_ui/ui/table_component.rb
Overview
A styled data table. Pass column headers; render the body rows as the
component's content (a block of
Instance Method Summary collapse
-
#initialize(headers:, empty_message: "Nothing to show.") ⇒ TableComponent
constructor
A new instance of TableComponent.
Constructor Details
#initialize(headers:, empty_message: "Nothing to show.") ⇒ TableComponent
Returns a new instance of TableComponent.
9 10 11 12 |
# File 'app/components/solid_web_ui/ui/table_component.rb', line 9 def initialize(headers:, empty_message: "Nothing to show.") @headers = headers @empty_message = end |