TableColumn definition.

interface TableColumn<T> {
    dataCell: (row: T) => ReactNode;
    dataProps: Partial<TableCellProps>;
    headCell: ReactNode;
    headProps: Partial<TableCellProps>;
    key: Key;
}

Type Parameters

  • T

Properties

dataCell: (row: T) => ReactNode

A callback to get the data cell content for the specified row.

dataProps: Partial<TableCellProps>

Data cell properties.

headCell: ReactNode

Header cell content.

headProps: Partial<TableCellProps>

Header cell properties.

key: Key

A unique key.