Class: Katalyst::Navigation::Editor::List
- Defined in:
- app/helpers/katalyst/navigation/editor/list.rb
Constant Summary collapse
- ACTIONS =
<<~ACTIONS.gsub(/\s+/, " ").freeze dragstart->#{LIST_CONTROLLER}#dragstart dragover->#{LIST_CONTROLLER}#dragover dragenter->#{LIST_CONTROLLER}#dragenter dragleave->#{LIST_CONTROLLER}#dragleave drop->#{LIST_CONTROLLER}#drop dragend->#{LIST_CONTROLLER}#dragend ACTIONS
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
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Katalyst::Navigation::Editor::Base
Instance Method Details
#build(options, &_block) ⇒ Object
16 17 18 19 20 |
# File 'app/helpers/katalyst/navigation/editor/list.rb', line 16 def build(, &_block) tag.ol **(id: , **) do yield self end end |
#items(*items) ⇒ Object
22 23 24 25 26 27 |
# File 'app/helpers/katalyst/navigation/editor/list.rb', line 22 def items(*items) render partial: "katalyst/navigation/menus/item", layout: "katalyst/navigation/menus/list_item", collection: items, as: :item end |