Table | AIUI | Rokid

table renders structured tabular content from column definitions and row data.

Table

table renders structured tabular content from column definitions and row data.

Display a Data Table

<table
  caption="Scores"
  columns='[{"key":"name","title":"Name"},{"key":"score","title":"Score","align":"right"}]'
  rows='[{"name":"Alice","score":98},{"name":"Bob","score":87}]'
  empty-text="No data"
></table>

Properties

PropertyTypeDefaultDescription
columnsJSON Array[]Column definitions containing key and optional title and align.
rowsJSON Array[]Row objects whose cells are read using column keys.
captionString-Table caption.
empty-textString-Text shown when there are no rows; alias is emptyText.

align supports left, center, and right. Array and object cells are serialized as JSON text, while non-object rows are ignored.