Table Library

Table Block

This shape's bounding box is incompatible with the rotation property.

PropertyDescription
rowCountNumber
Determines the number of rows in the table.
Required
colCountNumber
Determines the number of columns in the table.
Required
cellsArray[Cell]
An array containing definitions of individual cells. Cell text, style, and merging are all defined here.
Required
userSpecifiedRowsArray[Field Size]
Defines the height of a specific row. Unspecified rows will split the remaining table block height.
Optional
userSpecifiedColsArray[Field Size ]
Defines the width of a specific column. Unspecified columns will split the remaining table block width.
Optional
verticalBorderBoolean
Determines whether vertical borders between cells are visible. Defaults to true.
Optional
horizontalBorderBoolean
Determines whether horizontal borders between cells are visible. Defaults to true.
Optional

Table Shape

{
    "id": "shape65",
    "type": "table",
    "boundingBox": { ... },
    "style": { ... },
    "rowCount": 5,
    "colCount": 4,
    "cells": [ ... ],
    "userSpecifiedRows": [ ... ],
    "userSpecifiedCols": [ ... ],
    "verticalBorder": true,
    "horizontalBorder": true,
    "customData": [ ... ],
    "opacity": 100,
    "note": "Test Note"
}

Cell

PropertyDescription
xPositionNumber
The horizontal position of the cell to be specified, beginning at 0.
Required
yPositionNumber
The vertical position of the cell to be specified, beginning at 0.
Required
mergeCellsRightNumber
The number of rightward cells to merge with. Defaults to 0.
Optional
mergeCellsDownNumber
The number of downward cells to merge with. Defaults to 0.
Optional
styleCellStyle
Customize the appearance of an individual cell. Defaults to the style defined on the table object.
Optional
textString
The text within a cell.
Optional
{
  "xPosition": 0,
  "yPosition": 0,
  "mergeCellsRight": 3,
  "mergeCellsDown": 0,
  "style": { ... },
  "text": "Sample"
}

Cell Style

PropertyDescription
fillColor Fill
The background of the cell.
Required
{
  "fill": { ... }
}

Field Size

PropertyDescription
indexNumber
The position of the row or column to be specified, beginning at 0.
Required
sizeNumber
The height or width in px of the row or column.
Required
{
  "index": 0,
  "size": 160
}