Class: Olivander::Components::TablePortletComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Olivander::Components::TablePortletComponent
- Defined in:
- app/components/olivander/components/table_portlet_component.rb
Defined Under Namespace
Classes: Builder, TableComponent
Instance Method Summary collapse
-
#initialize(collection, *args) ⇒ TablePortletComponent
constructor
A new instance of TablePortletComponent.
Constructor Details
#initialize(collection, *args) ⇒ TablePortletComponent
Returns a new instance of TablePortletComponent.
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'app/components/olivander/components/table_portlet_component.rb', line 9 def initialize(collection, *args) super = args. @collection = collection @builder = [:builder] @title = [:title] || '' @card_type = [:card_type] || 'card-default' @background = [:background] @header_background = [:header_background] @turbo_frame = [:turbo_frame] @max_height = [:max_height] @headers = [:headers].nil? ? true : [:headers] @id = [:id] @card_data = [:card_data] @turbo_frame_data = [:turbo_frame_data] end |