Class: Katalyst::Navigation::EditorComponent
Constant Summary
collapse
- ACTIONS =
"submit->\#{MENU_CONTROLLER}#reindex\nnavigation:drop->\#{MENU_CONTROLLER}#drop\nnavigation:reindex->\#{MENU_CONTROLLER}#reindex\nnavigation:reset->\#{MENU_CONTROLLER}#reset\nturbo:render@document->\#{MENU_CONTROLLER}#connect\n".gsub(/\s+/, " ").freeze
Katalyst::Navigation::Editor::BaseComponent::ITEM_CONTROLLER, Katalyst::Navigation::Editor::BaseComponent::LIST_CONTROLLER, Katalyst::Navigation::Editor::BaseComponent::MENU_CONTROLLER, Katalyst::Navigation::Editor::BaseComponent::NEW_ITEM_CONTROLLER, Katalyst::Navigation::Editor::BaseComponent::STATUS_BAR_CONTROLLER
Instance Attribute Summary
#menu
Instance Method Summary
collapse
#call, #initialize, #menu_form_id
Instance Method Details
#errors ⇒ Object
30
31
32
|
# File 'app/components/katalyst/navigation/editor_component.rb', line 30
def errors
@errors ||= Katalyst::Navigation.config.errors_component.constantize.new(menu:)
end
|
#item(item:) ⇒ Object
26
27
28
|
# File 'app/components/katalyst/navigation/editor_component.rb', line 26
def item(item:)
Editor::ItemComponent.new(menu:, item:)
end
|
#item_editor(item:) ⇒ Object
22
23
24
|
# File 'app/components/katalyst/navigation/editor_component.rb', line 22
def item_editor(item:)
Editor::ItemEditorComponent.new(menu:, item:)
end
|
#new_items ⇒ Object
18
19
20
|
# File 'app/components/katalyst/navigation/editor_component.rb', line 18
def new_items
@new_items ||= Editor::NewItemsComponent.new(menu:)
end
|
#status_bar ⇒ Object
14
15
16
|
# File 'app/components/katalyst/navigation/editor_component.rb', line 14
def status_bar
@status_bar ||= Editor::StatusBarComponent.new(menu:)
end
|