Skip to main content

Interface: TableColumn<T>

see Table

Type parameters

Name
T

Indexable

[key: string]: any

Properties

align

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

Alignment of the column cell

Defined in

core/components/Table/TableProps.tsx:147


dataKey

Optional dataKey: string

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

Defined in

core/components/Table/TableProps.tsx:143


filter

Optional filter: TableColumnFilter

Defined in

core/components/Table/TableProps.tsx:137


key

key: string

Defined in

core/components/Table/TableProps.tsx:139


label

Optional label: string

Defined in

core/components/Table/TableProps.tsx:135


sortable

Optional sortable: boolean

Whether the column is sortable, defaults to false

Defined in

core/components/Table/TableProps.tsx:155


width

width: number

The width of the column, gutter width is not included

Defined in

core/components/Table/TableProps.tsx:151

Methods

cellRenderer

Optional 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.columnTableProps<T>
params.columnIndexnumber
params.columnsTableProps<T>[]
params.containerany
params.isScrolling?boolean
params.rowDataT
params.rowIndexnumber

Returns

ReactNode

Defined in

core/components/Table/TableProps.tsx:160


icon

Optional icon(hoverOrOpen): ReactNode

Parameters

NameType
hoverOrOpenboolean

Returns

ReactNode

Defined in

core/components/Table/TableProps.tsx:136