Class: Katalyst::Navigation::Editor::NewItemsComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- Katalyst::Navigation::Editor::NewItemsComponent
- Includes:
- Turbo::FramesHelper
- Defined in:
- app/components/katalyst/navigation/editor/new_items_component.rb
Constant Summary
Constants inherited from BaseComponent
BaseComponent::ITEM_CONTROLLER, BaseComponent::LIST_CONTROLLER, BaseComponent::MENU_CONTROLLER, BaseComponent::NEW_ITEM_CONTROLLER, BaseComponent::STATUS_BAR_CONTROLLER
Instance Attribute Summary
Attributes inherited from BaseComponent
Instance Method Summary collapse
Methods inherited from BaseComponent
#call, #initialize, #menu_form_id
Constructor Details
This class inherits a constructor from Katalyst::Navigation::Editor::BaseComponent
Instance Method Details
#items ⇒ Object
11 12 13 14 15 16 |
# File 'app/components/katalyst/navigation/editor/new_items_component.rb', line 11 def items Katalyst::.config.items.map do |item_class| item_class = item_class.safe_constantize if item_class.is_a?(String) item_class.new(menu:) end end |