Node - nestedExpand

Purpose

The nestedExpand node is a container that allows content to be hidden or shown, similar to an accordion or disclosure widget.

nestedExpand is available to avoid infinite nesting, therefore it can only be placed within a TableCell or TableHeader, where an Expand can only be placed at the top-level or inside a .

Example

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 { "type": "nestedExpand", "attrs": { "title": "Hello world" }, "content": [ { "type": "paragraph", "content": [ { "type": "text", "text": "Hello world" } ] } ] }

Content

nestedExpand can contain an array of one-or-more:

Fields

NameRequiredTypeValueNotes
contentArray of one-or-more above mentioned nodes.
typestring"nestedExpand"
attrsobject
attrs.titlestring

Rate this page: