Class: Maglev::Uikit::MenuDropdownComponent::ButtonItemComponent

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from ItemComponent

inner_content, #right_arrow?

Constructor Details

#initialize(options = nil, parent: nil) ⇒ ButtonItemComponent

Returns a new instance of ButtonItemComponent.



153
154
155
156
157
158
# File 'app/components/maglev/uikit/menu_dropdown_component.rb', line 153

def initialize(options = nil, parent: nil)
  @parent_component = parent
  @options = (options || {}).merge(type: 'button')

  apply_parent_classes
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



151
152
153
# File 'app/components/maglev/uikit/menu_dropdown_component.rb', line 151

def options
  @options
end

#parent_componentObject (readonly)

Returns the value of attribute parent_component.



151
152
153
# File 'app/components/maglev/uikit/menu_dropdown_component.rb', line 151

def parent_component
  @parent_component
end