Class: Maglev::Uikit::MenuDropdownComponent::WrapperItemComponent

Inherits:
BaseComponent
  • 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 BaseComponent

#button_class_names

Constructor Details

#initialize(options, parent: nil) ⇒ WrapperItemComponent

Returns a new instance of WrapperItemComponent.



230
231
232
233
234
235
# File 'app/components/maglev/uikit/menu_dropdown_component.rb', line 230

def initialize(options, parent: nil)
  @parent_component = parent
  @options = options || {}

  apply_parent_classes
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



226
227
228
# File 'app/components/maglev/uikit/menu_dropdown_component.rb', line 226

def options
  @options
end

#parent_componentObject (readonly)

Returns the value of attribute parent_component.



226
227
228
# File 'app/components/maglev/uikit/menu_dropdown_component.rb', line 226

def parent_component
  @parent_component
end