TableColumn.header
property · packages/mixins-ui/src/table.ts:77
readonly header: string | HtmlThe heading: text, or markup for an icon beside it.
Mixins / foldkit-mixins-ui
interface · packages/mixins-ui/src/table.ts:75
interface TableColumn<Row, Key extends string = string> {
readonly header: string | Html
readonly footer?: string | Html | undefined
readonly numeric?: boolean | undefined
readonly value: (row: Row) => Html | string
readonly rowHeader?: boolean | undefined
readonly sortKey?: Key | undefined
}One column: its heading, and each row's cell for it. Key is the type of its sortKey.
TableColumn.headerproperty · packages/mixins-ui/src/table.ts:77
readonly header: string | HtmlThe heading: text, or markup for an icon beside it.
TableColumn.footerproperty · packages/mixins-ui/src/table.ts:79
readonly footer?: string | Html | undefinedDrawn under the column in a totals row: a sum, a count, a note.
TableColumn.numericproperty · packages/mixins-ui/src/table.ts:81
readonly numeric?: boolean | undefinedRight-align values that read as numbers.
TableColumn.valueproperty · packages/mixins-ui/src/table.ts:83
readonly value: (row: Row) => Html | stringThe cell's content: text, or markup for a link, a badge or an avatar.
TableColumn.rowHeaderproperty · packages/mixins-ui/src/table.ts:85
readonly rowHeader?: boolean | undefinedDraws the cell as the row's heading (th scope="row"), so a screen reader names a row by it.
TableColumn.sortKeyproperty · packages/mixins-ui/src/table.ts:87
readonly sortKey?: Key | undefinedMakes the heading a button that sends sort.onSort with this key.