Class: Solidstats::Ui::NavigationComponent

Inherits:
BaseComponent
  • Object
show all
Defined in:
app/components/solidstats/ui/navigation_component.rb

Overview

Navigation component for dashboard sections

Instance Method Summary collapse

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: [], **options)
  @current_section = current_section
  @sections = sections
  @actions = actions
  @options = options
end