Class: Maglev::Uikit::MenuDropdownComponent::WrapperItemComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- Maglev::Uikit::MenuDropdownComponent::WrapperItemComponent
- Includes:
- RenderPolymorphicItems
- 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, parent: nil) ⇒ WrapperItemComponent
constructor
A new instance of WrapperItemComponent.
Methods inherited from BaseComponent
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(, parent: nil) @parent_component = parent @options = || {} apply_parent_classes end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
226 227 228 |
# File 'app/components/maglev/uikit/menu_dropdown_component.rb', line 226 def @options end |
#parent_component ⇒ Object (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 |