Class: StompBase::Ui::HeaderComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- StompBase::Ui::HeaderComponent
- Defined in:
- app/components/stomp_base/ui/header_component.rb
Instance Method Summary collapse
-
#initialize(title:, navigation: {}, display_options: {}) ⇒ HeaderComponent
constructor
A new instance of HeaderComponent.
Methods inherited from BaseComponent
Constructor Details
#initialize(title:, navigation: {}, display_options: {}) ⇒ HeaderComponent
Returns a new instance of HeaderComponent.
6 7 8 9 10 11 12 13 14 15 16 |
# File 'app/components/stomp_base/ui/header_component.rb', line 6 def initialize(title:, navigation: {}, display_options: {}) super() @title = title @back_path = [:back_path] @back_label = [:back_label] @show_refresh = [:show_refresh] || false @gradient_colors = [:gradient_colors] || default_gradient_colors @status_message = [:status_message] @custom_button = [:custom_button] @icon = [:icon] end |