Class: Anchor::SideNavComponent

Inherits:
Component
  • Object
show all
Defined in:
app/components/anchor/side_nav_component.rb

Constant Summary

Constants included from ViewHelper

ViewHelper::ANCHOR_HELPERS

Instance Method Summary collapse

Methods inherited from Component

generate_id

Methods included from ViewHelper

#anchor_form_with, #anchor_svg, #deep_blank?, #merge_options, #popover_trigger_attributes

Methods included from FetchOrFallbackHelper

#fetch_or_fallback

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 = apps_button_text
  @nav_items = nav_items
  @employee = employee
  @footer_menu_items = footer_menu_items
  @main_content_options = main_content_options
  @sidebar_options = sidebar_options

  super(**kwargs)
end