Column Definitions
API
AccessorColumnDef
Name & Description | Option(s) | Default |
---|---|---|
Key |
| |
The cell to display each row for the column if the cell is an aggregate. |
| |
The resolved aggregation function for the column. |
| |
Enables/disables the **column** filter for this column. |
| |
Enables/disables the **global** filter for this column. |
| |
Enables/disables grouping for this column. |
| |
Enables/Disables hiding the column. |
| |
Enables/Disables multi-sorting for this column. |
| |
Enables/disables column pinning for this column. Defaults to true . |
| |
Enables or disables column resizing for the column. |
| |
Enables/Disables sorting for this column. |
| |
The filter function to use with this column. Can be the name of a built-in
filter function or a custom filter function. |
| |
Specify a value to be used for grouping rows on this column. If this option is
not specified, the value derived from accessorKey / accessorFn will be used
instead. |
| |
Header definition. |
| |
ID of the column |
| |
Inverts the order of the sorting for this column. This is useful for values
that have an inverted best/worst scale where lower numbers are better, eg. a
ranking (1st, 2nd, 3rd) or golf-like scoring |
| |
The maximum allowed size for the column |
| |
Column Meta |
| |
The minimum allowed size for the column |
| |
The desired size for the column |
| |
Set to true for sorting toggles on this column to start in the descending
direction. |
| |
The sorting function to use with this column. - A string referencing a built-in sorting function- A custom sorting function |
| |
Configure how undefined values are sorted for this column. |
|
Type
| string| keyof TData
Description
Key
Type
| string| ((props: {cell: Cellcolumn: ColumngetValue: () => TValuerow: Row<TData>table: Table<TData>}) => any)
Description
The cell to display each row for the column if the cell is an aggregate.
Type
AggregationFnOption<TData>
Description
The resolved aggregation function for the column.
Type
boolean
Description
Enables/disables the **column** filter for this column.
Type
boolean
Description
Enables/disables the **global** filter for this column.
Type
boolean
Description
Enables/disables grouping for this column.
Type
boolean
Description
Enables/Disables hiding the column.
Type
boolean
Description
Enables/Disables multi-sorting for this column.
Type
boolean
Description
Enables/disables column pinning for this column. Defaults to
true
.Type
boolean
Description
Enables or disables column resizing for the column.
Type
boolean
Description
Enables/Disables sorting for this column.
Type
| 'auto'| 'arrIncludes'| 'arrIncludesAll'| 'arrIncludesSome'| 'equals'| 'equalsString'| 'inNumberRange'| 'includesString'| 'includesStringSensitive'| 'weakEquals'| signature
Description
The filter function to use with this column. Can be the name of a built-in
filter function or a custom filter function.
Type
(row: TData,) => any
Description
Specify a value to be used for grouping rows on this column. If this option is
not specified, the value derived from
accessorKey
/ accessorFn
will be used
instead.Type
| string| ((props: {column: Columnheader: Headertable: Table<TData>}) => any)
Description
Header definition.
Type
string
Description
ID of the column
Type
boolean
Description
Inverts the order of the sorting for this column. This is useful for values
that have an inverted best/worst scale where lower numbers are better, eg. a
ranking (1st, 2nd, 3rd) or golf-like scoring
Type
number
Description
The maximum allowed size for the column
Type
any
Description
Column Meta
Type
number
Description
The minimum allowed size for the column
Type
number
Description
The desired size for the column
Type
boolean
Description
Set to
true
for sorting toggles on this column to start in the descending
direction.Type
| 'auto'| 'alphanumeric'| 'alphanumericCaseSensitive'| 'basic'| 'datetime'| 'text'| 'textCaseSensitive'| any
Description
The sorting function to use with this column.
- A
- A custom sorting function
- A
string
referencing a built-in sorting function- A custom sorting function
Type
false | 1 | -1
Description
Configure how undefined values are sorted for this column.
ColumnSizingColumnDef
Name & Description | Option(s) | Default |
---|---|---|
Enables or disables column resizing for the column. |
| |
The maximum allowed size for the column |
| |
The minimum allowed size for the column |
| |
The desired size for the column |
|
Type
boolean
Description
Enables or disables column resizing for the column.
Type
number
Description
The maximum allowed size for the column
Type
number
Description
The minimum allowed size for the column
Type
number
Description
The desired size for the column
FiltersColumnDef
Name & Description | Option(s) | Default |
---|---|---|
Enables/disables the **column** filter for this column. |
| |
Enables/disables the **global** filter for this column. |
| |
The filter function to use with this column. Can be the name of a built-in
filter function or a custom filter function. |
|
Type
boolean
Description
Enables/disables the **column** filter for this column.
Type
boolean
Description
Enables/disables the **global** filter for this column.
Type
| 'auto'| 'arrIncludes'| 'arrIncludesAll'| 'arrIncludesSome'| 'equals'| 'equalsString'| 'inNumberRange'| 'includesString'| 'includesStringSensitive'| 'weakEquals'| signature
Description
The filter function to use with this column. Can be the name of a built-in
filter function or a custom filter function.
GroupingColumnDef
Name & Description | Option(s) | Default |
---|---|---|
The cell to display each row for the column if the cell is an aggregate. |
| |
The resolved aggregation function for the column. |
| |
Enables/disables grouping for this column. |
| |
Specify a value to be used for grouping rows on this column. If this option is
not specified, the value derived from accessorKey / accessorFn will be used
instead. |
|
Type
| string| ((props: {cell: Cellcolumn: ColumngetValue: () => TValuerow: Row<TData>table: Table<TData>}) => any)
Description
The cell to display each row for the column if the cell is an aggregate.
Type
AggregationFnOption<TData>
Description
The resolved aggregation function for the column.
Type
boolean
Description
Enables/disables grouping for this column.
Type
(row: TData,) => any
Description
Specify a value to be used for grouping rows on this column. If this option is
not specified, the value derived from
accessorKey
/ accessorFn
will be used
instead.SortingColumnDef
Name & Description | Option(s) | Default |
---|---|---|
Enables/Disables multi-sorting for this column. |
| |
Enables/Disables sorting for this column. |
| |
Inverts the order of the sorting for this column. This is useful for values
that have an inverted best/worst scale where lower numbers are better, eg. a
ranking (1st, 2nd, 3rd) or golf-like scoring |
| |
Set to true for sorting toggles on this column to start in the descending
direction. |
| |
The sorting function to use with this column. - A string referencing a built-in sorting function- A custom sorting function |
| |
Configure how undefined values are sorted for this column. |
|
Type
boolean
Description
Enables/Disables multi-sorting for this column.
Type
boolean
Description
Enables/Disables sorting for this column.
Type
boolean
Description
Inverts the order of the sorting for this column. This is useful for values
that have an inverted best/worst scale where lower numbers are better, eg. a
ranking (1st, 2nd, 3rd) or golf-like scoring
Type
boolean
Description
Set to
true
for sorting toggles on this column to start in the descending
direction.Type
| 'auto'| 'alphanumeric'| 'alphanumericCaseSensitive'| 'basic'| 'datetime'| 'text'| 'textCaseSensitive'| any
Description
The sorting function to use with this column.
- A
- A custom sorting function
- A
string
referencing a built-in sorting function- A custom sorting function
Type
false | 1 | -1
Description
Configure how undefined values are sorted for this column.
VisibilityColumnDef
Name & Description | Option(s) | Default |
---|---|---|
Enables/Disables hiding the column. |
|
Type
boolean
Description
Enables/Disables hiding the column.