Class: Spina::Parts::NestedContentBlocks

Inherits:
ContentBlocks show all
Defined in:
app/models/spina/parts/nested_content_blocks.rb

Overview

Same behavior as ContentBlocks but registered as a separate Part type with its own Stimulus controller name (“nested-content-blocks”). This avoids Stimulus scope conflicts when used inside Repeaters or other ContentBlocks containers.

Use ‘options` to limit which block types are available (prevents recursive nesting of the same block type).

Instance Attribute Summary

Attributes inherited from ContentBlocks

#options

Method Summary

Methods inherited from ContentBlocks

#available_templates