Components

ColumnDefinition

<ColumnDefinition {...ColumnDefinitionProps} />

A component used to add a column to a DataTable (e.g. QueuesStats․QueuesDataTable)

Type Definitions

# ColumnDefinitionProps

Properties:
Name Type Attributes Description
content function | React.ReactNode Renders cell content. If it's a function, it receives DataTable row data as the first argument and DataTable context as the second argument. The render function should return React.ReactNode.
header React.ReactNode Header content.
headerColSpanKey string <optional>
Specify the same key for adjacent columns if you want to merge their headers.
name string <optional>
Column name is used to add custom classes to cells in the column.
subHeader React.ReactNode <optional>
Subheader content.
sortingFn function <optional>
A function that defines sort order. The function should return a negative, zero, or positive value. It receives data for two rows to sort as arguments.
sortDirection "asc" | "desc" <optional>
style React.CSSProperties <optional>