Class: AblyUi::Core::MeganavControl

Inherits:
ViewComponent::Base
  • Object
show all
Includes:
MeganavConfig
Defined in:
lib/ably_ui/core/meganav_control/meganav_control.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from MeganavConfig

#panels, #theme, #theme_setup, #themes

Constructor Details

#initialize(aria_controls:, aria_label:, theme_name:, additional_css: '') ⇒ MeganavControl

Returns a new instance of MeganavControl.



7
8
9
10
11
12
13
14
15
16
17
# File 'lib/ably_ui/core/meganav_control/meganav_control.rb', line 7

def initialize(
  aria_controls:,
  aria_label:,
  theme_name:,
  additional_css: ''
)
  @aria_controls = aria_controls
  @aria_label = aria_label
  @additional_css = additional_css
  theme_setup(theme_name)
end

Instance Attribute Details

#additional_cssObject (readonly)

Returns the value of attribute additional_css.



5
6
7
# File 'lib/ably_ui/core/meganav_control/meganav_control.rb', line 5

def additional_css
  @additional_css
end

#aria_controlsObject (readonly)

Returns the value of attribute aria_controls.



5
6
7
# File 'lib/ably_ui/core/meganav_control/meganav_control.rb', line 5

def aria_controls
  @aria_controls
end

#aria_labelObject (readonly)

Returns the value of attribute aria_label.



5
6
7
# File 'lib/ably_ui/core/meganav_control/meganav_control.rb', line 5

def aria_label
  @aria_label
end