Table
Content blocksTable
A data table with editable cells.
Options#
- Add / remove rows and columns
- Merge and split cells
- Header row styling
- Cell padding, borders, alignment
Cell data
A table keeps its cells in values.rows, a grid of rows. A cell is a plain string, or an object with text, colspan and rowspan when it is merged. A cell covered by a merged neighbour keeps its place in the grid and is skipped on export.
json
{
"type": "table",
"values": {
"header_row": true,
"rows": [
["Plan", "Price"],
["Pro", "{{pro_price}}"],
[{ "text": "Prices include tax", "colspan": 2 }, ""]
]
}
}Cell text is plain text: HTML typed into a cell is escaped and shows as text. Merge tags in cells are filled in.
Defaults
- The first row is a header (
header_rowis true), dark#14213dwith white bold text. footer_rowstyles the last row the same way. It is off by default.- Borders are 1px solid
#e6ecea, cell padding is 10px and text is 14px. stripedshades every second body row with#f4f8f7.- The table is 100% wide.