TableView.columns
property · packages/mixins-ui/src/table.ts:199
readonly columns: ReadonlyArray<TableColumn<Row, Key>>Mixins / foldkit-mixins-ui
interface · packages/mixins-ui/src/table.ts:198
interface TableView<Row, Message = never, Key extends string = string> {
readonly columns: ReadonlyArray<TableColumn<Row, Key>>
readonly rows: ReadonlyArray<Row>
readonly caption?: string | undefined
readonly rowKey?: ((row: Row) => string) | undefined
readonly sort?:
| {
readonly by: Option.Option<TableSort<Key>>
readonly onSort: (column: Key) => Message
}
| undefined
readonly selection?: TableSelection<Row, Message> | undefined
readonly expansion?: TableExpansion<Row, Message> | undefined
readonly empty?: Html | undefined
readonly style?: NamedStyle<typeof TableSlots> | undefined
readonly mixins?: MixinList<Message> | undefined
readonly fluid?: TableFluid | undefined
readonly words?: Partial<TableWords> | undefined
}A plain table in one call: columns with per-row values, the rows, an optional caption, a style for its slots, and mixins beside the style. No upstream component stands behind it.
TableView.columnsproperty · packages/mixins-ui/src/table.ts:199
readonly columns: ReadonlyArray<TableColumn<Row, Key>>TableView.rowsproperty · packages/mixins-ui/src/table.ts:200
readonly rows: ReadonlyArray<Row>TableView.captionproperty · packages/mixins-ui/src/table.ts:201
readonly caption?: string | undefinedTableView.rowKeyproperty · packages/mixins-ui/src/table.ts:203
readonly rowKey?: ((row: Row) => string) | undefinedEach row's key, so a sorted row keeps its element; by default its place.
TableView.sortproperty · packages/mixins-ui/src/table.ts:205
readonly sort?:
| {
readonly by: Option.Option<TableSort<Key>>
readonly onSort: (column: Key) => Message
}
| undefinedThe sort the rows are drawn in, and the Message a press on a sortable heading sends.
TableView.selectionproperty · packages/mixins-ui/src/table.ts:212
readonly selection?: TableSelection<Row, Message> | undefinedA checkbox on every row, and one in the heading for all of them.
TableView.expansionproperty · packages/mixins-ui/src/table.ts:213
readonly expansion?: TableExpansion<Row, Message> | undefinedTableView.emptyproperty · packages/mixins-ui/src/table.ts:215
readonly empty?: Html | undefinedDrawn across the table while there are no rows: an Empty.view, say.
TableView.styleproperty · packages/mixins-ui/src/table.ts:217
readonly style?: NamedStyle<typeof TableSlots> | undefinedA style of TableSlots, for the table's look.
TableView.mixinsproperty · packages/mixins-ui/src/table.ts:219
readonly mixins?: MixinList<Message> | undefinedMixins beside the style.
TableView.fluidproperty · packages/mixins-ui/src/table.ts:226
readonly fluid?: TableFluid | undefinedOne highlight behind the body rows, following the pointer, and the lit
row marked data-fluid-lit: Table.fluid. Without it the table draws
none and ships none of it; its Mount sends no Message, which a Scene test
would have to resolve.
TableView.wordsproperty · packages/mixins-ui/src/table.ts:228
readonly words?: Partial<TableWords> | undefinedThe table's text, over Table.words.