Class: Katalyst::Content::Editor::Base
- Inherits:
-
Object
- Object
- Katalyst::Content::Editor::Base
- Defined in:
- app/helpers/katalyst/content/editor/base.rb
Constant Summary collapse
- CONTAINER_CONTROLLER =
"content--editor--container"- LIST_CONTROLLER =
"content--editor--list"- ITEM_CONTROLLER =
"content--editor--item"- STATUS_BAR_CONTROLLER =
"content--editor--status-bar"- NEW_ITEM_CONTROLLER =
"content--editor--new-item"- TURBO_FRAME =
"content--editor--item-frame"
Instance Attribute Summary collapse
-
#container ⇒ Object
Returns the value of attribute container.
-
#template ⇒ Object
Returns the value of attribute template.
Instance Method Summary collapse
- #attributes_scope ⇒ Object
- #container_form_id ⇒ Object
-
#initialize(template, container) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(template, container) ⇒ Base
Returns a new instance of Base.
20 21 22 23 |
# File 'app/helpers/katalyst/content/editor/base.rb', line 20 def initialize(template, container) self.template = template self.container = container end |
Instance Attribute Details
#container ⇒ Object
Returns the value of attribute container.
15 16 17 |
# File 'app/helpers/katalyst/content/editor/base.rb', line 15 def container @container end |
#template ⇒ Object
Returns the value of attribute template.
15 16 17 |
# File 'app/helpers/katalyst/content/editor/base.rb', line 15 def template @template end |
Instance Method Details
#attributes_scope ⇒ Object
29 30 31 |
# File 'app/helpers/katalyst/content/editor/base.rb', line 29 def attributes_scope "#{container.model_name.param_key}[items_attributes][]" end |
#container_form_id ⇒ Object
25 26 27 |
# File 'app/helpers/katalyst/content/editor/base.rb', line 25 def container_form_id dom_id(container, :items) end |