Class: Maglev::Uikit::MenuDropdownComponent::ButtonItemComponent
- Inherits:
-
ItemComponent
- Object
- ViewComponent::Base
- ItemComponent
- Maglev::Uikit::MenuDropdownComponent::ButtonItemComponent
- Defined in:
- app/components/maglev/uikit/menu_dropdown_component.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#parent_component ⇒ Object
readonly
Returns the value of attribute parent_component.
Instance Method Summary collapse
-
#initialize(options = nil, parent: nil) ⇒ ButtonItemComponent
constructor
A new instance of ButtonItemComponent.
Methods inherited from ItemComponent
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( = nil, parent: nil) @parent_component = parent @options = ( || {}).merge(type: 'button') apply_parent_classes end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
151 152 153 |
# File 'app/components/maglev/uikit/menu_dropdown_component.rb', line 151 def @options end |
#parent_component ⇒ Object (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 |