Column Options
Many of the column options you can pass here are the same as the ones that you can pass to the useReactTable ColumnDefs
Here is a list of all the column options you can specify in a column
definition.
# | Column Option | Type | Default Value | More Info Links | |
---|---|---|---|---|---|
1 | (originalRow: TData) => any |
| MRT Data Columns Docs | ||
2 | string & keyof TData |
| MRT Data Columns Docs | ||
3 | ({ cell, column, row, table }) => ReactNode |
| |||
4 |
| 'count' | TanStack Table Grouping Docs | ||
5 | ({ cell, column, renderedCellValue, row, table }) => ReactNode |
| MRT Data Columns Docs | ||
6 | Array<string> |
| |||
7 | Array<MRT_ColumnDef<TData>> |
| |||
8 | ({ cell, column, row, table }) => ReactNode |
| MRT Editing Docs | ||
9 | 'select' | 'text' | 'multi-select' | 'text' | MRT Editing Docs | ||
10 | boolean |
| MRT Click to Copy Docs | ||
11 | boolean |
| MRT Column Actions Docs | ||
12 | boolean |
| |||
13 | boolean |
| MRT Column Filtering Docs | ||
14 | boolean |
| MRT Column Filtering Docs | ||
15 | boolean |
| |||
16 | boolean | (row: MRT_Row<TData>) => boolean |
| |||
17 | boolean |
| |||
18 | boolean |
| |||
19 | boolean |
| |||
20 | boolean |
| |||
21 | boolean | true | |||
22 | boolean |
| |||
23 | boolean |
| |||
24 | boolean |
| |||
25 | ({ column, header, table }) => ReactNode |
| MRT Column Filtering Docs | ||
26 | MRT_FilterFn | 'fuzzy' | |||
27 | 'text' | 'autocomplete' | 'select' | 'multi-select' | 'range' | 'range-slider' | 'checkbox' | 'date' | 'date-range' | 'text' | |||
28 | ReactNode | ({ column, footer, table }) => ReactNode |
| MRT Data Columns Docs | ||
29 | (row: TData) => any) |
| TanStack Table Grouping Docs | ||
30 | ({ cell, column, row, table }) => ReactNode |
| |||
31 | ReactNode | (({ column, header, table }) => ReactNode) |
| MRT Data Columns Docs | ||
32 | string |
| TanStack Table ColumnDef Docs | ||
33 | string |
| TanStack Table ColumnDef Docs | ||
34 | boolean | false | |||
35 | ActionIconProps | ({ column, table }) => ActionIconProps |
| Mantine ActionIcon API | ||
36 | ActionIconProps | ({ column, table }) => ActionIconProps |
| Mantine ActionIcon API | ||
37 | UnstyledButtonProps | ({ cell, column, row, table }) => UnstyledButtonProps |
| Mantine UnstyledButton API | ||
38 | SelectProps | ({ cell, column, row, table }) => SelectProps |
| Mantine Select Docs | ||
39 | TextInputProps | ({ cell, column, row, table }) => TextInputProps |
| Mantine TextInput API | ||
40 | AutocompleteProps | ({ column, table, rangeFilterIndex}) => AutocompleteProps |
| Mantine Autocomplete Docs | ||
41 | CheckboxProps | ({ column, table }) => CheckboxProps |
| Mantine Checkbox Props | ||
42 | DateInputProps | ({ table, column, rangeFilterIndex }) => DateInputProps |
| Mantine DateInput Docs | ||
43 | MultiSelectProps | ({ column, table }) => MultiSelectProps |
| Mantine MultiSelect Docs | ||
44 | RangeSliderProps | ({ column, table }) => RangeSliderProps |
| Mantine Slider Docs | ||
45 | SelectProps | ({ column, table }) => SelectProps |
| Mantine Select Docs | ||
46 | TextInputProps | ({ column, rangeFilterIndex, table }) => TextInputProps |
| Mantine TextInput Docs | ||
47 | BoxProps | ({ cell, table }) => BoxProps |
| Mantine Box API | ||
48 | BoxProps | ({ column, table }) => BoxProps |
| Mantine Box API | ||
49 | BoxProps | ({ column, table }) => BoxProps |
| Mantine Box API | ||
50 | number | 1000 | |||
51 | any | {} | |||
52 | number | 40 | |||
53 |
|
| |||
54 |
|
| |||
55 | number | 180 | |||
56 | boolean |
| |||
57 | SortingFnOption |
| |||
58 | false | 1 | -1 |
| |||
Wanna see the source code for this table? Check it out down below!