Class: Olivander::Components::PortletComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Olivander::Components::PortletComponent
- Defined in:
- app/components/olivander/components/portlet_component.rb
Instance Method Summary collapse
-
#initialize(title, *args) ⇒ PortletComponent
constructor
A new instance of PortletComponent.
Constructor Details
#initialize(title, *args) ⇒ PortletComponent
Returns a new instance of PortletComponent.
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'app/components/olivander/components/portlet_component.rb', line 9 def initialize(title, *args) super @title = title = args. @card_type = [:card_type] || 'card-default' @background = [:background] @header_background = [:header_background] @turbo_frame = [:turbo_frame] @src = [:src] @loading = [:loading] @card_data = [:card_data] @turbo_frame_data = [:turbo_frame_data] end |