@jasperoosthoek/react-toolbox 0.7.0 → 0.7.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.
package/change-log.md
CHANGED
|
@@ -286,4 +286,7 @@
|
|
|
286
286
|
- `filterColumn` in `DataTable` can also be an array of strings or modifiers
|
|
287
287
|
|
|
288
288
|
##### Version 0.7.0
|
|
289
|
-
- Fix brackets in `filterColumn` type
|
|
289
|
+
- Fix brackets in `filterColumn` type
|
|
290
|
+
|
|
291
|
+
##### Version 0.7.1
|
|
292
|
+
- Make `filterColumn` type less strict
|
|
@@ -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?:
|
|
40
|
+
filterColumn?: string | ((row: D[number]) => string) | (string | ((row: D[number]) => string))[];
|
|
41
41
|
orderByDefault?: ((row: D[number]) => number) | string | null;
|
|
42
42
|
orderByDefaultDirection?: OrderByDirection;
|
|
43
43
|
onMove?: OnMove<D[number]>;
|