Class: Jav::SidebarComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Jav::SidebarComponent
- Defined in:
- app/components/jav/sidebar_component.rb
Instance Method Summary collapse
- #dashboards ⇒ Object
-
#initialize(sidebar_open: nil, for_mobile: false) ⇒ SidebarComponent
constructor
A new instance of SidebarComponent.
- #resources ⇒ Object
- #stimulus_target ⇒ Object
- #tools ⇒ Object
Constructor Details
#initialize(sidebar_open: nil, for_mobile: false) ⇒ SidebarComponent
Returns a new instance of SidebarComponent.
4 5 6 7 8 |
# File 'app/components/jav/sidebar_component.rb', line 4 def initialize(sidebar_open: nil, for_mobile: false) super @sidebar_open = @for_mobile = for_mobile end |
Instance Method Details
#dashboards ⇒ Object
10 11 12 |
# File 'app/components/jav/sidebar_component.rb', line 10 def dashboards Jav::App. end |
#resources ⇒ Object
14 15 16 |
# File 'app/components/jav/sidebar_component.rb', line 14 def resources Jav::App. end |
#stimulus_target ⇒ Object
22 23 24 |
# File 'app/components/jav/sidebar_component.rb', line 22 def stimulus_target @for_mobile ? "mobileSidebar" : "sidebar" end |