ui/datatable.ts

Types and constants for the Datatable component.

view source

Declarations
#

3 declarations

DATATABLE_COLUMN_WIDTH_DEFAULT
#

ui/datatable.ts view source

120 import {DATATABLE_COLUMN_WIDTH_DEFAULT} from '@fuzdev/fuz_app/ui/datatable.js';

Default initial column width in pixels.

DATATABLE_MIN_COLUMN_WIDTH
#

ui/datatable.ts view source

50 import {DATATABLE_MIN_COLUMN_WIDTH} from '@fuzdev/fuz_app/ui/datatable.js';

Default minimum column width in pixels.

DatatableColumn
#

ui/datatable.ts view source

DatatableColumn<T> import type {DatatableColumn} from '@fuzdev/fuz_app/ui/datatable.js';

Column definition for a Datatable.

generics

DatatableColumn<T = unknown>
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

value

type T[keyof T]

row

type T
returns string

Imported by
#