Class: Solidstats::Ui::NavigationComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- Solidstats::Ui::NavigationComponent
- Defined in:
- app/components/solidstats/ui/navigation_component.rb
Overview
Navigation component for dashboard sections
Instance Method Summary collapse
-
#initialize(current_section: "overview", sections: [], actions: [], **options) ⇒ NavigationComponent
constructor
A new instance of NavigationComponent.
Methods inherited from BaseComponent
#css_classes, #format_number, #safe_get, #status_class, #status_icon, #status_text
Constructor Details
#initialize(current_section: "overview", sections: [], actions: [], **options) ⇒ NavigationComponent
Returns a new instance of NavigationComponent.
7 8 9 10 11 12 |
# File 'app/components/solidstats/ui/navigation_component.rb', line 7 def initialize(current_section: "overview", sections: [], actions: [], **) @current_section = current_section @sections = sections @actions = actions @options = end |