Class: Katalyst::Navigation::Editor::BaseComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Katalyst::Navigation::Editor::BaseComponent
- Includes:
- HtmlAttributes
- Defined in:
- app/components/katalyst/navigation/editor/base_component.rb
Direct Known Subclasses
ErrorsComponent, ItemComponent, NewItemComponent, NewItemsComponent, RowComponent, StatusBarComponent, TableComponent, Katalyst::Navigation::EditorComponent
Instance Attribute Summary collapse
-
#item ⇒ Object
Returns the value of attribute item.
-
#menu ⇒ Object
Returns the value of attribute menu.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(menu:, item: nil) ⇒ BaseComponent
constructor
A new instance of BaseComponent.
- #menu_form_id ⇒ Object
Constructor Details
#initialize(menu:, item: nil) ⇒ BaseComponent
Returns a new instance of BaseComponent.
13 14 15 16 17 18 |
# File 'app/components/katalyst/navigation/editor/base_component.rb', line 13 def initialize(menu:, item: nil, **) super(**) @menu = @item = item end |
Instance Attribute Details
#item ⇒ Object
Returns the value of attribute item.
9 10 11 |
# File 'app/components/katalyst/navigation/editor/base_component.rb', line 9 def item @item end |
#menu ⇒ Object
Returns the value of attribute menu.
9 10 11 |
# File 'app/components/katalyst/navigation/editor/base_component.rb', line 9 def @menu end |
Instance Method Details
#call ⇒ Object
20 |
# File 'app/components/katalyst/navigation/editor/base_component.rb', line 20 def call; end |
#menu_form_id ⇒ Object
22 23 24 |
# File 'app/components/katalyst/navigation/editor/base_component.rb', line 22 def dom_id(, :items) end |