@bryntum/grid-react-thin 7.1.2 → 7.1.3
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/README.md +16 -10
- package/lib/BryntumGrid.d.ts +18 -8
- package/lib/BryntumGrid.js +2 -0
- package/lib/BryntumGrid.js.map +1 -1
- package/lib/BryntumGridBase.d.ts +18 -8
- package/lib/BryntumGridBase.js +2 -0
- package/lib/BryntumGridBase.js.map +1 -1
- package/lib/BryntumTreeGrid.d.ts +18 -8
- package/lib/BryntumTreeGrid.js +2 -0
- package/lib/BryntumTreeGrid.js.map +1 -1
- package/package.json +1 -1
- package/src/BryntumGrid.tsx +40 -22
- package/src/BryntumGridBase.tsx +40 -22
- package/src/BryntumTreeGrid.tsx +40 -22
package/README.md
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
<
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
<br>
|
|
2
|
+
<br>
|
|
3
|
+
|
|
4
|
+
<p align="center">
|
|
5
|
+
<a href="https://bryntum.com/" rel="noopener" target="_blank">
|
|
6
|
+
<img width="350" src="https://bryntum.com/resources/bryntum_logo_blue.svg" alt="Bryntum logo">
|
|
7
|
+
</a>
|
|
8
|
+
     
|
|
9
|
+
<img src="https://bryntum.com/products/grid/docs/data/Core/images/logo/react.svg" alt="React" width="100">
|
|
10
|
+
</p>
|
|
11
|
+
|
|
12
|
+
<br>
|
|
7
13
|
|
|
8
14
|
# React wrapper for Bryntum Grid Thin packages
|
|
9
15
|
|
|
@@ -146,8 +152,8 @@ API packages:
|
|
|
146
152
|
```json
|
|
147
153
|
{
|
|
148
154
|
"dependencies": {
|
|
149
|
-
"@bryntum/core-thin": "7.1.
|
|
150
|
-
"@bryntum/grid-thin": "7.1.
|
|
155
|
+
"@bryntum/core-thin": "7.1.3",
|
|
156
|
+
"@bryntum/grid-thin": "7.1.3"
|
|
151
157
|
}
|
|
152
158
|
}
|
|
153
159
|
```
|
|
@@ -157,8 +163,8 @@ Framework wrapper packages:
|
|
|
157
163
|
```json
|
|
158
164
|
{
|
|
159
165
|
"dependencies": {
|
|
160
|
-
"@bryntum/core-react-thin": "7.1.
|
|
161
|
-
"@bryntum/grid-react-thin": "7.1.
|
|
166
|
+
"@bryntum/core-react-thin": "7.1.3",
|
|
167
|
+
"@bryntum/grid-react-thin": "7.1.3"
|
|
162
168
|
}
|
|
163
169
|
}
|
|
164
170
|
```
|
package/lib/BryntumGrid.d.ts
CHANGED
|
@@ -186,6 +186,11 @@ export declare type BryntumGridProps = {
|
|
|
186
186
|
field: string;
|
|
187
187
|
value: any;
|
|
188
188
|
}) => Promise<boolean> | boolean | void) | string;
|
|
189
|
+
onBeforeColumnCollapseToggle?: ((event: {
|
|
190
|
+
source: GridBase;
|
|
191
|
+
column: Column;
|
|
192
|
+
collapsed: boolean;
|
|
193
|
+
}) => void) | string;
|
|
189
194
|
onBeforeColumnDragStart?: ((event: {
|
|
190
195
|
source: Grid;
|
|
191
196
|
column: Column;
|
|
@@ -252,13 +257,13 @@ export declare type BryntumGridProps = {
|
|
|
252
257
|
config: PdfExportConfig;
|
|
253
258
|
}) => Promise<boolean> | boolean | void) | string;
|
|
254
259
|
onBeforeRenderRow?: ((event: {
|
|
255
|
-
source:
|
|
260
|
+
source: GridBase;
|
|
256
261
|
row: Row;
|
|
257
262
|
record: Model;
|
|
258
263
|
recordIndex: number;
|
|
259
264
|
}) => void) | string;
|
|
260
265
|
onBeforeRenderRows?: ((event: {
|
|
261
|
-
source:
|
|
266
|
+
source: GridBase;
|
|
262
267
|
}) => void) | string;
|
|
263
268
|
onBeforeRowCollapse?: ((event: {
|
|
264
269
|
record: Model;
|
|
@@ -404,6 +409,11 @@ export declare type BryntumGridProps = {
|
|
|
404
409
|
source: Grid;
|
|
405
410
|
record: Model;
|
|
406
411
|
}) => void) | string;
|
|
412
|
+
onColumnCollapseToggle?: ((event: {
|
|
413
|
+
source: GridBase;
|
|
414
|
+
column: Column;
|
|
415
|
+
collapsed: boolean;
|
|
416
|
+
}) => void) | string;
|
|
407
417
|
onColumnDrag?: ((event: {
|
|
408
418
|
source: Grid;
|
|
409
419
|
column: Column;
|
|
@@ -456,7 +466,7 @@ export declare type BryntumGridProps = {
|
|
|
456
466
|
entityName: string;
|
|
457
467
|
}) => void) | string;
|
|
458
468
|
onDataChange?: ((event: {
|
|
459
|
-
source:
|
|
469
|
+
source: GridBase;
|
|
460
470
|
store: Store;
|
|
461
471
|
action: 'remove' | 'removeAll' | 'add' | 'clearchanges' | 'filter' | 'update' | 'dataset' | 'replace';
|
|
462
472
|
record: Model;
|
|
@@ -648,13 +658,13 @@ export declare type BryntumGridProps = {
|
|
|
648
658
|
}) => void) | string;
|
|
649
659
|
onRecompose?: (() => void) | string;
|
|
650
660
|
onRenderRow?: ((event: {
|
|
651
|
-
source:
|
|
661
|
+
source: GridBase;
|
|
652
662
|
row: Row;
|
|
653
663
|
record: Model;
|
|
654
664
|
recordIndex: number;
|
|
655
665
|
}) => void) | string;
|
|
656
666
|
onRenderRows?: ((event: {
|
|
657
|
-
source:
|
|
667
|
+
source: GridBase;
|
|
658
668
|
}) => void) | string;
|
|
659
669
|
onResize?: ((event: {
|
|
660
670
|
source: Widget;
|
|
@@ -693,7 +703,7 @@ export declare type BryntumGridProps = {
|
|
|
693
703
|
event: MouseEvent;
|
|
694
704
|
}) => void) | string;
|
|
695
705
|
onScroll?: ((event: {
|
|
696
|
-
source:
|
|
706
|
+
source: GridBase;
|
|
697
707
|
scrollTop: number;
|
|
698
708
|
}) => void) | string;
|
|
699
709
|
onSelectionChange?: ((event: {
|
|
@@ -750,11 +760,11 @@ export declare type BryntumGridProps = {
|
|
|
750
760
|
editorContext: RowEditorContext;
|
|
751
761
|
}) => void) | string;
|
|
752
762
|
onSubGridCollapse?: ((event: {
|
|
753
|
-
source:
|
|
763
|
+
source: GridBase;
|
|
754
764
|
subGrid: SubGrid;
|
|
755
765
|
}) => void) | string;
|
|
756
766
|
onSubGridExpand?: ((event: {
|
|
757
|
-
source:
|
|
767
|
+
source: GridBase;
|
|
758
768
|
subGrid: SubGrid;
|
|
759
769
|
}) => void) | string;
|
|
760
770
|
onToggleGroup?: ((event: {
|
package/lib/BryntumGrid.js
CHANGED
|
@@ -191,6 +191,7 @@ BryntumGrid.propertyConfigNames = [
|
|
|
191
191
|
'onBeforeCellEditStart',
|
|
192
192
|
'onBeforeCellRangeDelete',
|
|
193
193
|
'onBeforeCellRangeEdit',
|
|
194
|
+
'onBeforeColumnCollapseToggle',
|
|
194
195
|
'onBeforeColumnDragStart',
|
|
195
196
|
'onBeforeColumnDropFinalize',
|
|
196
197
|
'onBeforeColumnResize',
|
|
@@ -231,6 +232,7 @@ BryntumGrid.propertyConfigNames = [
|
|
|
231
232
|
'onCellMouseOver',
|
|
232
233
|
'onCollapse',
|
|
233
234
|
'onCollapseNode',
|
|
235
|
+
'onColumnCollapseToggle',
|
|
234
236
|
'onColumnDrag',
|
|
235
237
|
'onColumnDragStart',
|
|
236
238
|
'onColumnDrop',
|
package/lib/BryntumGrid.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BryntumGrid.js","sourceRoot":"","sources":["../src/BryntumGrid.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAEzC,OAAO,EAA4oB,IAAI,EAAo1B,MAAM,oBAAoB,CAAC;AAEtgD,OAAO,EAAE,YAAY,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAu
|
|
1
|
+
{"version":3,"file":"BryntumGrid.js","sourceRoot":"","sources":["../src/BryntumGrid.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAEzC,OAAO,EAA4oB,IAAI,EAAo1B,MAAM,oBAAoB,CAAC;AAEtgD,OAAO,EAAE,YAAY,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,oB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,OAAO;IACP,OAAO;IACP,YAAY;IACZ,oBAAoB;IACpB,OAAO;CACV,CAAC;AAEK,yBAAa,GAAG;IACnB,cAAc;IACd,YAAY;IACZ,eAAe;IACf,QAAQ;IACR,cAAc;IACd,eAAe;IACf,gBAAgB;IAChB,iBAAiB;IACjB,cAAc;IACd,OAAO;IACP,SAAS;CACZ,CAAC"}
|
package/lib/BryntumGridBase.d.ts
CHANGED
|
@@ -185,6 +185,11 @@ export declare type BryntumGridBaseProps = {
|
|
|
185
185
|
field: string;
|
|
186
186
|
value: any;
|
|
187
187
|
}) => Promise<boolean> | boolean | void) | string;
|
|
188
|
+
onBeforeColumnCollapseToggle?: ((event: {
|
|
189
|
+
source: GridBase;
|
|
190
|
+
column: Column;
|
|
191
|
+
collapsed: boolean;
|
|
192
|
+
}) => void) | string;
|
|
188
193
|
onBeforeColumnDragStart?: ((event: {
|
|
189
194
|
source: Grid;
|
|
190
195
|
column: Column;
|
|
@@ -251,13 +256,13 @@ export declare type BryntumGridBaseProps = {
|
|
|
251
256
|
config: PdfExportConfig;
|
|
252
257
|
}) => Promise<boolean> | boolean | void) | string;
|
|
253
258
|
onBeforeRenderRow?: ((event: {
|
|
254
|
-
source:
|
|
259
|
+
source: GridBase;
|
|
255
260
|
row: Row;
|
|
256
261
|
record: Model;
|
|
257
262
|
recordIndex: number;
|
|
258
263
|
}) => void) | string;
|
|
259
264
|
onBeforeRenderRows?: ((event: {
|
|
260
|
-
source:
|
|
265
|
+
source: GridBase;
|
|
261
266
|
}) => void) | string;
|
|
262
267
|
onBeforeRowCollapse?: ((event: {
|
|
263
268
|
record: Model;
|
|
@@ -403,6 +408,11 @@ export declare type BryntumGridBaseProps = {
|
|
|
403
408
|
source: Grid;
|
|
404
409
|
record: Model;
|
|
405
410
|
}) => void) | string;
|
|
411
|
+
onColumnCollapseToggle?: ((event: {
|
|
412
|
+
source: GridBase;
|
|
413
|
+
column: Column;
|
|
414
|
+
collapsed: boolean;
|
|
415
|
+
}) => void) | string;
|
|
406
416
|
onColumnDrag?: ((event: {
|
|
407
417
|
source: Grid;
|
|
408
418
|
column: Column;
|
|
@@ -455,7 +465,7 @@ export declare type BryntumGridBaseProps = {
|
|
|
455
465
|
entityName: string;
|
|
456
466
|
}) => void) | string;
|
|
457
467
|
onDataChange?: ((event: {
|
|
458
|
-
source:
|
|
468
|
+
source: GridBase;
|
|
459
469
|
store: Store;
|
|
460
470
|
action: 'remove' | 'removeAll' | 'add' | 'clearchanges' | 'filter' | 'update' | 'dataset' | 'replace';
|
|
461
471
|
record: Model;
|
|
@@ -647,13 +657,13 @@ export declare type BryntumGridBaseProps = {
|
|
|
647
657
|
}) => void) | string;
|
|
648
658
|
onRecompose?: (() => void) | string;
|
|
649
659
|
onRenderRow?: ((event: {
|
|
650
|
-
source:
|
|
660
|
+
source: GridBase;
|
|
651
661
|
row: Row;
|
|
652
662
|
record: Model;
|
|
653
663
|
recordIndex: number;
|
|
654
664
|
}) => void) | string;
|
|
655
665
|
onRenderRows?: ((event: {
|
|
656
|
-
source:
|
|
666
|
+
source: GridBase;
|
|
657
667
|
}) => void) | string;
|
|
658
668
|
onResize?: ((event: {
|
|
659
669
|
source: Widget;
|
|
@@ -692,7 +702,7 @@ export declare type BryntumGridBaseProps = {
|
|
|
692
702
|
event: MouseEvent;
|
|
693
703
|
}) => void) | string;
|
|
694
704
|
onScroll?: ((event: {
|
|
695
|
-
source:
|
|
705
|
+
source: GridBase;
|
|
696
706
|
scrollTop: number;
|
|
697
707
|
}) => void) | string;
|
|
698
708
|
onSelectionChange?: ((event: {
|
|
@@ -749,11 +759,11 @@ export declare type BryntumGridBaseProps = {
|
|
|
749
759
|
editorContext: RowEditorContext;
|
|
750
760
|
}) => void) | string;
|
|
751
761
|
onSubGridCollapse?: ((event: {
|
|
752
|
-
source:
|
|
762
|
+
source: GridBase;
|
|
753
763
|
subGrid: SubGrid;
|
|
754
764
|
}) => void) | string;
|
|
755
765
|
onSubGridExpand?: ((event: {
|
|
756
|
-
source:
|
|
766
|
+
source: GridBase;
|
|
757
767
|
subGrid: SubGrid;
|
|
758
768
|
}) => void) | string;
|
|
759
769
|
onToggleGroup?: ((event: {
|
package/lib/BryntumGridBase.js
CHANGED
|
@@ -189,6 +189,7 @@ BryntumGridBase.propertyConfigNames = [
|
|
|
189
189
|
'onBeforeCellEditStart',
|
|
190
190
|
'onBeforeCellRangeDelete',
|
|
191
191
|
'onBeforeCellRangeEdit',
|
|
192
|
+
'onBeforeColumnCollapseToggle',
|
|
192
193
|
'onBeforeColumnDragStart',
|
|
193
194
|
'onBeforeColumnDropFinalize',
|
|
194
195
|
'onBeforeColumnResize',
|
|
@@ -229,6 +230,7 @@ BryntumGridBase.propertyConfigNames = [
|
|
|
229
230
|
'onCellMouseOver',
|
|
230
231
|
'onCollapse',
|
|
231
232
|
'onCollapseNode',
|
|
233
|
+
'onColumnCollapseToggle',
|
|
232
234
|
'onColumnDrag',
|
|
233
235
|
'onColumnDragStart',
|
|
234
236
|
'onColumnDrop',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BryntumGridBase.js","sourceRoot":"","sources":["../src/BryntumGridBase.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAEzC,OAAO,EAAkpB,QAAQ,EAA80B,MAAM,oBAAoB,CAAC;AAE1gD,OAAO,EAAE,YAAY,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAs
|
|
1
|
+
{"version":3,"file":"BryntumGridBase.js","sourceRoot":"","sources":["../src/BryntumGridBase.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAEzC,OAAO,EAAkpB,QAAQ,EAA80B,MAAM,oBAAoB,CAAC;AAE1gD,OAAO,EAAE,YAAY,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAs/D/F,MAAM,OAAO,eAAgB,SAAQ,KAAK,CAAC,SAA+B;IAA1E;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Y;IACZ,eAAe;IACf,QAAQ;IACR,cAAc;IACd,eAAe;IACf,gBAAgB;IAChB,iBAAiB;IACjB,cAAc;IACd,OAAO;IACP,SAAS;CACZ,CAAC"}
|
package/lib/BryntumTreeGrid.d.ts
CHANGED
|
@@ -186,6 +186,11 @@ export declare type BryntumTreeGridProps = {
|
|
|
186
186
|
field: string;
|
|
187
187
|
value: any;
|
|
188
188
|
}) => Promise<boolean> | boolean | void) | string;
|
|
189
|
+
onBeforeColumnCollapseToggle?: ((event: {
|
|
190
|
+
source: GridBase;
|
|
191
|
+
column: Column;
|
|
192
|
+
collapsed: boolean;
|
|
193
|
+
}) => void) | string;
|
|
189
194
|
onBeforeColumnDragStart?: ((event: {
|
|
190
195
|
source: Grid;
|
|
191
196
|
column: Column;
|
|
@@ -252,13 +257,13 @@ export declare type BryntumTreeGridProps = {
|
|
|
252
257
|
config: PdfExportConfig;
|
|
253
258
|
}) => Promise<boolean> | boolean | void) | string;
|
|
254
259
|
onBeforeRenderRow?: ((event: {
|
|
255
|
-
source:
|
|
260
|
+
source: GridBase;
|
|
256
261
|
row: Row;
|
|
257
262
|
record: Model;
|
|
258
263
|
recordIndex: number;
|
|
259
264
|
}) => void) | string;
|
|
260
265
|
onBeforeRenderRows?: ((event: {
|
|
261
|
-
source:
|
|
266
|
+
source: GridBase;
|
|
262
267
|
}) => void) | string;
|
|
263
268
|
onBeforeRowCollapse?: ((event: {
|
|
264
269
|
record: Model;
|
|
@@ -404,6 +409,11 @@ export declare type BryntumTreeGridProps = {
|
|
|
404
409
|
source: Grid;
|
|
405
410
|
record: Model;
|
|
406
411
|
}) => void) | string;
|
|
412
|
+
onColumnCollapseToggle?: ((event: {
|
|
413
|
+
source: GridBase;
|
|
414
|
+
column: Column;
|
|
415
|
+
collapsed: boolean;
|
|
416
|
+
}) => void) | string;
|
|
407
417
|
onColumnDrag?: ((event: {
|
|
408
418
|
source: Grid;
|
|
409
419
|
column: Column;
|
|
@@ -456,7 +466,7 @@ export declare type BryntumTreeGridProps = {
|
|
|
456
466
|
entityName: string;
|
|
457
467
|
}) => void) | string;
|
|
458
468
|
onDataChange?: ((event: {
|
|
459
|
-
source:
|
|
469
|
+
source: GridBase;
|
|
460
470
|
store: Store;
|
|
461
471
|
action: 'remove' | 'removeAll' | 'add' | 'clearchanges' | 'filter' | 'update' | 'dataset' | 'replace';
|
|
462
472
|
record: Model;
|
|
@@ -648,13 +658,13 @@ export declare type BryntumTreeGridProps = {
|
|
|
648
658
|
}) => void) | string;
|
|
649
659
|
onRecompose?: (() => void) | string;
|
|
650
660
|
onRenderRow?: ((event: {
|
|
651
|
-
source:
|
|
661
|
+
source: GridBase;
|
|
652
662
|
row: Row;
|
|
653
663
|
record: Model;
|
|
654
664
|
recordIndex: number;
|
|
655
665
|
}) => void) | string;
|
|
656
666
|
onRenderRows?: ((event: {
|
|
657
|
-
source:
|
|
667
|
+
source: GridBase;
|
|
658
668
|
}) => void) | string;
|
|
659
669
|
onResize?: ((event: {
|
|
660
670
|
source: Widget;
|
|
@@ -693,7 +703,7 @@ export declare type BryntumTreeGridProps = {
|
|
|
693
703
|
event: MouseEvent;
|
|
694
704
|
}) => void) | string;
|
|
695
705
|
onScroll?: ((event: {
|
|
696
|
-
source:
|
|
706
|
+
source: GridBase;
|
|
697
707
|
scrollTop: number;
|
|
698
708
|
}) => void) | string;
|
|
699
709
|
onSelectionChange?: ((event: {
|
|
@@ -750,11 +760,11 @@ export declare type BryntumTreeGridProps = {
|
|
|
750
760
|
editorContext: RowEditorContext;
|
|
751
761
|
}) => void) | string;
|
|
752
762
|
onSubGridCollapse?: ((event: {
|
|
753
|
-
source:
|
|
763
|
+
source: GridBase;
|
|
754
764
|
subGrid: SubGrid;
|
|
755
765
|
}) => void) | string;
|
|
756
766
|
onSubGridExpand?: ((event: {
|
|
757
|
-
source:
|
|
767
|
+
source: GridBase;
|
|
758
768
|
subGrid: SubGrid;
|
|
759
769
|
}) => void) | string;
|
|
760
770
|
onToggleGroup?: ((event: {
|
package/lib/BryntumTreeGrid.js
CHANGED
|
@@ -190,6 +190,7 @@ BryntumTreeGrid.propertyConfigNames = [
|
|
|
190
190
|
'onBeforeCellEditStart',
|
|
191
191
|
'onBeforeCellRangeDelete',
|
|
192
192
|
'onBeforeCellRangeEdit',
|
|
193
|
+
'onBeforeColumnCollapseToggle',
|
|
193
194
|
'onBeforeColumnDragStart',
|
|
194
195
|
'onBeforeColumnDropFinalize',
|
|
195
196
|
'onBeforeColumnResize',
|
|
@@ -230,6 +231,7 @@ BryntumTreeGrid.propertyConfigNames = [
|
|
|
230
231
|
'onCellMouseOver',
|
|
231
232
|
'onCollapse',
|
|
232
233
|
'onCollapseNode',
|
|
234
|
+
'onColumnCollapseToggle',
|
|
233
235
|
'onColumnDrag',
|
|
234
236
|
'onColumnDragStart',
|
|
235
237
|
'onColumnDrop',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BryntumTreeGrid.js","sourceRoot":"","sources":["../src/BryntumTreeGrid.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAEzC,OAAO,EAA86C,QAAQ,EAA4D,MAAM,oBAAoB,CAAC;AAEphD,OAAO,EAAE,YAAY,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAu
|
|
1
|
+
{"version":3,"file":"BryntumTreeGrid.js","sourceRoot":"","sources":["../src/BryntumTreeGrid.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAEzC,OAAO,EAA86C,QAAQ,EAA4D,MAAM,oBAAoB,CAAC;AAEphD,OAAO,EAAE,YAAY,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAu/D/F,MAAM,OAAO,eAAgB,SAAQ,KAAK,CAAC,SAA+B;IAA1E;;QAMI,yBAAoB,GAAG,oBAAoB,CAAC;QAS5C,yBAAoB,GAAG,0BAA0B,CAAC;QAElD,UAAK,GAAG;Y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,cAAc;IACd,OAAO;IACP,SAAS;CACZ,CAAC"}
|
package/package.json
CHANGED
package/src/BryntumGrid.tsx
CHANGED
|
@@ -791,6 +791,14 @@ export type BryntumGridProps = {
|
|
|
791
791
|
* @param {any} event.value The value being set
|
|
792
792
|
*/
|
|
793
793
|
onBeforeCellRangeEdit? : ((event: { record: Model, field: string, value: any }) => Promise<boolean>|boolean|void)|string
|
|
794
|
+
/**
|
|
795
|
+
* This event is triggered before a parent column is collapsed or expanded.
|
|
796
|
+
* @param {object} event Event object
|
|
797
|
+
* @param {Grid.view.GridBase} event.source The grid instance
|
|
798
|
+
* @param {Grid.column.Column} event.column The column
|
|
799
|
+
* @param {boolean} event.collapsed `true` if the column is being collapsed, `false` if expanded
|
|
800
|
+
*/
|
|
801
|
+
onBeforeColumnCollapseToggle? : ((event: { source: GridBase, column: Column, collapsed: boolean }) => void)|string
|
|
794
802
|
/**
|
|
795
803
|
* This event is fired prior to starting a column drag gesture. The drag is canceled if a listener returns `false`.
|
|
796
804
|
* @param {object} event Event object
|
|
@@ -901,18 +909,18 @@ export type BryntumGridProps = {
|
|
|
901
909
|
/**
|
|
902
910
|
* Fires before a row is rendered.
|
|
903
911
|
* @param {object} event Event object
|
|
904
|
-
* @param {Grid.view.
|
|
905
|
-
* @param {Grid.row.Row} event.row The row about to be rendered
|
|
906
|
-
* @param {Core.data.Model} event.record The record for the row
|
|
907
|
-
* @param {number} event.recordIndex The zero-based index of the record
|
|
912
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
913
|
+
* @param {Grid.row.Row} event.row The row about to be rendered
|
|
914
|
+
* @param {Core.data.Model} event.record The record for the row
|
|
915
|
+
* @param {number} event.recordIndex The zero-based index of the record
|
|
908
916
|
*/
|
|
909
|
-
onBeforeRenderRow? : ((event: { source:
|
|
917
|
+
onBeforeRenderRow? : ((event: { source: GridBase, row: Row, record: Model, recordIndex: number }) => void)|string
|
|
910
918
|
/**
|
|
911
919
|
* Grid rows are about to be rendered
|
|
912
920
|
* @param {object} event Event object
|
|
913
|
-
* @param {Grid.view.
|
|
921
|
+
* @param {Grid.view.GridBase} event.source This grid.
|
|
914
922
|
*/
|
|
915
|
-
onBeforeRenderRows? : ((event: { source:
|
|
923
|
+
onBeforeRenderRows? : ((event: { source: GridBase }) => void)|string
|
|
916
924
|
/**
|
|
917
925
|
* This event fires before row collapse is started.
|
|
918
926
|
* ...
|
|
@@ -1143,6 +1151,14 @@ export type BryntumGridProps = {
|
|
|
1143
1151
|
* @param {Core.data.Model} event.record The record which has been collapsed.
|
|
1144
1152
|
*/
|
|
1145
1153
|
onCollapseNode? : ((event: { source: Grid, record: Model }) => void)|string
|
|
1154
|
+
/**
|
|
1155
|
+
* This event is triggered after a parent column has been collapsed or expanded.
|
|
1156
|
+
* @param {object} event Event object
|
|
1157
|
+
* @param {Grid.view.GridBase} event.source The Grid instance
|
|
1158
|
+
* @param {Grid.column.Column} event.column The column being toggled
|
|
1159
|
+
* @param {boolean} event.collapsed `true` if the column is now collapsed, `false` if expanded
|
|
1160
|
+
*/
|
|
1161
|
+
onColumnCollapseToggle? : ((event: { source: GridBase, column: Column, collapsed: boolean }) => void)|string
|
|
1146
1162
|
/**
|
|
1147
1163
|
* This event is fired when a column is being dragged, and you can set the `valid` flag on the `context` object
|
|
1148
1164
|
* to indicate whether the drop position is valid or not.
|
|
@@ -1224,14 +1240,14 @@ export type BryntumGridProps = {
|
|
|
1224
1240
|
* ...
|
|
1225
1241
|
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#event-dataChange)
|
|
1226
1242
|
* @param {object} event Event object
|
|
1227
|
-
* @param {Grid.view.
|
|
1243
|
+
* @param {Grid.view.GridBase} event.source Owning grid
|
|
1228
1244
|
* @param {Core.data.Store} event.store The originating store
|
|
1229
1245
|
* @param {'remove','removeAll','add','clearchanges','filter','update','dataset','replace'} event.action Name of action which triggered the change. May be one of: * `'remove'` * `'removeAll'` * `'add'` * `'clearchanges'` * `'filter'` * `'update'` * `'dataset'` * `'replace'`
|
|
1230
1246
|
* @param {Core.data.Model} event.record Changed record, for actions that affects exactly one record (`'update'`)
|
|
1231
1247
|
* @param {Core.data.Model[]} event.records Changed records, passed for all actions except `'removeAll'`
|
|
1232
1248
|
* @param {object} event.changes Passed for the `'update'` action, info on which record fields changed
|
|
1233
1249
|
*/
|
|
1234
|
-
onDataChange? : ((event: { source:
|
|
1250
|
+
onDataChange? : ((event: { source: GridBase, store: Store, action: 'remove'|'removeAll'|'add'|'clearchanges'|'filter'|'update'|'dataset'|'replace', record: Model, records: Model[], changes: object }) => void)|string
|
|
1235
1251
|
/**
|
|
1236
1252
|
* Fires when an object is destroyed.
|
|
1237
1253
|
* @param {object} event Event object
|
|
@@ -1539,18 +1555,18 @@ export type BryntumGridProps = {
|
|
|
1539
1555
|
/**
|
|
1540
1556
|
* Fires after a row is rendered.
|
|
1541
1557
|
* @param {object} event Event object
|
|
1542
|
-
* @param {Grid.view.
|
|
1543
|
-
* @param {Grid.row.Row} event.row The row that has been rendered
|
|
1544
|
-
* @param {Core.data.Model} event.record The record for the row
|
|
1545
|
-
* @param {number} event.recordIndex The zero-based index of the record
|
|
1558
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
1559
|
+
* @param {Grid.row.Row} event.row The row that has been rendered
|
|
1560
|
+
* @param {Core.data.Model} event.record The record for the row
|
|
1561
|
+
* @param {number} event.recordIndex The zero-based index of the record
|
|
1546
1562
|
*/
|
|
1547
|
-
onRenderRow? : ((event: { source:
|
|
1563
|
+
onRenderRow? : ((event: { source: GridBase, row: Row, record: Model, recordIndex: number }) => void)|string
|
|
1548
1564
|
/**
|
|
1549
1565
|
* Grid rows have been rendered
|
|
1550
1566
|
* @param {object} event Event object
|
|
1551
|
-
* @param {Grid.view.
|
|
1567
|
+
* @param {Grid.view.GridBase} event.source This grid.
|
|
1552
1568
|
*/
|
|
1553
|
-
onRenderRows? : ((event: { source:
|
|
1569
|
+
onRenderRows? : ((event: { source: GridBase }) => void)|string
|
|
1554
1570
|
/**
|
|
1555
1571
|
* Fired when the encapsulating element of a Widget resizes *only when [monitorResize](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-monitorResize) is `true`*.
|
|
1556
1572
|
* @param {object} event Event object
|
|
@@ -1610,10 +1626,10 @@ export type BryntumGridProps = {
|
|
|
1610
1626
|
/**
|
|
1611
1627
|
* Grid has scrolled vertically
|
|
1612
1628
|
* @param {object} event Event object
|
|
1613
|
-
* @param {Grid.view.
|
|
1629
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance.
|
|
1614
1630
|
* @param {number} event.scrollTop The vertical scroll position.
|
|
1615
1631
|
*/
|
|
1616
|
-
onScroll? : ((event: { source:
|
|
1632
|
+
onScroll? : ((event: { source: GridBase, scrollTop: number }) => void)|string
|
|
1617
1633
|
/**
|
|
1618
1634
|
* The selection has been changed.
|
|
1619
1635
|
* @param {object} event Event object
|
|
@@ -1701,17 +1717,17 @@ export type BryntumGridProps = {
|
|
|
1701
1717
|
/**
|
|
1702
1718
|
* Fires after a sub grid is collapsed.
|
|
1703
1719
|
* @param {object} event Event object
|
|
1704
|
-
* @param {Grid.view.
|
|
1720
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
1705
1721
|
* @param {Grid.view.SubGrid} event.subGrid The sub grid instance
|
|
1706
1722
|
*/
|
|
1707
|
-
onSubGridCollapse? : ((event: { source:
|
|
1723
|
+
onSubGridCollapse? : ((event: { source: GridBase, subGrid: SubGrid }) => void)|string
|
|
1708
1724
|
/**
|
|
1709
1725
|
* Fires after a sub grid is expanded.
|
|
1710
1726
|
* @param {object} event Event object
|
|
1711
|
-
* @param {Grid.view.
|
|
1727
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
1712
1728
|
* @param {Grid.view.SubGrid} event.subGrid The sub grid instance
|
|
1713
1729
|
*/
|
|
1714
|
-
onSubGridExpand? : ((event: { source:
|
|
1730
|
+
onSubGridExpand? : ((event: { source: GridBase, subGrid: SubGrid }) => void)|string
|
|
1715
1731
|
/**
|
|
1716
1732
|
* Fired when one or more groups are expanded or collapsed
|
|
1717
1733
|
* @param {object} event Event object
|
|
@@ -2218,6 +2234,7 @@ export class BryntumGrid extends React.Component<BryntumGridProps> {
|
|
|
2218
2234
|
'onBeforeCellEditStart',
|
|
2219
2235
|
'onBeforeCellRangeDelete',
|
|
2220
2236
|
'onBeforeCellRangeEdit',
|
|
2237
|
+
'onBeforeColumnCollapseToggle',
|
|
2221
2238
|
'onBeforeColumnDragStart',
|
|
2222
2239
|
'onBeforeColumnDropFinalize',
|
|
2223
2240
|
'onBeforeColumnResize',
|
|
@@ -2258,6 +2275,7 @@ export class BryntumGrid extends React.Component<BryntumGridProps> {
|
|
|
2258
2275
|
'onCellMouseOver',
|
|
2259
2276
|
'onCollapse',
|
|
2260
2277
|
'onCollapseNode',
|
|
2278
|
+
'onColumnCollapseToggle',
|
|
2261
2279
|
'onColumnDrag',
|
|
2262
2280
|
'onColumnDragStart',
|
|
2263
2281
|
'onColumnDrop',
|
package/src/BryntumGridBase.tsx
CHANGED
|
@@ -790,6 +790,14 @@ export type BryntumGridBaseProps = {
|
|
|
790
790
|
* @param {any} event.value The value being set
|
|
791
791
|
*/
|
|
792
792
|
onBeforeCellRangeEdit? : ((event: { record: Model, field: string, value: any }) => Promise<boolean>|boolean|void)|string
|
|
793
|
+
/**
|
|
794
|
+
* This event is triggered before a parent column is collapsed or expanded.
|
|
795
|
+
* @param {object} event Event object
|
|
796
|
+
* @param {Grid.view.GridBase} event.source The grid instance
|
|
797
|
+
* @param {Grid.column.Column} event.column The column
|
|
798
|
+
* @param {boolean} event.collapsed `true` if the column is being collapsed, `false` if expanded
|
|
799
|
+
*/
|
|
800
|
+
onBeforeColumnCollapseToggle? : ((event: { source: GridBase, column: Column, collapsed: boolean }) => void)|string
|
|
793
801
|
/**
|
|
794
802
|
* This event is fired prior to starting a column drag gesture. The drag is canceled if a listener returns `false`.
|
|
795
803
|
* @param {object} event Event object
|
|
@@ -900,18 +908,18 @@ export type BryntumGridBaseProps = {
|
|
|
900
908
|
/**
|
|
901
909
|
* Fires before a row is rendered.
|
|
902
910
|
* @param {object} event Event object
|
|
903
|
-
* @param {Grid.view.
|
|
904
|
-
* @param {Grid.row.Row} event.row The row about to be rendered
|
|
905
|
-
* @param {Core.data.Model} event.record The record for the row
|
|
906
|
-
* @param {number} event.recordIndex The zero-based index of the record
|
|
911
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
912
|
+
* @param {Grid.row.Row} event.row The row about to be rendered
|
|
913
|
+
* @param {Core.data.Model} event.record The record for the row
|
|
914
|
+
* @param {number} event.recordIndex The zero-based index of the record
|
|
907
915
|
*/
|
|
908
|
-
onBeforeRenderRow? : ((event: { source:
|
|
916
|
+
onBeforeRenderRow? : ((event: { source: GridBase, row: Row, record: Model, recordIndex: number }) => void)|string
|
|
909
917
|
/**
|
|
910
918
|
* Grid rows are about to be rendered
|
|
911
919
|
* @param {object} event Event object
|
|
912
|
-
* @param {Grid.view.
|
|
920
|
+
* @param {Grid.view.GridBase} event.source This grid.
|
|
913
921
|
*/
|
|
914
|
-
onBeforeRenderRows? : ((event: { source:
|
|
922
|
+
onBeforeRenderRows? : ((event: { source: GridBase }) => void)|string
|
|
915
923
|
/**
|
|
916
924
|
* This event fires before row collapse is started.
|
|
917
925
|
* ...
|
|
@@ -1142,6 +1150,14 @@ export type BryntumGridBaseProps = {
|
|
|
1142
1150
|
* @param {Core.data.Model} event.record The record which has been collapsed.
|
|
1143
1151
|
*/
|
|
1144
1152
|
onCollapseNode? : ((event: { source: Grid, record: Model }) => void)|string
|
|
1153
|
+
/**
|
|
1154
|
+
* This event is triggered after a parent column has been collapsed or expanded.
|
|
1155
|
+
* @param {object} event Event object
|
|
1156
|
+
* @param {Grid.view.GridBase} event.source The Grid instance
|
|
1157
|
+
* @param {Grid.column.Column} event.column The column being toggled
|
|
1158
|
+
* @param {boolean} event.collapsed `true` if the column is now collapsed, `false` if expanded
|
|
1159
|
+
*/
|
|
1160
|
+
onColumnCollapseToggle? : ((event: { source: GridBase, column: Column, collapsed: boolean }) => void)|string
|
|
1145
1161
|
/**
|
|
1146
1162
|
* This event is fired when a column is being dragged, and you can set the `valid` flag on the `context` object
|
|
1147
1163
|
* to indicate whether the drop position is valid or not.
|
|
@@ -1223,14 +1239,14 @@ export type BryntumGridBaseProps = {
|
|
|
1223
1239
|
* ...
|
|
1224
1240
|
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/GridBase#event-dataChange)
|
|
1225
1241
|
* @param {object} event Event object
|
|
1226
|
-
* @param {Grid.view.
|
|
1242
|
+
* @param {Grid.view.GridBase} event.source Owning grid
|
|
1227
1243
|
* @param {Core.data.Store} event.store The originating store
|
|
1228
1244
|
* @param {'remove','removeAll','add','clearchanges','filter','update','dataset','replace'} event.action Name of action which triggered the change. May be one of: * `'remove'` * `'removeAll'` * `'add'` * `'clearchanges'` * `'filter'` * `'update'` * `'dataset'` * `'replace'`
|
|
1229
1245
|
* @param {Core.data.Model} event.record Changed record, for actions that affects exactly one record (`'update'`)
|
|
1230
1246
|
* @param {Core.data.Model[]} event.records Changed records, passed for all actions except `'removeAll'`
|
|
1231
1247
|
* @param {object} event.changes Passed for the `'update'` action, info on which record fields changed
|
|
1232
1248
|
*/
|
|
1233
|
-
onDataChange? : ((event: { source:
|
|
1249
|
+
onDataChange? : ((event: { source: GridBase, store: Store, action: 'remove'|'removeAll'|'add'|'clearchanges'|'filter'|'update'|'dataset'|'replace', record: Model, records: Model[], changes: object }) => void)|string
|
|
1234
1250
|
/**
|
|
1235
1251
|
* Fires when an object is destroyed.
|
|
1236
1252
|
* @param {object} event Event object
|
|
@@ -1538,18 +1554,18 @@ export type BryntumGridBaseProps = {
|
|
|
1538
1554
|
/**
|
|
1539
1555
|
* Fires after a row is rendered.
|
|
1540
1556
|
* @param {object} event Event object
|
|
1541
|
-
* @param {Grid.view.
|
|
1542
|
-
* @param {Grid.row.Row} event.row The row that has been rendered
|
|
1543
|
-
* @param {Core.data.Model} event.record The record for the row
|
|
1544
|
-
* @param {number} event.recordIndex The zero-based index of the record
|
|
1557
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
1558
|
+
* @param {Grid.row.Row} event.row The row that has been rendered
|
|
1559
|
+
* @param {Core.data.Model} event.record The record for the row
|
|
1560
|
+
* @param {number} event.recordIndex The zero-based index of the record
|
|
1545
1561
|
*/
|
|
1546
|
-
onRenderRow? : ((event: { source:
|
|
1562
|
+
onRenderRow? : ((event: { source: GridBase, row: Row, record: Model, recordIndex: number }) => void)|string
|
|
1547
1563
|
/**
|
|
1548
1564
|
* Grid rows have been rendered
|
|
1549
1565
|
* @param {object} event Event object
|
|
1550
|
-
* @param {Grid.view.
|
|
1566
|
+
* @param {Grid.view.GridBase} event.source This grid.
|
|
1551
1567
|
*/
|
|
1552
|
-
onRenderRows? : ((event: { source:
|
|
1568
|
+
onRenderRows? : ((event: { source: GridBase }) => void)|string
|
|
1553
1569
|
/**
|
|
1554
1570
|
* Fired when the encapsulating element of a Widget resizes *only when [monitorResize](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-monitorResize) is `true`*.
|
|
1555
1571
|
* @param {object} event Event object
|
|
@@ -1609,10 +1625,10 @@ export type BryntumGridBaseProps = {
|
|
|
1609
1625
|
/**
|
|
1610
1626
|
* Grid has scrolled vertically
|
|
1611
1627
|
* @param {object} event Event object
|
|
1612
|
-
* @param {Grid.view.
|
|
1628
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance.
|
|
1613
1629
|
* @param {number} event.scrollTop The vertical scroll position.
|
|
1614
1630
|
*/
|
|
1615
|
-
onScroll? : ((event: { source:
|
|
1631
|
+
onScroll? : ((event: { source: GridBase, scrollTop: number }) => void)|string
|
|
1616
1632
|
/**
|
|
1617
1633
|
* The selection has been changed.
|
|
1618
1634
|
* @param {object} event Event object
|
|
@@ -1700,17 +1716,17 @@ export type BryntumGridBaseProps = {
|
|
|
1700
1716
|
/**
|
|
1701
1717
|
* Fires after a sub grid is collapsed.
|
|
1702
1718
|
* @param {object} event Event object
|
|
1703
|
-
* @param {Grid.view.
|
|
1719
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
1704
1720
|
* @param {Grid.view.SubGrid} event.subGrid The sub grid instance
|
|
1705
1721
|
*/
|
|
1706
|
-
onSubGridCollapse? : ((event: { source:
|
|
1722
|
+
onSubGridCollapse? : ((event: { source: GridBase, subGrid: SubGrid }) => void)|string
|
|
1707
1723
|
/**
|
|
1708
1724
|
* Fires after a sub grid is expanded.
|
|
1709
1725
|
* @param {object} event Event object
|
|
1710
|
-
* @param {Grid.view.
|
|
1726
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
1711
1727
|
* @param {Grid.view.SubGrid} event.subGrid The sub grid instance
|
|
1712
1728
|
*/
|
|
1713
|
-
onSubGridExpand? : ((event: { source:
|
|
1729
|
+
onSubGridExpand? : ((event: { source: GridBase, subGrid: SubGrid }) => void)|string
|
|
1714
1730
|
/**
|
|
1715
1731
|
* Fired when one or more groups are expanded or collapsed
|
|
1716
1732
|
* @param {object} event Event object
|
|
@@ -2215,6 +2231,7 @@ export class BryntumGridBase extends React.Component<BryntumGridBaseProps> {
|
|
|
2215
2231
|
'onBeforeCellEditStart',
|
|
2216
2232
|
'onBeforeCellRangeDelete',
|
|
2217
2233
|
'onBeforeCellRangeEdit',
|
|
2234
|
+
'onBeforeColumnCollapseToggle',
|
|
2218
2235
|
'onBeforeColumnDragStart',
|
|
2219
2236
|
'onBeforeColumnDropFinalize',
|
|
2220
2237
|
'onBeforeColumnResize',
|
|
@@ -2255,6 +2272,7 @@ export class BryntumGridBase extends React.Component<BryntumGridBaseProps> {
|
|
|
2255
2272
|
'onCellMouseOver',
|
|
2256
2273
|
'onCollapse',
|
|
2257
2274
|
'onCollapseNode',
|
|
2275
|
+
'onColumnCollapseToggle',
|
|
2258
2276
|
'onColumnDrag',
|
|
2259
2277
|
'onColumnDragStart',
|
|
2260
2278
|
'onColumnDrop',
|
package/src/BryntumTreeGrid.tsx
CHANGED
|
@@ -791,6 +791,14 @@ export type BryntumTreeGridProps = {
|
|
|
791
791
|
* @param {any} event.value The value being set
|
|
792
792
|
*/
|
|
793
793
|
onBeforeCellRangeEdit? : ((event: { record: Model, field: string, value: any }) => Promise<boolean>|boolean|void)|string
|
|
794
|
+
/**
|
|
795
|
+
* This event is triggered before a parent column is collapsed or expanded.
|
|
796
|
+
* @param {object} event Event object
|
|
797
|
+
* @param {Grid.view.GridBase} event.source The grid instance
|
|
798
|
+
* @param {Grid.column.Column} event.column The column
|
|
799
|
+
* @param {boolean} event.collapsed `true` if the column is being collapsed, `false` if expanded
|
|
800
|
+
*/
|
|
801
|
+
onBeforeColumnCollapseToggle? : ((event: { source: GridBase, column: Column, collapsed: boolean }) => void)|string
|
|
794
802
|
/**
|
|
795
803
|
* This event is fired prior to starting a column drag gesture. The drag is canceled if a listener returns `false`.
|
|
796
804
|
* @param {object} event Event object
|
|
@@ -901,18 +909,18 @@ export type BryntumTreeGridProps = {
|
|
|
901
909
|
/**
|
|
902
910
|
* Fires before a row is rendered.
|
|
903
911
|
* @param {object} event Event object
|
|
904
|
-
* @param {Grid.view.
|
|
905
|
-
* @param {Grid.row.Row} event.row The row about to be rendered
|
|
906
|
-
* @param {Core.data.Model} event.record The record for the row
|
|
907
|
-
* @param {number} event.recordIndex The zero-based index of the record
|
|
912
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
913
|
+
* @param {Grid.row.Row} event.row The row about to be rendered
|
|
914
|
+
* @param {Core.data.Model} event.record The record for the row
|
|
915
|
+
* @param {number} event.recordIndex The zero-based index of the record
|
|
908
916
|
*/
|
|
909
|
-
onBeforeRenderRow? : ((event: { source:
|
|
917
|
+
onBeforeRenderRow? : ((event: { source: GridBase, row: Row, record: Model, recordIndex: number }) => void)|string
|
|
910
918
|
/**
|
|
911
919
|
* Grid rows are about to be rendered
|
|
912
920
|
* @param {object} event Event object
|
|
913
|
-
* @param {Grid.view.
|
|
921
|
+
* @param {Grid.view.GridBase} event.source This grid.
|
|
914
922
|
*/
|
|
915
|
-
onBeforeRenderRows? : ((event: { source:
|
|
923
|
+
onBeforeRenderRows? : ((event: { source: GridBase }) => void)|string
|
|
916
924
|
/**
|
|
917
925
|
* This event fires before row collapse is started.
|
|
918
926
|
* ...
|
|
@@ -1143,6 +1151,14 @@ export type BryntumTreeGridProps = {
|
|
|
1143
1151
|
* @param {Core.data.Model} event.record The record which has been collapsed.
|
|
1144
1152
|
*/
|
|
1145
1153
|
onCollapseNode? : ((event: { source: Grid, record: Model }) => void)|string
|
|
1154
|
+
/**
|
|
1155
|
+
* This event is triggered after a parent column has been collapsed or expanded.
|
|
1156
|
+
* @param {object} event Event object
|
|
1157
|
+
* @param {Grid.view.GridBase} event.source The Grid instance
|
|
1158
|
+
* @param {Grid.column.Column} event.column The column being toggled
|
|
1159
|
+
* @param {boolean} event.collapsed `true` if the column is now collapsed, `false` if expanded
|
|
1160
|
+
*/
|
|
1161
|
+
onColumnCollapseToggle? : ((event: { source: GridBase, column: Column, collapsed: boolean }) => void)|string
|
|
1146
1162
|
/**
|
|
1147
1163
|
* This event is fired when a column is being dragged, and you can set the `valid` flag on the `context` object
|
|
1148
1164
|
* to indicate whether the drop position is valid or not.
|
|
@@ -1224,14 +1240,14 @@ export type BryntumTreeGridProps = {
|
|
|
1224
1240
|
* ...
|
|
1225
1241
|
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/TreeGrid#event-dataChange)
|
|
1226
1242
|
* @param {object} event Event object
|
|
1227
|
-
* @param {Grid.view.
|
|
1243
|
+
* @param {Grid.view.GridBase} event.source Owning grid
|
|
1228
1244
|
* @param {Core.data.Store} event.store The originating store
|
|
1229
1245
|
* @param {'remove','removeAll','add','clearchanges','filter','update','dataset','replace'} event.action Name of action which triggered the change. May be one of: * `'remove'` * `'removeAll'` * `'add'` * `'clearchanges'` * `'filter'` * `'update'` * `'dataset'` * `'replace'`
|
|
1230
1246
|
* @param {Core.data.Model} event.record Changed record, for actions that affects exactly one record (`'update'`)
|
|
1231
1247
|
* @param {Core.data.Model[]} event.records Changed records, passed for all actions except `'removeAll'`
|
|
1232
1248
|
* @param {object} event.changes Passed for the `'update'` action, info on which record fields changed
|
|
1233
1249
|
*/
|
|
1234
|
-
onDataChange? : ((event: { source:
|
|
1250
|
+
onDataChange? : ((event: { source: GridBase, store: Store, action: 'remove'|'removeAll'|'add'|'clearchanges'|'filter'|'update'|'dataset'|'replace', record: Model, records: Model[], changes: object }) => void)|string
|
|
1235
1251
|
/**
|
|
1236
1252
|
* Fires when an object is destroyed.
|
|
1237
1253
|
* @param {object} event Event object
|
|
@@ -1539,18 +1555,18 @@ export type BryntumTreeGridProps = {
|
|
|
1539
1555
|
/**
|
|
1540
1556
|
* Fires after a row is rendered.
|
|
1541
1557
|
* @param {object} event Event object
|
|
1542
|
-
* @param {Grid.view.
|
|
1543
|
-
* @param {Grid.row.Row} event.row The row that has been rendered
|
|
1544
|
-
* @param {Core.data.Model} event.record The record for the row
|
|
1545
|
-
* @param {number} event.recordIndex The zero-based index of the record
|
|
1558
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
1559
|
+
* @param {Grid.row.Row} event.row The row that has been rendered
|
|
1560
|
+
* @param {Core.data.Model} event.record The record for the row
|
|
1561
|
+
* @param {number} event.recordIndex The zero-based index of the record
|
|
1546
1562
|
*/
|
|
1547
|
-
onRenderRow? : ((event: { source:
|
|
1563
|
+
onRenderRow? : ((event: { source: GridBase, row: Row, record: Model, recordIndex: number }) => void)|string
|
|
1548
1564
|
/**
|
|
1549
1565
|
* Grid rows have been rendered
|
|
1550
1566
|
* @param {object} event Event object
|
|
1551
|
-
* @param {Grid.view.
|
|
1567
|
+
* @param {Grid.view.GridBase} event.source This grid.
|
|
1552
1568
|
*/
|
|
1553
|
-
onRenderRows? : ((event: { source:
|
|
1569
|
+
onRenderRows? : ((event: { source: GridBase }) => void)|string
|
|
1554
1570
|
/**
|
|
1555
1571
|
* Fired when the encapsulating element of a Widget resizes *only when [monitorResize](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-monitorResize) is `true`*.
|
|
1556
1572
|
* @param {object} event Event object
|
|
@@ -1610,10 +1626,10 @@ export type BryntumTreeGridProps = {
|
|
|
1610
1626
|
/**
|
|
1611
1627
|
* Grid has scrolled vertically
|
|
1612
1628
|
* @param {object} event Event object
|
|
1613
|
-
* @param {Grid.view.
|
|
1629
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance.
|
|
1614
1630
|
* @param {number} event.scrollTop The vertical scroll position.
|
|
1615
1631
|
*/
|
|
1616
|
-
onScroll? : ((event: { source:
|
|
1632
|
+
onScroll? : ((event: { source: GridBase, scrollTop: number }) => void)|string
|
|
1617
1633
|
/**
|
|
1618
1634
|
* The selection has been changed.
|
|
1619
1635
|
* @param {object} event Event object
|
|
@@ -1701,17 +1717,17 @@ export type BryntumTreeGridProps = {
|
|
|
1701
1717
|
/**
|
|
1702
1718
|
* Fires after a sub grid is collapsed.
|
|
1703
1719
|
* @param {object} event Event object
|
|
1704
|
-
* @param {Grid.view.
|
|
1720
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
1705
1721
|
* @param {Grid.view.SubGrid} event.subGrid The sub grid instance
|
|
1706
1722
|
*/
|
|
1707
|
-
onSubGridCollapse? : ((event: { source:
|
|
1723
|
+
onSubGridCollapse? : ((event: { source: GridBase, subGrid: SubGrid }) => void)|string
|
|
1708
1724
|
/**
|
|
1709
1725
|
* Fires after a sub grid is expanded.
|
|
1710
1726
|
* @param {object} event Event object
|
|
1711
|
-
* @param {Grid.view.
|
|
1727
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
1712
1728
|
* @param {Grid.view.SubGrid} event.subGrid The sub grid instance
|
|
1713
1729
|
*/
|
|
1714
|
-
onSubGridExpand? : ((event: { source:
|
|
1730
|
+
onSubGridExpand? : ((event: { source: GridBase, subGrid: SubGrid }) => void)|string
|
|
1715
1731
|
/**
|
|
1716
1732
|
* Fired when one or more groups are expanded or collapsed
|
|
1717
1733
|
* @param {object} event Event object
|
|
@@ -2217,6 +2233,7 @@ export class BryntumTreeGrid extends React.Component<BryntumTreeGridProps> {
|
|
|
2217
2233
|
'onBeforeCellEditStart',
|
|
2218
2234
|
'onBeforeCellRangeDelete',
|
|
2219
2235
|
'onBeforeCellRangeEdit',
|
|
2236
|
+
'onBeforeColumnCollapseToggle',
|
|
2220
2237
|
'onBeforeColumnDragStart',
|
|
2221
2238
|
'onBeforeColumnDropFinalize',
|
|
2222
2239
|
'onBeforeColumnResize',
|
|
@@ -2257,6 +2274,7 @@ export class BryntumTreeGrid extends React.Component<BryntumTreeGridProps> {
|
|
|
2257
2274
|
'onCellMouseOver',
|
|
2258
2275
|
'onCollapse',
|
|
2259
2276
|
'onCollapseNode',
|
|
2277
|
+
'onColumnCollapseToggle',
|
|
2260
2278
|
'onColumnDrag',
|
|
2261
2279
|
'onColumnDragStart',
|
|
2262
2280
|
'onColumnDrop',
|