Class: Maglev::Uikit::MenuDropdownComponent::NestedMenuComponent

Inherits:
ItemComponent
  • Object
show all
Includes:
RenderPolymorphicItems
Defined in:
app/components/maglev/uikit/menu_dropdown_component.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from ItemComponent

inner_content

Constructor Details

#initialize(placement:, parent:) ⇒ NestedMenuComponent

Returns a new instance of NestedMenuComponent.



197
198
199
200
# File 'app/components/maglev/uikit/menu_dropdown_component.rb', line 197

def initialize(placement:, parent:)
  @placement = placement
  @parent_component = parent
end

Instance Attribute Details

#parent_componentObject (readonly)

Returns the value of attribute parent_component.



191
192
193
# File 'app/components/maglev/uikit/menu_dropdown_component.rb', line 191

def parent_component
  @parent_component
end

#placementObject (readonly)

Returns the value of attribute placement.



191
192
193
# File 'app/components/maglev/uikit/menu_dropdown_component.rb', line 191

def placement
  @placement
end

Instance Method Details

#right_arrow?Boolean

Returns:

  • (Boolean)


218
219
220
# File 'app/components/maglev/uikit/menu_dropdown_component.rb', line 218

def right_arrow?
  true
end