Rate this page:
The table
node provides a container for the nodes that define a table.
table
is a top-level block node.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
{
"type": "table",
"attrs": {
"isNumberColumnEnabled": false,
"layout": "default"
},
"content": [
{
"type": "tableRow",
"content": [
{
"type": "tableCell",
"attrs": {},
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": " Row one, cell one"
}
]
}
]
},
{
"type": "tableCell",
"attrs": {},
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "Row one, cell two"
}
]
}
]
}
]
}
]
}
Name | Required | Type | Value |
---|---|---|---|
type | ✔ | string | "table" |
content | ✔ | array | Array of one or more nodes |
attrs | object | ||
attrs.isNumberColumnEnabled | boolean | 'true','false' | |
attrs.layout | string | 'default', 'full-width', 'wide' |
content
takes an array of one or more tableRow
nodes.
When isNumberColumnEnabled
set to 'true' the first table column provides numbering for the table rows.
layout
determines the layout of the table as follows:
Rate this page: