ui/datatable.ts

Types and constants for the Datatable component.

Declarations
#

3 declarations

view source

DATATABLE_COLUMN_WIDTH_DEFAULT
#

DATATABLE_MIN_COLUMN_WIDTH
#

DatatableColumn
#

ui/datatable.ts view source

DatatableColumn<T>

Column definition for a Datatable.

generics

T

default unknown

key

Row data accessor key.

type string & keyof T

label

Header label text.

type string

width

Initial column width in pixels.

type number

min_width

Minimum column width in pixels.

type number

format

Format a cell value for display. Falls back to format_value when absent.

type (value: T[keyof T], row: T) => string