Class: Anchor::SideNavComponent
- Defined in:
- app/components/anchor/side_nav_component.rb
Constant Summary
Constants included from ViewHelper
Instance Method Summary collapse
-
#initialize(apps:, apps_button_text:, nav_items:, employee:, footer_menu_items: [], main_content_options: {}, sidebar_options: {}, **kwargs) ⇒ SideNavComponent
constructor
A new instance of SideNavComponent.
Methods inherited from Component
Methods included from ViewHelper
#anchor_form_with, #anchor_svg, #deep_blank?, #merge_options, #popover_trigger_attributes
Methods included from FetchOrFallbackHelper
Constructor Details
#initialize(apps:, apps_button_text:, nav_items:, employee:, footer_menu_items: [], main_content_options: {}, sidebar_options: {}, **kwargs) ⇒ SideNavComponent
Returns a new instance of SideNavComponent.
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'app/components/anchor/side_nav_component.rb', line 6 def initialize( apps:, apps_button_text:, nav_items:, employee:, footer_menu_items: [], main_content_options: {}, sidebar_options: {}, **kwargs ) @apps = apps @apps_button_text = @nav_items = nav_items @employee = employee @footer_menu_items = @main_content_options = @sidebar_options = super(**kwargs) end |