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 | MRT_FilterTooltipValueFn |
| |||
28 | 'text' | 'autocomplete' | 'select' | 'multi-select' | 'range' | 'range-slider' | 'checkbox' | 'date' | 'date-range' | 'text' | |||
29 | ReactNode | ({ column, footer, table }) => ReactNode |
| MRT Data Columns Docs | ||
30 | (row: TData) => any) |
| TanStack Table Grouping Docs | ||
31 | ({ cell, column, row, table }) => ReactNode |
| |||
32 | ReactNode | (({ column, header, table }) => ReactNode) |
| MRT Data Columns Docs | ||
33 | string |
| TanStack Table ColumnDef Docs | ||
34 | string |
| TanStack Table ColumnDef Docs | ||
35 | boolean | false | |||
36 | ActionIconProps | ({ column, table }) => ActionIconProps |
| Mantine ActionIcon API | ||
37 | ActionIconProps | ({ column, table }) => ActionIconProps |
| Mantine ActionIcon API | ||
38 | UnstyledButtonProps | ({ cell, column, row, table }) => UnstyledButtonProps |
| Mantine UnstyledButton API | ||
39 | SelectProps | ({ cell, column, row, table }) => SelectProps |
| Mantine Select Docs | ||
40 | TextInputProps | ({ cell, column, row, table }) => TextInputProps |
| Mantine TextInput API | ||
41 | AutocompleteProps | ({ column, table, rangeFilterIndex}) => AutocompleteProps |
| Mantine Autocomplete Docs | ||
42 | CheckboxProps | ({ column, table }) => CheckboxProps |
| Mantine Checkbox Props | ||
43 | DateInputProps | ({ table, column, rangeFilterIndex }) => DateInputProps |
| Mantine DateInput Docs | ||
44 | MultiSelectProps | ({ column, table }) => MultiSelectProps |
| Mantine MultiSelect Docs | ||
45 | RangeSliderProps | ({ column, table }) => RangeSliderProps |
| Mantine Slider Docs | ||
46 | SelectProps | ({ column, table }) => SelectProps |
| Mantine Select Docs | ||
47 | TextInputProps | ({ column, rangeFilterIndex, table }) => TextInputProps |
| Mantine TextInput Docs | ||
48 | BoxProps | ({ cell, table }) => BoxProps |
| Mantine Box API | ||
49 | BoxProps | ({ column, table }) => BoxProps |
| Mantine Box API | ||
50 | BoxProps | ({ column, table }) => BoxProps |
| Mantine Box API | ||
51 | number | 1000 | |||
52 | any | {} | |||
53 | number | 40 | |||
54 |
|
| |||
55 |
|
| |||
56 | number | 180 | |||
57 | boolean |
| |||
58 | SortingFnOption |
| |||
59 | false | 1 | -1 |
| |||
Wanna see the source code for this table? Check it out down below!