Class: Maglev::Uikit::MenuDropdownComponent::TextItemComponent
- Inherits:
-
ItemComponent
- Object
- ViewComponent::Base
- ItemComponent
- Maglev::Uikit::MenuDropdownComponent::TextItemComponent
- 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.
-
#variant ⇒ Object
readonly
Returns the value of attribute variant.
Instance Method Summary collapse
-
#initialize(options = nil, parent: nil) ⇒ TextItemComponent
constructor
A new instance of TextItemComponent.
Methods inherited from ItemComponent
Constructor Details
#initialize(options = nil, parent: nil) ⇒ TextItemComponent
Returns a new instance of TextItemComponent.
104 105 106 107 108 109 110 |
# File 'app/components/maglev/uikit/menu_dropdown_component.rb', line 104 def initialize( = nil, parent: nil) @parent_component = parent @options = || {} @variant = @options.delete(:variant) apply_parent_classes end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
102 103 104 |
# File 'app/components/maglev/uikit/menu_dropdown_component.rb', line 102 def @options end |
#parent_component ⇒ Object (readonly)
Returns the value of attribute parent_component.
102 103 104 |
# File 'app/components/maglev/uikit/menu_dropdown_component.rb', line 102 def parent_component @parent_component end |
#variant ⇒ Object (readonly)
Returns the value of attribute variant.
102 103 104 |
# File 'app/components/maglev/uikit/menu_dropdown_component.rb', line 102 def variant @variant end |