The expand
node is a container that enables content to be hidden or shown, similar to an accordion or disclosure widget.
Note: To add an expand to a table (tableCell
or tableHeader
) use nestedExpand
instead.
expand
is a top-level block node.
1 2{ "type": "expand", "attrs": { "title": "Hello world" }, "content": [ { "type": "paragraph", "content": [ { "type": "text", "text": "Hello world" } ] } ] }
Name | Required | Type | Value |
---|---|---|---|
type | ✔ | string | "expand". |
content | ✔ | array | Array of one or more nodes. |
attrs | ✔ | object | |
attrs.title | string | A title for the expand. | |
marks | array | An optional mark. |
expand
takes an array of one or more of the following nodes:
Rate this page: