Class: Katalyst::Navigation::Editor::Base
- Inherits:
-
Object
- Object
- Katalyst::Navigation::Editor::Base
- Defined in:
- app/helpers/katalyst/navigation/editor/base.rb
Constant Summary collapse
- MENU_CONTROLLER =
"navigation--editor--menu"- LIST_CONTROLLER =
"navigation--editor--list"- ITEM_CONTROLLER =
"navigation--editor--item"- STATUS_BAR_CONTROLLER =
"navigation--editor--status-bar"- NEW_ITEM_CONTROLLER =
"navigation--editor--new-item"- ATTRIBUTES_SCOPE =
"menu[items_attributes][]"- TURBO_FRAME =
"navigation--editor--item-frame"
Instance Attribute Summary collapse
-
#menu ⇒ Object
Returns the value of attribute menu.
-
#template ⇒ Object
Returns the value of attribute template.
Instance Method Summary collapse
-
#initialize(template, menu) ⇒ Base
constructor
A new instance of Base.
- #menu_form_id ⇒ Object
Constructor Details
#initialize(template, menu) ⇒ Base
Returns a new instance of Base.
20 21 22 23 |
# File 'app/helpers/katalyst/navigation/editor/base.rb', line 20 def initialize(template, ) self.template = template self. = end |
Instance Attribute Details
#menu ⇒ Object
Returns the value of attribute menu.
16 17 18 |
# File 'app/helpers/katalyst/navigation/editor/base.rb', line 16 def end |
#template ⇒ Object
Returns the value of attribute template.
16 17 18 |
# File 'app/helpers/katalyst/navigation/editor/base.rb', line 16 def template @template end |
Instance Method Details
#menu_form_id ⇒ Object
25 26 27 |
# File 'app/helpers/katalyst/navigation/editor/base.rb', line 25 def dom_id(, :items) end |