material-react-table 0.34.0 → 0.34.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -251,10 +251,11 @@ export declare type MRT_DisplayColumnIds = 'mrt-row-drag' | 'mrt-row-actions' |
|
|
|
251
251
|
* See the full props list on the official docs site:
|
|
252
252
|
* @link https://www.material-react-table.com/docs/api/props
|
|
253
253
|
*/
|
|
254
|
-
export declare type MaterialReactTableProps<TData extends Record<string, any> = {}> = Omit<Partial<TableOptions<TData>>, 'columns' | 'data' | 'expandRowsFn' | 'initialState' | 'onStateChange' | 'state'> & {
|
|
254
|
+
export declare type MaterialReactTableProps<TData extends Record<string, any> = {}> = Omit<Partial<TableOptions<TData>>, 'columns' | 'data' | 'defaultColumn' | 'enableRowSelection' | 'expandRowsFn' | 'initialState' | 'onStateChange' | 'state'> & {
|
|
255
255
|
columnFilterModeOptions?: (MRT_FilterOption | string)[] | null;
|
|
256
256
|
columns: MRT_ColumnDef<TData>[];
|
|
257
257
|
data: TData[];
|
|
258
|
+
defaultColumn?: Partial<MRT_ColumnDef<TData>>;
|
|
258
259
|
displayColumnDefOptions?: Partial<{
|
|
259
260
|
[key in MRT_DisplayColumnIds]: Partial<MRT_ColumnDef>;
|
|
260
261
|
}>;
|
|
@@ -276,6 +277,7 @@ export declare type MaterialReactTableProps<TData extends Record<string, any> =
|
|
|
276
277
|
enableRowDragging?: boolean;
|
|
277
278
|
enableRowNumbers?: boolean;
|
|
278
279
|
enableRowOrdering?: boolean;
|
|
280
|
+
enableRowSelection?: boolean | ((row: MRT_Row<TData>) => boolean);
|
|
279
281
|
enableRowVirtualization?: boolean;
|
|
280
282
|
enableSelectAll?: boolean;
|
|
281
283
|
enableStickyHeader?: boolean;
|