Skip to main content
zerotal

Documentation


Documentation / @zerotal/admin / index / ConsoleColumn

Interface: ConsoleColumn

Defined in: admin/src/plugin.ts:95

One column of a console table.

Properties

key

key: string

Defined in: admin/src/plugin.ts:97

Property read from the row.


label

label: string

Defined in: admin/src/plugin.ts:98


align?

optional align?: "start" | "end" | "center"

Defined in: admin/src/plugin.ts:99


mono?

optional mono?: boolean

Defined in: admin/src/plugin.ts:101

Render in a monospace face — ids, class names, error text.


format?

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

Defined in: admin/src/plugin.ts:103

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

Parameters

value

unknown

row

ConsoleRow

Returns

string


badge?

optional badge?: (value, row) => BadgeTone | null

Defined in: admin/src/plugin.ts:105

Render the cell as a badge in this tone, or null for plain text.

Parameters

value

unknown

row

ConsoleRow

Returns

BadgeTone | null