Skip to main content
zerotal

Documentation


Documentation / @zerotal/monitor / MonitorTableColumn

Interface: MonitorTableColumn

Defined in: monitor/src/panel.ts:52

One column of a contributed table.

Properties

key

key: string

Defined in: monitor/src/panel.ts:53


label

label: string

Defined in: monitor/src/panel.ts:54


align?

optional align?: "start" | "end"

Defined in: monitor/src/panel.ts:55


mono?

optional mono?: boolean

Defined in: monitor/src/panel.ts:57

Render in a monospace face — ids, keys, class names.


format?

optional format?: (value, row) => string

Defined in: monitor/src/panel.ts:59

Turn the raw value into display text. Defaults to String(value).

Parameters

value

unknown

row

MonitorRow

Returns

string


tone?

optional tone?: (value, row) => MonitorTone | null

Defined in: monitor/src/panel.ts:61

Tint the cell.

Parameters

value

unknown

row

MonitorRow

Returns

MonitorTone | null