Class: Maglev::Uikit::MenuDropdownComponent::LinkToItemComponent
- Inherits:
-
ItemComponent
- Object
- ViewComponent::Base
- ItemComponent
- Maglev::Uikit::MenuDropdownComponent::LinkToItemComponent
- Defined in:
- app/components/maglev/uikit/menu_dropdown_component.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#html_options ⇒ Object
readonly
Returns the value of attribute html_options.
-
#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, html_options = nil, parent: nil) ⇒ LinkToItemComponent
constructor
A new instance of LinkToItemComponent.
Methods inherited from ItemComponent
Constructor Details
#initialize(options = nil, html_options = nil, parent: nil) ⇒ LinkToItemComponent
Returns a new instance of LinkToItemComponent.
128 129 130 131 132 133 134 135 |
# File 'app/components/maglev/uikit/menu_dropdown_component.rb', line 128 def initialize( = nil, = nil, parent: nil) @parent_component = parent @options = @html_options = || {} @variant = @html_options.delete(:variant) apply_parent_classes end |
Instance Attribute Details
#html_options ⇒ Object (readonly)
Returns the value of attribute html_options.
126 127 128 |
# File 'app/components/maglev/uikit/menu_dropdown_component.rb', line 126 def @html_options end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
126 127 128 |
# File 'app/components/maglev/uikit/menu_dropdown_component.rb', line 126 def @options end |
#parent_component ⇒ Object (readonly)
Returns the value of attribute parent_component.
126 127 128 |
# File 'app/components/maglev/uikit/menu_dropdown_component.rb', line 126 def parent_component @parent_component end |
#variant ⇒ Object (readonly)
Returns the value of attribute variant.
126 127 128 |
# File 'app/components/maglev/uikit/menu_dropdown_component.rb', line 126 def variant @variant end |