Skip to content

Table

Shows an array of objects as rows. Columns are automatic (one per property) or configured with a title, a format and an alignment. Click a header to sort, type in the search box to filter, click a row to send it to your flow. Only the rows in view are drawn, so thousands of rows stay fast.

The same data ships as an example flow: in Node-RED, Import → Examples → @fgjcarlos/node-red-tessera → tessera-demo adds a Batches page with this table (20 batches) and a debug node that shows the clicked row.

Only the rows in view are in the page; scrolling, sorting and searching stay instant.

Property Type Default Description
label string Table Title, with the row count
icon string Lucide icon before the label
columns array automatic { key, title, format, align, width, decimals } — see below
mode replace · append replace Whether new rows replace the table or are added to it
maxRows number 500 Rows kept on the server; the oldest are dropped
search boolean true Show the search box
clickable boolean true Send the row when clicked (or Enter on a focused row)
emptyText string No rows yet Shown when there are no rows

Columns:

Field Description
key Row property; motor.temp reads nested values
title Header (defaults to the key, e.g. batchId → Batch id)
format text · number (thousands separator, decimals) · date (timestamps or ISO strings) · badge (green for ok/running/done, amber for warning/idle/hold, red for error/fault/stopped)
align left · center · right (numbers default to right)
width Pixels; empty shares the remaining space

Without configured columns, the table shows one per property of the rows (properties starting with _ are hidden), numbers right-aligned and status/state as badges. The builder inspector suggests the keys of the current rows as columns.

msg.payload = [{ batch: 'B-2041', units: 1200, status: 'running' }, …]; // replace mode: the new table
msg.payload = { time: Date.now(), message: 'Started' }; // append mode: one more row
msg.payload = []; // clear, in any mode
msg.ui = { mode: 'append' }; // switch mode
msg.ui = { columns: [{ key: 'batch' }, { key: 'units', format: 'number' }] };

In append mode only the new rows travel to the browsers, not the whole table.

{ payload: { batch: 'B-2040', units: 1115, status: 'done', … }, topic: 'batch', _client: { id: 'c7f…' } }

The row is identified on the server, so the message always carries the row the user clicked, whatever the browser sorted or filtered — and a browser can’t make the node send a row it doesn’t have.