Table Options (Props)
Many of the options you can pass to
useMantineReactTable
are the same as the ones you can pass to the TanStack Table useReactTable hook.
Here is a list of all the table options that you can pass to the useMantineReactTable
hook.
# | Prop Name | Type | Default Value | More Info Links | |
---|---|---|---|---|---|
1 | Record<string, AggregationFn> |
| TanStack Table Grouping Docs | ||
2 | boolean |
| TanStack Table Core Table Docs | ||
3 | boolean |
| TanStack Table Expanding Docs | ||
4 | boolean |
| TanStack Table Pagination Docs | ||
5 | 'subheader' | 'popover' | 'custom' | 'subheader' | MRT Column Filtering Docs | ||
6 | Array<MRT_FilterOption | string> | null |
| MRT Column Filtering Docs | ||
7 | 'onChange' | 'onEnd' | 'onChange' | MRT Column Resizing Docs | ||
8 | Array<MRT_ColumnDef<TData>> |
| MRT Column Options API Reference | ||
9 | MutableRefObject<Virtualizer | null> |
| |||
10 | Partial<VirtualizerOptions<HTMLDivElement, HTMLTableCellElement>> |
| |||
11 | 'modal' | 'row' | 'custom' | 'modal' | MRT Editing Docs | ||
12 | Array<TData> |
| Usage Docs | ||
13 | boolean | false | TanStack Table Core Table Docs | ||
14 | boolean | false | TanStack Table Core Table Docs | ||
15 | boolean | false | TanStack Table Core Table Docs | ||
16 | boolean | false | TanStack Table Core Table Docs | ||
17 | boolean | false | TanStack Table Core Table Docs | ||
18 | Partial<MRT_ColumnDef<TData>> |
| TanStack Table Core Table Docs | ||
19 | { [key: string]: MRT_ColumnDef<TData> } |
| MRT Display Columns Docs | ||
20 | 'modal' | 'row' | 'cell' | 'table' | 'custom' | 'modal' | MRT Editing Docs | ||
21 | boolean | true | MRT Row Selection Docs | ||
22 | boolean | true | MRT Customize Toolbars Docs | ||
23 | boolean | false | MRT Click to Copy Docs | ||
24 | boolean | true | MRT Column Actions Docs | ||
25 | boolean | false | MRT Column Ordering DnD Docs | ||
26 | boolean | false | MRT Column Filtering Docs | ||
27 | boolean | true | MRT Column Filtering Docs | ||
28 | boolean |
| MRT Column Ordering DnD Docs | ||
29 | boolean |
| |||
30 | boolean |
| MRT Column Resizing Docs | ||
31 | boolean |
| MRT Virtualization Docs | ||
32 | boolean | true | MRT Density Toggle Docs | ||
33 | boolean | (row: MRT_Row<TData>) => boolean |
| MRT Editing Docs | ||
34 | boolean | true | MRT Expanding Sub Rows Docs | ||
35 | boolean |
| MRT Expanding Sub Rows Docs | ||
36 | boolean |
| MRT Column Filtering Docs | ||
37 | boolean | true | MRT Column Filtering Docs | ||
38 | boolean | true | TanStack Filters Docs | ||
39 | boolean | true | MRT Full Screen Toggle Docs | ||
40 | boolean | true | MRT Global Filtering Docs | ||
41 | boolean | true | MRT Global Filtering Docs | ||
42 | boolean | true | MRT Global Filtering Docs | ||
43 | boolean |
| MRT Aggregation and Grouping Docs | ||
44 | boolean | true | MRT Column Hiding Docs | ||
45 | boolean |
| TanStack Sorting Docs | ||
46 | boolean | true | MRT Row Selection Docs | ||
47 | boolean |
| |||
48 | boolean | true | |||
49 | boolean |
| |||
50 | boolean |
| |||
51 | boolean |
| Row Numbers Feature Guide | ||
52 | boolean |
| |||
53 | boolean | (row: MRT_Row) => boolean |
| |||
54 | boolean |
| MRT Virtualization Docs | ||
55 | boolean | true | |||
56 | boolean | true | |||
57 | boolean | true | |||
58 | boolean |
| |||
59 | boolean |
| |||
60 | boolean | true | |||
61 | boolean | true | |||
62 | boolean | true | |||
63 | boolean | true | |||
64 | boolean | true | |||
65 | (dataRow: TData) => TData[] |
| |||
66 | Record<string, FilterFn> |
| TanStack Table Filters Docs | ||
67 | boolean | false | TanStack Filtering Docs | ||
68 | (column: Column<TData, MRT_CellValue>) => boolean |
| |||
69 | (table: Table<TData>) => () => RowModel<TData> |
| TanStack Table Core Table Docs | ||
70 | () => MRT_RowModel<TData> |
| |||
71 | () => Map<any, number> |
| TanStack Table Filters Docs | ||
72 | () => RowModel<TData> |
| TanStack Table Filters Docs | ||
73 | () => Map<any, number> |
| TanStack Table Filters Docs | ||
74 | () => RowModel<TData> |
| TanStack Table Filters Docs | ||
75 | (table: Table<TData>) => () => RowModel<TData> |
| TanStack Table Grouping Docs | ||
76 | (row: Row<TData>) => boolean |
| TanStack Table Expanding Docs | ||
77 | () => MRT_RowModel<TData> |
| |||
78 | (row: Row<TData>) => boolean |
| TanStack Table Expanding Docs | ||
79 | (originalRow: TData, index: number, parent?: MRT_Row<TData>) => string |
| TanStack Table Core Table Docs | ||
80 | (table: Table<TData>) => () => RowModel<TData> |
| TanStack Table Sorting Docs | ||
81 | (originalRow: TData, index: number) => undefined | TData[] |
| TanStack Table Core Table Docs | ||
82 | MRT_FilterOption |
| |||
83 | Array<MRT_FilterOption | string> | null |
| |||
84 | false | 'reorder' | 'remove' | reorder | TanStack Table Grouping Docs | ||
85 | Partial<MRT_Icons>; |
| |||
86 | Partial<MRT_TableState<TData>> |
| Table State Management Guide | ||
87 | (e: unknown) => boolean |
| TanStack Table Sorting Docs | ||
88 | 'semantic' | 'grid' | 'semantic' | TODO | ||
89 | MRT_Localization |
| Localization (i18n) Guide | ||
90 | BoxProps | ({ table }) => BoxProps |
| Mantine Toolbar Docs | ||
91 | ActionIconProps | (({table, column }) => ActionIconProps); |
| Mantine ActionIcon Docs | ||
92 | ActionIconProps | ({table, column }) => ActionIconProps |
| Mantine ActionIcon Docs | ||
93 | UnstyledButtonProps | ({ cell, column, row, table }) => UnstyledButtonProps |
| Mantine UnstyledButton Docs | ||
94 | ModalProps | ({ row, table }) => ModalProps |
| Mantine Modal Docs | ||
95 | BoxProps | ({ row, table }) => BoxProps |
| Mantine Box Docs | ||
96 | ModalProps | ({ row, table }) => ModalProps |
| Mantine Modal Docs | ||
97 | SelectProps | ({ cell, column, row, table }) => SelectProps |
| Mantine Select Docs | ||
98 | TextInputProps | ({ cell, column, row, table }) => TextInputProps |
| Mantine TextInput Docs | ||
99 | ActionIconProps | ({ table }) => ActionIconProps |
| Mantine ActionIcon Docs | ||
100 | ActionIconProps | ({ row, table }) => ActionIconProps |
| Mantine ActionIcon Docs | ||
101 | AutocompleteProps | ({ column, table, rangeFilterIndex }) => AutocompleteProps |
| Mantine Autocomplete Docs | ||
102 | CheckboxProps | ({ column, table }) => CheckboxProps |
| Mantine Checkbox Docs | ||
103 | DateInputProps | ({ table, column, rangeFilterIndex }) => DateInputProps |
| Mantine DateInput Docs | ||
104 | MultiSelectProps | ({ column, table }) => MultiSelectProps |
| Mantine MultiSelect Docs | ||
105 | RangeSliderProps | ({ column, table }) => RangeSliderProps |
| Mantine Slider Docs | ||
106 | SelectProps | ({ column, table }) => SelectProps |
| Mantine Select Docs | ||
107 | TextInputProps | ({ table, column, rangeFilterIndex }) => TextInputProps |
| Mantine TextInput Docs | ||
108 | HighlightProps | ({ cell, column, row, table }) => HighlightProps |
| Mantine Highlight Docs | ||
109 | LoadingOverlayProps | ({ table }) => LoadingOverlayProps |
| Mantine LoadingOverlay Docs | ||
110 | PaginationProps & { rowsPerPageOptions?: string[], showRowsPerPage?: boolean; } |
| Mantine Pagination Docs | ||
111 | PaperProps | ({ table }} => PaperProps |
| Mantine Paper Docs | ||
112 | ProgressProps | ({ isTopToolbar, table }) => ProgressProps |
| Mantine Progress Docs | ||
113 | ActionIconProps | ({ row, table }) => ActionIconProps |
| Mantine ActionIcon Docs | ||
114 | TextInputProps | ({ table }) => TextInputProps |
| Mantine TextInput Docs | ||
115 | CheckboxProps | ({ table }) => CheckboxProps |
| Mantine Checkbox Docs | ||
116 | CheckboxProps | ({ row, table }) => CheckboxProps |
| Mantine Checkbox Docs | ||
117 | SkeletonProps | ({ cell, column, row, table }) => SkeletonProps |
| Mantine Skeleton Docs | ||
118 | BoxProps | ({ cell, column, row, table }) => BoxProps |
| Mantine Box Docs | ||
119 | BoxProps | ({ table }) => BoxProps |
| Mantine Box Docs | ||
120 | BoxProps | ({ isDetailPanel, row, table }) => BoxProps |
| Mantine Box Docs | ||
121 | BoxProps | ({ table }) => BoxProps |
| Mantine Box Docs | ||
122 | BoxProps| ({table, column }) => BoxProps |
| Mantine Box Docs | ||
123 | BoxProps | ({ table }) => BoxProps); |
| Mantine Box Docs | ||
124 | BoxProps | ({table, footerGroup}) => BoxProps |
| Mantine Box Docs | ||
125 | BoxProps | ({ table, column }) => BoxProps |
| Mantine Box Docs | ||
126 | BoxProps | ({ table }) => BoxProps |
| Mantine TableHead Docs | ||
127 | BoxProps | ({ table, headerGroup}) => BoxProps |
| Mantine Box Docs | ||
128 | TableProps | ({ table }} => TableProps |
| Mantine Table Docs | ||
129 | BadgeProps| ({ table }} => BadgeProps |
| Mantine Chip Docs | ||
130 | AlertProps | ({ table }) => AlertProps |
| Mantine Alert Docs | ||
131 | BoxProps | ({ table }) => BoxProps |
| Mantine Toolbar Docs | ||
132 | boolean |
| TanStack Table Expanding Docs | ||
133 | boolean |
| TanStack Table Filters Docs | ||
134 | boolean |
| TanStack Table Grouping Docs | ||
135 | boolean |
| TanStack Table Pagination Docs | ||
136 | boolean |
| TanStack Table Sorting Docs | ||
137 | number | 100 | TanStack Table Filtering Docs | ||
138 | number |
| TanStack Table Sorting Docs | ||
139 | 'cell' | 'row' | 'table-body' |
| Memoize Components Guide | ||
140 | <T>(defaultOptions: T, options: Partial<T>) => T |
| TanStack Table Core Docs | ||
141 | TableMeta |
| TanStack Table Core Docs | ||
142 | OnChangeFn<{ [key: string]: MRT_FilterOption }> |
| |||
143 | OnChangeFn<ColumnFiltersState> |
| TanStack Table Filter Docs | ||
144 | OnChangeFn<ColumnOrderState> |
| TanStack Table Column Ordering Docs | ||
145 | OnChangeFn<ColumnPinningState> |
| TanStack Table Column Pinning Docs | ||
146 | OnChangeFn<ColumnSizingState> |
| TanStack Table Column Sizing Docs | ||
147 | OnChangeFn<ColumnSizingInfoState> |
| TanStack Table Column Sizing Docs | ||
148 | OnChangeFn<ColumnVisibilityState> |
| TanStack Table Column Visibility Docs | ||
149 | ({ row, table }) => void |
| MRT Editing Docs | ||
150 | OnChangeFn<MRT_Row<TData> | null> |
| |||
151 | ({ exitEditingMode, row, table, values}) => Promise<void> | void |
| MRT Editing Docs | ||
152 | OnChangeFn<MRT_DensityState> |
| MRT Density Toggle Docs | ||
153 | OnChangeFn<MRT_Column<TData> | null> |
| |||
154 | OnChangeFn<MRT_Row<TData> | null> |
| |||
155 | OnChangeFn<MRT_Cell<TData> | null> |
| |||
156 | ({ row, table }) => void |
| MRT Editing Docs | ||
157 | OnChangeFn<MRT_Row<TData> | null> |
| |||
158 | ({ exitEditingMode, row, table, values}) => Promise<void> | void |
| MRT Editing Docs | ||
159 | OnChangeFn<ExpandedState> |
| TanStack Table Expanding Docs | ||
160 | OnChangeFn<GlobalFilterState> |
| TanStack Table Filters Docs | ||
161 | OnChangeFn<GlobalFilterState> |
| TanStack Table Filters Docs | ||
162 | OnChangeFn<GroupingState> |
| TanStack Table Grouping Docs | ||
163 | OnChangeFn<MRT_Column<TData> | null> |
| |||
164 | OnChangeFn<MRT_Row<TData> | null> |
| |||
165 | OnChangeFn<boolean> |
| MRT Full Screen Toggle Docs | ||
166 | OnChangeFn<PaginationState> |
| TanStack Table Pagination Docs | ||
167 | OnChangeFn<RowSelectionState> |
| TanStack Table Row Selection Docs | ||
168 | OnChangeFn<boolean> |
| |||
169 | OnChangeFn<boolean> |
| |||
170 | OnChangeFn<boolean> |
| |||
171 | OnChangeFn<boolean> |
| |||
172 | OnChangeFn<SortingState> |
| TanStack Table Sorting Docs | ||
173 | number |
| TanStack Table Pagination Docs | ||
174 | boolean |
| TanStack Table Expanding Docs | ||
175 | 'default' | 'pages' | 'custom' | 'default' | MRT Editing Docs | ||
176 | 'first' | 'last' |
| |||
177 | 'first' | 'last' |
| |||
178 | 'left' | 'right' |
| |||
179 | 'bottom' | 'top' | 'both' |
| |||
180 | 'bottom' | 'top' | 'head-overlay' | 'none' |
| |||
181 | 'bottom' | 'top' | 'both' | 'none' |
| |||
182 | ReactNode | ({ table }) => ReactNode |
| |||
183 | ({ table }) => ReactNode |
| |||
184 | ({ closeMenu, column, table, internalColumnMenuItems }) => ReactNode |
| |||
185 | ({ column, internalFilterOptions, onSelectFilterMode, table }) => ReactNode |
| |||
186 | ({ row, table, internalEditComponents }) => ReactNode |
| |||
187 | ({ row, table }) => ReactNode |
| |||
188 | ({ row, table, internalEditComponents }) => ReactNode |
| |||
189 | ({ table }) => ReactNode |
| |||
190 | ({ internalFilterOptions, onSelectFilterMode, table }) => ReactNode |
| |||
191 | ({ closeMenu, row, table }) => ReactNode |
| |||
192 | ({ cell, row, table }) => ReactNode |
| |||
193 | ({ groupedAlert, selectedAlert, table }) => ReactNode |
| |||
194 | ({ table }) => ReactNode |
| |||
195 | ReactNode | ({ table }) => ReactNode |
| |||
196 | ({ table }) => ReactNode |
| |||
197 | number |
| |||
198 | 'original' | 'static' | 'static' | |||
199 | MutableRefObject<Virtualizer | null> |
| |||
200 | Partial<VirtualizerOptions<HTMLDivElement, HTMLTableRowElement>> |
| |||
201 | 'all' | 'page' | 'page' | |||
202 | 'checkbox' | 'radio' | 'switch' | 'checkbox' | MRT Editing Docs | ||
203 | boolean |
| TanStack Table Sorting Docs | ||
204 | Record<string, SortingFn> |
| TanStack Table Sorting Docs | ||
205 | Partial<MRT_TableState<TData>> |
| Table State Management Guide | ||
Wanna see the source code for this table? Check it out down below!