@jasperoosthoek/react-toolbox 0.6.7 → 0.6.9
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.
package/change-log.md
CHANGED
|
@@ -277,4 +277,10 @@
|
|
|
277
277
|
|
|
278
278
|
##### Version 0.6.7
|
|
279
279
|
- New `customHeader` in `DataTable` component
|
|
280
|
-
- Stricter types in `FormDropdown` component
|
|
280
|
+
- Stricter types in `FormDropdown` component
|
|
281
|
+
|
|
282
|
+
##### Version 0.6.8
|
|
283
|
+
- Fix: always opening `EditModal` when clicking row of `DataTable` regardless of `showEditModalOnClickRow` prop
|
|
284
|
+
|
|
285
|
+
##### Version 0.6.9
|
|
286
|
+
- `filterColumn` in `DataTable` can also be an array of strings or modifiers
|
|
@@ -37,7 +37,7 @@ export type DataTableProps<D extends any[]> = {
|
|
|
37
37
|
columns: DataTableColumn<D[number]>[];
|
|
38
38
|
rowsPerPage?: number | null;
|
|
39
39
|
rowsPerPageOptions?: RowsPerPageOptions;
|
|
40
|
-
filterColumn?: ((row: D[number]) => string) | string;
|
|
40
|
+
filterColumn?: keyof D | ((row: D[number]) => string) | (keyof D | ((row: D[number]) => string))[];
|
|
41
41
|
orderByDefault?: ((row: D[number]) => number) | string | null;
|
|
42
42
|
orderByDefaultDirection?: OrderByDirection;
|
|
43
43
|
onMove?: OnMove<D[number]>;
|