Skip to main content
Version: 2.0.0-alpha

Interface: TableColumn<T>

see Table

Type parameters

NameType
Textends any

Indexable

[key: string]: any

Properties

align

Optional align: "left" | "center" | "right"

Alignment of the column cell

Defined in

lib/src/core/components/Table/TableProps.tsx:174


filter

Optional filter: TableColumnFilter

Defined in

lib/src/core/components/Table/TableProps.tsx:168


headerAlign

Optional headerAlign: "left" | "center" | "right"

How is the

Defined in

lib/src/core/components/Table/TableProps.tsx:158


key

key: string

Data key for the cell value, could be "a.b.c"

Defined in

lib/src/core/components/Table/TableProps.tsx:128


sortable

Optional sortable: boolean

Whether the column is sortable, defaults to false

Defined in

lib/src/core/components/Table/TableProps.tsx:179


title

Optional title: string

Label displayed in the header

Defined in

lib/src/core/components/Table/TableProps.tsx:153


width

width: number

The width of the column, gutter width is not included

Defined in

lib/src/core/components/Table/TableProps.tsx:133

Methods

cellRenderer

cellRenderer(params): ReactNode

Custom column cell renderer The renderer receives props { cellData, columns, column, columnIndex, rowData, rowIndex, container, isScrolling }

Parameters

NameType
paramsObject
params.cellDataany
params.columnTableColumn<T>
params.columnIndexnumber
params.columnsTableColumn<T>[]
params.containerany
params.isScrolling?boolean
params.rowDataT
params.rowIndexnumber

Returns

ReactNode

Defined in

lib/src/core/components/Table/TableProps.tsx:139


icon

Optional icon(hoverOrOpen): ReactNode

Ico displayed in the header

Parameters

NameType
hoverOrOpenboolean

Returns

ReactNode

Defined in

lib/src/core/components/Table/TableProps.tsx:163