@etsoo/react 1.6.62 → 1.6.63
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.
|
@@ -81,7 +81,7 @@ export type GridCellRendererProps<T, P = any> = GridCellFormatterProps<T> & {
|
|
|
81
81
|
* Set items for rerenderer
|
|
82
82
|
* @param callback Callback
|
|
83
83
|
*/
|
|
84
|
-
setItems: (callback: (items: T[]
|
|
84
|
+
setItems: (callback: (items: T[], ref?: React.Ref<ScrollerGridForwardRef<T>>) => T[] | undefined | void) => void;
|
|
85
85
|
};
|
|
86
86
|
/**
|
|
87
87
|
* Grid header cell renderer props
|
|
@@ -12,7 +12,7 @@ export type ScrollerGridItemRendererProps<T> = Omit<GridChildComponentProps<T>,
|
|
|
12
12
|
* Set items for rerenderer
|
|
13
13
|
* @param callback Callback
|
|
14
14
|
*/
|
|
15
|
-
setItems: (callback: (items: T[]
|
|
15
|
+
setItems: (callback: (items: T[], ref?: React.Ref<ScrollerGridForwardRef<T>>) => T[] | undefined | void) => void;
|
|
16
16
|
/**
|
|
17
17
|
* Data
|
|
18
18
|
*/
|
package/package.json
CHANGED
|
@@ -121,8 +121,10 @@ export type GridCellRendererProps<T, P = any> = GridCellFormatterProps<T> & {
|
|
|
121
121
|
* @param callback Callback
|
|
122
122
|
*/
|
|
123
123
|
setItems: (
|
|
124
|
-
callback: (
|
|
125
|
-
|
|
124
|
+
callback: (
|
|
125
|
+
items: T[],
|
|
126
|
+
ref?: React.Ref<ScrollerGridForwardRef<T>>
|
|
127
|
+
) => T[] | undefined | void
|
|
126
128
|
) => void;
|
|
127
129
|
};
|
|
128
130
|
|
|
@@ -24,8 +24,10 @@ export type ScrollerGridItemRendererProps<T> = Omit<
|
|
|
24
24
|
* @param callback Callback
|
|
25
25
|
*/
|
|
26
26
|
setItems: (
|
|
27
|
-
callback: (
|
|
28
|
-
|
|
27
|
+
callback: (
|
|
28
|
+
items: T[],
|
|
29
|
+
ref?: React.Ref<ScrollerGridForwardRef<T>>
|
|
30
|
+
) => T[] | undefined | void
|
|
29
31
|
) => void;
|
|
30
32
|
|
|
31
33
|
/**
|
|
@@ -292,7 +294,7 @@ export const ScrollerGrid = <
|
|
|
292
294
|
callback: (
|
|
293
295
|
items: T[],
|
|
294
296
|
ref?: React.Ref<ScrollerGridForwardRef<T>>
|
|
295
|
-
) => T[] | undefined
|
|
297
|
+
) => T[] | undefined | void
|
|
296
298
|
) => {
|
|
297
299
|
const result = callback(rows, mRef);
|
|
298
300
|
if (result == null) return;
|