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?
optionalalign?:"start"|"end"|"center"
Defined in: admin/src/plugin.ts:99
mono?
optionalmono?:boolean
Defined in: admin/src/plugin.ts:101
Render in a monospace face — ids, class names, error text.
format?
optionalformat?: (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
Returns
string
badge?
optionalbadge?: (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
Returns
BadgeTone | null