Class: Pajamas::EmptyStateComponent
- Defined in:
- app/components/pajamas/empty_state_component.rb
Instance Method Summary collapse
-
#initialize(compact: false, title: nil, svg_path: nil, primary_button_text: nil, primary_button_link: nil, secondary_button_text: nil, secondary_button_link: nil, empty_state_options: {}) ⇒ EmptyStateComponent
constructor
A new instance of EmptyStateComponent.
Constructor Details
#initialize(compact: false, title: nil, svg_path: nil, primary_button_text: nil, primary_button_link: nil, secondary_button_text: nil, secondary_button_link: nil, empty_state_options: {}) ⇒ EmptyStateComponent
Returns a new instance of EmptyStateComponent.
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'app/components/pajamas/empty_state_component.rb', line 13 def initialize( compact: false, title: nil, svg_path: nil, primary_button_text: nil, primary_button_link: nil, secondary_button_text: nil, secondary_button_link: nil, empty_state_options: {} ) @compact = compact @title = title @svg_path = svg_path.to_s @primary_button_text = @primary_button_link = @secondary_button_text = @secondary_button_link = @empty_state_options = end |