Class: Katalyst::Navigation::Editor::Menu

Inherits:
Base
  • Object
show all
Defined in:
app/helpers/katalyst/navigation/editor/menu.rb

Constant Summary collapse

ACTIONS =
"submit->\#{MENU_CONTROLLER}#reindex\nnavigation:drop->\#{MENU_CONTROLLER}#drop\nnavigation:reindex->\#{MENU_CONTROLLER}#reindex\nnavigation:reset->\#{MENU_CONTROLLER}#reset\n".gsub(/\s+/, " ").freeze

Constants inherited from Base

Base::ATTRIBUTES_SCOPE, Base::ITEM_CONTROLLER, Base::LIST_CONTROLLER, Base::MENU_CONTROLLER, Base::NEW_ITEM_CONTROLLER, Base::STATUS_BAR_CONTROLLER, Base::TURBO_FRAME

Instance Attribute Summary

Attributes inherited from Base

#menu, #template

Instance Method Summary collapse

Methods inherited from Base

#initialize, #menu_form_id

Constructor Details

This class inherits a constructor from Katalyst::Navigation::Editor::Base

Instance Method Details

#build(options) ⇒ Object



14
15
16
17
18
19
20
# File 'app/helpers/katalyst/navigation/editor/menu.rb', line 14

def build(options)
  form_with(model: menu, **default_options(id: menu_form_id, **options)) do |form|
    concat hidden_input
    concat errors
    concat(capture { yield form })
  end
end