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\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
29
30
31
|
# File 'app/components/katalyst/navigation/editor_component.rb', line 29
def errors
@errors ||= Katalyst::Navigation.config.errors_component.constantize.new(menu:)
end
|
#item(item:) ⇒ Object
25
26
27
|
# File 'app/components/katalyst/navigation/editor_component.rb', line 25
def item(item:)
Editor::ItemComponent.new(menu:, item:)
end
|
#item_editor(item:) ⇒ Object
21
22
23
|
# File 'app/components/katalyst/navigation/editor_component.rb', line 21
def item_editor(item:)
Editor::ItemEditorComponent.new(menu:, item:)
end
|
#new_items ⇒ Object
17
18
19
|
# File 'app/components/katalyst/navigation/editor_component.rb', line 17
def new_items
@new_items ||= Editor::NewItemsComponent.new(menu:)
end
|
#status_bar ⇒ Object
13
14
15
|
# File 'app/components/katalyst/navigation/editor_component.rb', line 13
def status_bar
@status_bar ||= Editor::StatusBarComponent.new(menu:)
end
|