@bryntum/grid-react-thin 7.3.0 → 7.3.2
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 +5 -5
- package/lib/BryntumAIFilterField.d.ts +2 -1
- package/lib/BryntumAIFilterField.js +1 -0
- package/lib/BryntumAIFilterField.js.map +1 -1
- package/lib/BryntumChecklistFilterCombo.d.ts +2 -1
- package/lib/BryntumChecklistFilterCombo.js +1 -0
- package/lib/BryntumChecklistFilterCombo.js.map +1 -1
- package/lib/BryntumGrid.d.ts +25 -25
- package/lib/BryntumGrid.js.map +1 -1
- package/lib/BryntumGridBase.d.ts +25 -25
- package/lib/BryntumGridBase.js.map +1 -1
- package/lib/BryntumGridChartDesigner.d.ts +1 -1
- package/lib/BryntumGridChartDesigner.js.map +1 -1
- package/lib/BryntumGridFieldFilterPicker.d.ts +1 -1
- package/lib/BryntumGridFieldFilterPicker.js.map +1 -1
- package/lib/BryntumGridFieldFilterPickerGroup.d.ts +2 -2
- package/lib/BryntumGridFieldFilterPickerGroup.js.map +1 -1
- package/lib/BryntumGroupBar.d.ts +3 -3
- package/lib/BryntumGroupBar.js.map +1 -1
- package/lib/BryntumTreeCombo.d.ts +2 -1
- package/lib/BryntumTreeCombo.js +1 -0
- package/lib/BryntumTreeCombo.js.map +1 -1
- package/lib/BryntumTreeGrid.d.ts +25 -25
- package/lib/BryntumTreeGrid.js.map +1 -1
- package/package.json +1 -1
- package/src/BryntumAIFilterField.tsx +17 -1
- package/src/BryntumChecklistFilterCombo.tsx +17 -1
- package/src/BryntumGrid.tsx +31 -25
- package/src/BryntumGridBase.tsx +31 -25
- package/src/BryntumGridChartDesigner.tsx +7 -1
- package/src/BryntumGridFieldFilterPicker.tsx +7 -1
- package/src/BryntumGridFieldFilterPickerGroup.tsx +8 -2
- package/src/BryntumGroupBar.tsx +11 -3
- package/src/BryntumTreeCombo.tsx +17 -1
- package/src/BryntumTreeGrid.tsx +31 -25
package/src/BryntumGroupBar.tsx
CHANGED
|
@@ -45,6 +45,8 @@ export type BryntumGroupBarProps = {
|
|
|
45
45
|
/**
|
|
46
46
|
* Element (or the id of an element) to append this widget's element to. Can be configured, or set once at
|
|
47
47
|
* runtime. To access the element of a rendered widget, see [element](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#property-element).
|
|
48
|
+
* <div class="note">When creating nested trees of widgets, this should only be used on the outermost widget.
|
|
49
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/GroupBar#config-appendTo)
|
|
48
50
|
*/
|
|
49
51
|
appendTo? : HTMLElement|string
|
|
50
52
|
/**
|
|
@@ -94,9 +96,11 @@ export type BryntumGroupBarProps = {
|
|
|
94
96
|
/**
|
|
95
97
|
* If [closable](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-closable) is `true`, this is the name of a callback function to handle what the "close"
|
|
96
98
|
* action means. If not provided, the record representing the chip is removed from the store.
|
|
99
|
+
* @param {Core.data.Model[]} records Records to be closed
|
|
100
|
+
* @param {object} options Close options
|
|
97
101
|
* @returns {void}
|
|
98
102
|
*/
|
|
99
|
-
closeHandler? : string|(() => void)
|
|
103
|
+
closeHandler? : string|((records: Model[], options: object) => void)
|
|
100
104
|
/**
|
|
101
105
|
* Custom CSS classes to add to element.
|
|
102
106
|
* May be specified as a space separated string, or as an object in which property names
|
|
@@ -273,10 +277,14 @@ export type BryntumGroupBarProps = {
|
|
|
273
277
|
ignoreParentReadOnly? : boolean
|
|
274
278
|
/**
|
|
275
279
|
* Element (or element id) to insert this widget before. If provided, [appendTo](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-appendTo) config is ignored.
|
|
280
|
+
* <div class="note">When creating nested trees of widgets, this should only be used on the outermost widget.
|
|
281
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/GroupBar#config-insertBefore)
|
|
276
282
|
*/
|
|
277
283
|
insertBefore? : HTMLElement|string
|
|
278
284
|
/**
|
|
279
285
|
* Element (or element id) to append this widget element to, as a first child. If provided, [appendTo](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-appendTo) config is ignored.
|
|
286
|
+
* <div class="note">When creating nested trees of widgets, this should only be used on the outermost widget.
|
|
287
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/GroupBar#config-insertFirst)
|
|
280
288
|
*/
|
|
281
289
|
insertFirst? : HTMLElement|string
|
|
282
290
|
/**
|
|
@@ -554,7 +562,7 @@ export type BryntumGroupBarProps = {
|
|
|
554
562
|
* @param {object} event Event object
|
|
555
563
|
* @param {Core.widget.Widget} event.source The widget being hidden.
|
|
556
564
|
*/
|
|
557
|
-
onBeforeHide? : ((event: { source: Widget }) =>
|
|
565
|
+
onBeforeHide? : ((event: { source: Widget }) => boolean|void)|string
|
|
558
566
|
/**
|
|
559
567
|
* User going to activate an item in the list either by pointer or keyboard.
|
|
560
568
|
* The active record, list item index, and the triggering event are passed.
|
|
@@ -566,7 +574,7 @@ export type BryntumGroupBarProps = {
|
|
|
566
574
|
* @param {number} event.index List item index
|
|
567
575
|
* @param {Event} event.event Triggering event
|
|
568
576
|
*/
|
|
569
|
-
onBeforeItem? : ((event: { source: List, item: HTMLElement, record: Model, index: number, event: Event }) =>
|
|
577
|
+
onBeforeItem? : ((event: { source: List, item: HTMLElement, record: Model, index: number, event: Event }) => boolean|void)|string
|
|
570
578
|
/**
|
|
571
579
|
* Triggered before a widget is shown. Return `false` to prevent the action.
|
|
572
580
|
* @param {object} event Event object
|
package/src/BryntumTreeCombo.tsx
CHANGED
|
@@ -35,6 +35,8 @@ export type BryntumTreeComboProps = {
|
|
|
35
35
|
/**
|
|
36
36
|
* Element (or the id of an element) to append this widget's element to. Can be configured, or set once at
|
|
37
37
|
* runtime. To access the element of a rendered widget, see [element](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#property-element).
|
|
38
|
+
* <div class="note">When creating nested trees of widgets, this should only be used on the outermost widget.
|
|
39
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-appendTo)
|
|
38
40
|
*/
|
|
39
41
|
appendTo? : HTMLElement|string
|
|
40
42
|
/**
|
|
@@ -97,6 +99,15 @@ export type BryntumTreeComboProps = {
|
|
|
97
99
|
* Set to `true` to centre the Widget in browser viewport space.
|
|
98
100
|
*/
|
|
99
101
|
centered? : boolean
|
|
102
|
+
/**
|
|
103
|
+
* A function (or the name of a function in the ownership hierarchy) called during field validation
|
|
104
|
+
* to perform custom validity checks. The function is called as part of the [isValid](https://bryntum.com/products/grid/docs/api/Core/widget/Field#property-isValid)
|
|
105
|
+
* evaluation, after the built-in [required](https://bryntum.com/products/grid/docs/api/Core/widget/Field#config-required) check.
|
|
106
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-checkValidity)
|
|
107
|
+
* @param {Core.widget.Field} field The field being validated
|
|
108
|
+
* @returns {void}
|
|
109
|
+
*/
|
|
110
|
+
checkValidity? : ((field: Field) => void)|string
|
|
100
111
|
/**
|
|
101
112
|
* A config object to configure the [ChipView](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView) to display the
|
|
102
113
|
* selected value set when [multiSelect](https://bryntum.com/products/grid/docs/api/Core/widget/Combo#config-multiSelect) is `true`.
|
|
@@ -390,10 +401,14 @@ export type BryntumTreeComboProps = {
|
|
|
390
401
|
inputWidth? : string|number
|
|
391
402
|
/**
|
|
392
403
|
* Element (or element id) to insert this widget before. If provided, [appendTo](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-appendTo) config is ignored.
|
|
404
|
+
* <div class="note">When creating nested trees of widgets, this should only be used on the outermost widget.
|
|
405
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-insertBefore)
|
|
393
406
|
*/
|
|
394
407
|
insertBefore? : HTMLElement|string
|
|
395
408
|
/**
|
|
396
409
|
* Element (or element id) to append this widget element to, as a first child. If provided, [appendTo](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-appendTo) config is ignored.
|
|
410
|
+
* <div class="note">When creating nested trees of widgets, this should only be used on the outermost widget.
|
|
411
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-insertFirst)
|
|
397
412
|
*/
|
|
398
413
|
insertFirst? : HTMLElement|string
|
|
399
414
|
/**
|
|
@@ -800,7 +815,7 @@ export type BryntumTreeComboProps = {
|
|
|
800
815
|
* @param {object} event Event object
|
|
801
816
|
* @param {Core.widget.Widget} event.source The widget being hidden.
|
|
802
817
|
*/
|
|
803
|
-
onBeforeHide? : ((event: { source: Widget }) =>
|
|
818
|
+
onBeforeHide? : ((event: { source: Widget }) => boolean|void)|string
|
|
804
819
|
/**
|
|
805
820
|
* Triggered before a widget is shown. Return `false` to prevent the action.
|
|
806
821
|
* @param {object} event Event object
|
|
@@ -961,6 +976,7 @@ export class BryntumTreeCombo extends React.Component<BryntumTreeComboProps> {
|
|
|
961
976
|
'cacheLastResult',
|
|
962
977
|
'caseSensitive',
|
|
963
978
|
'centered',
|
|
979
|
+
'checkValidity',
|
|
964
980
|
'chipView',
|
|
965
981
|
'clearable',
|
|
966
982
|
'clearTextOnPickerHide',
|
package/src/BryntumTreeGrid.tsx
CHANGED
|
@@ -43,6 +43,8 @@ export type BryntumTreeGridProps = {
|
|
|
43
43
|
/**
|
|
44
44
|
* Element (or the id of an element) to append this widget's element to. Can be configured, or set once at
|
|
45
45
|
* runtime. To access the element of a rendered widget, see [element](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#property-element).
|
|
46
|
+
* <div class="note">When creating nested trees of widgets, this should only be used on the outermost widget.
|
|
47
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/view/TreeGrid#config-appendTo)
|
|
46
48
|
*/
|
|
47
49
|
appendTo? : HTMLElement|string
|
|
48
50
|
/**
|
|
@@ -354,10 +356,14 @@ export type BryntumTreeGridProps = {
|
|
|
354
356
|
inputFieldAlign? : 'start'|'end'
|
|
355
357
|
/**
|
|
356
358
|
* Element (or element id) to insert this widget before. If provided, [appendTo](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-appendTo) config is ignored.
|
|
359
|
+
* <div class="note">When creating nested trees of widgets, this should only be used on the outermost widget.
|
|
360
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/view/TreeGrid#config-insertBefore)
|
|
357
361
|
*/
|
|
358
362
|
insertBefore? : HTMLElement|string
|
|
359
363
|
/**
|
|
360
364
|
* Element (or element id) to append this widget element to, as a first child. If provided, [appendTo](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-appendTo) config is ignored.
|
|
365
|
+
* <div class="note">When creating nested trees of widgets, this should only be used on the outermost widget.
|
|
366
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/view/TreeGrid#config-insertFirst)
|
|
361
367
|
*/
|
|
362
368
|
insertFirst? : HTMLElement|string
|
|
363
369
|
/**
|
|
@@ -710,7 +716,7 @@ export type BryntumTreeGridProps = {
|
|
|
710
716
|
* @param {Grid.view.Grid} event.source Owner grid
|
|
711
717
|
* @param {Grid.util.GridLocation} event.editorContext Editing context
|
|
712
718
|
*/
|
|
713
|
-
onBeforeCancelCellEdit? : ((event: { source: Grid, editorContext: GridLocation }) =>
|
|
719
|
+
onBeforeCancelCellEdit? : ((event: { source: Grid, editorContext: GridLocation }) => boolean|void)|string
|
|
714
720
|
/**
|
|
715
721
|
* Fires on the owning Grid before the row editing is canceled, return false to signal that the value is invalid and editing should not be finalized.
|
|
716
722
|
* [More...](https://bryntum.com/products/grid/docs/api/Grid/view/TreeGrid#event-beforeCancelRowEdit)
|
|
@@ -725,7 +731,7 @@ export type BryntumTreeGridProps = {
|
|
|
725
731
|
* @param {Grid.view.Grid} event.source Owner grid
|
|
726
732
|
* @param {CellEditorContext} event.editorContext Editing context
|
|
727
733
|
*/
|
|
728
|
-
onBeforeCellEditStart? : ((event: { source: Grid, editorContext: CellEditorContext }) =>
|
|
734
|
+
onBeforeCellEditStart? : ((event: { source: Grid, editorContext: CellEditorContext }) => boolean|void)|string
|
|
729
735
|
/**
|
|
730
736
|
* Fires on the owning Grid before deleting a range of selected cell values by pressing <kbd>Backspace</kbd> or <kbd>Delete</kbd>
|
|
731
737
|
* buttons while [autoEdit](https://bryntum.com/products/grid/docs/api/Grid/feature/CellEdit#config-autoEdit) is set to `true`. Return `false` to prevent editing.
|
|
@@ -733,7 +739,7 @@ export type BryntumTreeGridProps = {
|
|
|
733
739
|
* @param {Grid.view.Grid} event.source Owner grid
|
|
734
740
|
* @param {(Grid.util.GridLocation|Core.data.Model)[]} event.gridSelection An array of cell selectors or records that will have their values deleted (the records themselves will not get deleted, only visible column values).
|
|
735
741
|
*/
|
|
736
|
-
onBeforeCellRangeDelete? : ((event: { source: Grid, gridSelection: (GridLocation|Model)[] }) =>
|
|
742
|
+
onBeforeCellRangeDelete? : ((event: { source: Grid, gridSelection: (GridLocation|Model)[] }) => boolean|void)|string
|
|
737
743
|
/**
|
|
738
744
|
* Fires for each selected record on the owning Grid before editing a range of selected cell values
|
|
739
745
|
* @param {object} event Event object
|
|
@@ -741,7 +747,7 @@ export type BryntumTreeGridProps = {
|
|
|
741
747
|
* @param {string} event.field The field being changed
|
|
742
748
|
* @param {any} event.value The value being set
|
|
743
749
|
*/
|
|
744
|
-
onBeforeCellRangeEdit? : ((event: { record: Model, field: string, value: any }) =>
|
|
750
|
+
onBeforeCellRangeEdit? : ((event: { record: Model, field: string, value: any }) => boolean|void)|string
|
|
745
751
|
/**
|
|
746
752
|
* This event is triggered before a parent column is collapsed or expanded.
|
|
747
753
|
* @param {object} event Event object
|
|
@@ -757,7 +763,7 @@ export type BryntumTreeGridProps = {
|
|
|
757
763
|
* @param {Grid.column.Column} event.column The dragged column.
|
|
758
764
|
* @param {Event} event.event The browser event.
|
|
759
765
|
*/
|
|
760
|
-
onBeforeColumnDragStart? : ((event: { source: Grid, column: Column, event: Event }) =>
|
|
766
|
+
onBeforeColumnDragStart? : ((event: { source: Grid, column: Column, event: Event }) => boolean|void)|string
|
|
761
767
|
/**
|
|
762
768
|
* This event is fired when a column is dropped, and you can return false from a listener to abort the operation.
|
|
763
769
|
* @param {object} event Event object
|
|
@@ -768,7 +774,7 @@ export type BryntumTreeGridProps = {
|
|
|
768
774
|
* @param {Event} event.event The browser event.
|
|
769
775
|
* @param {string} event.region The region where the column was dropped.
|
|
770
776
|
*/
|
|
771
|
-
onBeforeColumnDropFinalize? : ((event: { source: Grid, column: Column, insertBefore: Column, newParent: Column, event: Event, region: string }) =>
|
|
777
|
+
onBeforeColumnDropFinalize? : ((event: { source: Grid, column: Column, insertBefore: Column, newParent: Column, event: Event, region: string }) => boolean|void)|string
|
|
772
778
|
/**
|
|
773
779
|
* This event is fired prior to starting a column resize gesture. The resize is canceled if a listener returns
|
|
774
780
|
* `false`.
|
|
@@ -777,7 +783,7 @@ export type BryntumTreeGridProps = {
|
|
|
777
783
|
* @param {Grid.column.Column} event.column The column
|
|
778
784
|
* @param {Event} event.domEvent The browser event
|
|
779
785
|
*/
|
|
780
|
-
onBeforeColumnResize? : ((event: { source: Grid, column: Column, domEvent: Event }) =>
|
|
786
|
+
onBeforeColumnResize? : ((event: { source: Grid, column: Column, domEvent: Event }) => boolean|void)|string
|
|
781
787
|
/**
|
|
782
788
|
* Fires on the owning Grid before a copy action is performed, return `false` to prevent the action
|
|
783
789
|
* @param {object} event Event object
|
|
@@ -797,7 +803,7 @@ export type BryntumTreeGridProps = {
|
|
|
797
803
|
* @param {string} event.lineDelimiter The CSV delimiter to separate lines
|
|
798
804
|
* @param {string} event.columnDelimiter The CSV delimiter to separate values on one line
|
|
799
805
|
*/
|
|
800
|
-
onBeforeCSVExport? : ((event: { config: ExportConfig, columns: Column[], rows: Model[], lineDelimiter: string, columnDelimiter: string }) =>
|
|
806
|
+
onBeforeCSVExport? : ((event: { config: ExportConfig, columns: Column[], rows: Model[], lineDelimiter: string, columnDelimiter: string }) => boolean|void)|string
|
|
801
807
|
/**
|
|
802
808
|
* Fires before an object is destroyed.
|
|
803
809
|
* @param {object} event Event object
|
|
@@ -811,14 +817,14 @@ export type BryntumTreeGridProps = {
|
|
|
811
817
|
* @param {XLSColumn[]} event.columns An array of columns to export
|
|
812
818
|
* @param {any[][]} event.rows An array of records to export
|
|
813
819
|
*/
|
|
814
|
-
onBeforeExcelExport? : ((event: { config: ExportConfig, columns: XLSColumn[], rows: any[] }) =>
|
|
820
|
+
onBeforeExcelExport? : ((event: { config: ExportConfig, columns: XLSColumn[], rows: any[] }) => boolean|void)|string
|
|
815
821
|
/**
|
|
816
822
|
* Fired before dragging of the FillHandle starts, return `false` to prevent the drag operation.
|
|
817
823
|
* @param {object} event Event object
|
|
818
824
|
* @param {Grid.util.GridLocation} event.cell Information about the column / record
|
|
819
825
|
* @param {MouseEvent} event.domEvent The raw DOM event
|
|
820
826
|
*/
|
|
821
|
-
onBeforeFillHandleDragStart? : ((event: { cell: GridLocation, domEvent: MouseEvent }) =>
|
|
827
|
+
onBeforeFillHandleDragStart? : ((event: { cell: GridLocation, domEvent: MouseEvent }) => boolean|void)|string
|
|
822
828
|
/**
|
|
823
829
|
* Fires on the owning Grid before the cell editing is finished, return false to signal that the value is invalid and editing should not be finalized.
|
|
824
830
|
* @param {object} event Event object
|
|
@@ -839,7 +845,7 @@ export type BryntumTreeGridProps = {
|
|
|
839
845
|
* @param {object} event Event object
|
|
840
846
|
* @param {Core.widget.Widget} event.source The widget being hidden.
|
|
841
847
|
*/
|
|
842
|
-
onBeforeHide? : ((event: { source: Widget }) =>
|
|
848
|
+
onBeforeHide? : ((event: { source: Widget }) => boolean|void)|string
|
|
843
849
|
/**
|
|
844
850
|
* Fires on the owning Grid before a paste action is performed, return `false` to prevent the action
|
|
845
851
|
* @param {object} event Event object
|
|
@@ -855,7 +861,7 @@ export type BryntumTreeGridProps = {
|
|
|
855
861
|
* @param {object} event Event object
|
|
856
862
|
* @param {PdfExportConfig} event.config Export config
|
|
857
863
|
*/
|
|
858
|
-
onBeforePdfExport? : ((event: { config: PdfExportConfig }) =>
|
|
864
|
+
onBeforePdfExport? : ((event: { config: PdfExportConfig }) => boolean|void)|string
|
|
859
865
|
/**
|
|
860
866
|
* Fires before a row is rendered.
|
|
861
867
|
* @param {object} event Event object
|
|
@@ -898,7 +904,7 @@ export type BryntumTreeGridProps = {
|
|
|
898
904
|
* @param {Grid.util.GridLocation[]} event.selectedCells The cells to be selected in this operation.
|
|
899
905
|
* @param {Grid.util.GridLocation[]} event.cellSelection The cells in the current selection, before applying `selectedCells` and `deselectedCells`
|
|
900
906
|
*/
|
|
901
|
-
onBeforeSelectionChange? : ((event: { action: string, mode: 'row'|'cell', source: Grid, deselected: Model[], selected: Model[], selection: Model[], deselectedCells: GridLocation[], selectedCells: GridLocation[], cellSelection: GridLocation[] }) =>
|
|
907
|
+
onBeforeSelectionChange? : ((event: { action: string, mode: 'row'|'cell', source: Grid, deselected: Model[], selected: Model[], selection: Model[], deselectedCells: GridLocation[], selectedCells: GridLocation[], cellSelection: GridLocation[] }) => boolean|void)|string
|
|
902
908
|
/**
|
|
903
909
|
* Fired before this container will load record values into its child fields. This is useful if you
|
|
904
910
|
* want to modify the UI before data is loaded (e.g. set some input field to be readonly)
|
|
@@ -919,19 +925,19 @@ export type BryntumTreeGridProps = {
|
|
|
919
925
|
* @param {Grid.view.Grid} event.source Owner grid
|
|
920
926
|
* @param {RowEditorContext} event.editorContext Editing context
|
|
921
927
|
*/
|
|
922
|
-
onBeforeStartRowEdit? : ((event: { source: Grid, editorContext: RowEditorContext }) =>
|
|
928
|
+
onBeforeStartRowEdit? : ((event: { source: Grid, editorContext: RowEditorContext }) => boolean|void)|string
|
|
923
929
|
/**
|
|
924
930
|
* Fired before state is applied to the source. Allows editing the state object or preventing the operation.
|
|
925
931
|
* @param {object} event Event object
|
|
926
932
|
* @param {GridStateInfo} event.state State object config
|
|
927
933
|
*/
|
|
928
|
-
onBeforeStateApply? : ((event: { state: GridStateInfo }) =>
|
|
934
|
+
onBeforeStateApply? : ((event: { state: GridStateInfo }) => boolean|void)|string
|
|
929
935
|
/**
|
|
930
936
|
* Fired before state is saved by the StateProvider. Allows editing the state object or preventing the operation.
|
|
931
937
|
* @param {object} event Event object
|
|
932
938
|
* @param {GridStateInfo} event.state State object config
|
|
933
939
|
*/
|
|
934
|
-
onBeforeStateSave? : ((event: { state: GridStateInfo }) =>
|
|
940
|
+
onBeforeStateSave? : ((event: { state: GridStateInfo }) => boolean|void)|string
|
|
935
941
|
/**
|
|
936
942
|
* Fired when a group is going to be expanded or collapsed using the UI.
|
|
937
943
|
* Returning `false` from a listener prevents the operation
|
|
@@ -941,7 +947,7 @@ export type BryntumTreeGridProps = {
|
|
|
941
947
|
* @param {boolean} event.collapse Collapsed (true) or expanded (false)
|
|
942
948
|
* @param {Event} event.domEvent The user interaction event (eg a `click` event) if the toggle request was instigated by user interaction.
|
|
943
949
|
*/
|
|
944
|
-
onBeforeToggleGroup? : ((event: { groupRecord: Model, groupRecords: Model[], collapse: boolean, domEvent: Event }) =>
|
|
950
|
+
onBeforeToggleGroup? : ((event: { groupRecord: Model, groupRecords: Model[], collapse: boolean, domEvent: Event }) => boolean|void)|string
|
|
945
951
|
/**
|
|
946
952
|
* Fired before a parent node record toggles its collapsed state.
|
|
947
953
|
* @param {object} event Event object
|
|
@@ -1010,7 +1016,7 @@ export type BryntumTreeGridProps = {
|
|
|
1010
1016
|
* @param {Grid.column.Column} event.column Column
|
|
1011
1017
|
* @param {Core.data.Model} event.record Record
|
|
1012
1018
|
*/
|
|
1013
|
-
onCellMenuBeforeShow? : ((event: { source: Grid, menu: Menu, items: Record<string, MenuItemEntry>, column: Column, record: Model }) =>
|
|
1019
|
+
onCellMenuBeforeShow? : ((event: { source: Grid, menu: Menu, items: Record<string, MenuItemEntry>, column: Column, record: Model }) => boolean|void)|string
|
|
1014
1020
|
/**
|
|
1015
1021
|
* This event fires on the owning grid when an item is selected in the cell context menu.
|
|
1016
1022
|
* @param {object} event Event object
|
|
@@ -1137,7 +1143,7 @@ export type BryntumTreeGridProps = {
|
|
|
1137
1143
|
* @param {Event} event.event The browser event.
|
|
1138
1144
|
* @param {string} event.region The region where the column was dropped.
|
|
1139
1145
|
*/
|
|
1140
|
-
onColumnDrop? : ((event: { source: Grid, column: Column, insertBefore: Column, newParent: Column, valid: boolean, event: Event, region: string }) =>
|
|
1146
|
+
onColumnDrop? : ((event: { source: Grid, column: Column, insertBefore: Column, newParent: Column, valid: boolean, event: Event, region: string }) => boolean|void)|string
|
|
1141
1147
|
/**
|
|
1142
1148
|
* This event is fired after a resize gesture is completed.
|
|
1143
1149
|
* @param {object} event Event object
|
|
@@ -1277,7 +1283,7 @@ export type BryntumTreeGridProps = {
|
|
|
1277
1283
|
* @param {Grid.util.GridLocation} event.cell Information about the column / record
|
|
1278
1284
|
* @param {MouseEvent} event.domEvent The raw DOM event
|
|
1279
1285
|
*/
|
|
1280
|
-
onFillHandleDragStart? : ((event: { cell: GridLocation, domEvent: MouseEvent }) =>
|
|
1286
|
+
onFillHandleDragStart? : ((event: { cell: GridLocation, domEvent: MouseEvent }) => boolean|void)|string
|
|
1281
1287
|
/**
|
|
1282
1288
|
* Fires on the owning Grid when cell editing is finished
|
|
1283
1289
|
* @param {object} event Event object
|
|
@@ -1325,7 +1331,7 @@ export type BryntumTreeGridProps = {
|
|
|
1325
1331
|
* @param {Core.data.Model[]} event.context.records The dragged row records
|
|
1326
1332
|
* @param {MouseEvent,TouchEvent} event.event
|
|
1327
1333
|
*/
|
|
1328
|
-
onGridRowBeforeDragStart? : ((event: { source: GridBase, context: { records: Model[] }, event: MouseEvent|TouchEvent }) =>
|
|
1334
|
+
onGridRowBeforeDragStart? : ((event: { source: GridBase, context: { records: Model[] }, event: MouseEvent|TouchEvent }) => boolean|void)|string
|
|
1329
1335
|
/**
|
|
1330
1336
|
* Fired before the row drop operation is finalized. You can return false to abort the drop operation, or a
|
|
1331
1337
|
* Promise yielding `true` / `false` which allows for asynchronous abort (e.g. first show user a confirmation dialog).
|
|
@@ -1392,7 +1398,7 @@ export type BryntumTreeGridProps = {
|
|
|
1392
1398
|
* @param {Event} event.domEvent The triggering DOM event.
|
|
1393
1399
|
* @param {Grid.column.Column} event.column The column clicked on.
|
|
1394
1400
|
*/
|
|
1395
|
-
onHeaderClick? : ((event: { domEvent: Event, column: Column }) =>
|
|
1401
|
+
onHeaderClick? : ((event: { domEvent: Event, column: Column }) => boolean|void)|string
|
|
1396
1402
|
/**
|
|
1397
1403
|
* This event fires on the owning Grid before the context menu is shown for a header.
|
|
1398
1404
|
* Allows manipulation of the items to show in the same way as in the [processItems](https://bryntum.com/products/grid/docs/api/Grid/feature/HeaderMenu#config-processItems).
|
|
@@ -1403,7 +1409,7 @@ export type BryntumTreeGridProps = {
|
|
|
1403
1409
|
* @param {Record<string, MenuItemEntry>} event.items Menu item configs
|
|
1404
1410
|
* @param {Grid.column.Column} event.column Column
|
|
1405
1411
|
*/
|
|
1406
|
-
onHeaderMenuBeforeShow? : ((event: { source: Grid, menu: Menu, items: Record<string, MenuItemEntry>, column: Column }) =>
|
|
1412
|
+
onHeaderMenuBeforeShow? : ((event: { source: Grid, menu: Menu, items: Record<string, MenuItemEntry>, column: Column }) => boolean|void)|string
|
|
1407
1413
|
/**
|
|
1408
1414
|
* This event fires on the owning Grid when an item is selected in the header context menu.
|
|
1409
1415
|
* @param {object} event Event object
|
|
@@ -1614,7 +1620,7 @@ export type BryntumTreeGridProps = {
|
|
|
1614
1620
|
* @param {Grid.view.SubGrid} event.subGrid The subgrid
|
|
1615
1621
|
* @param {Event} event.domEvent The native DOM event
|
|
1616
1622
|
*/
|
|
1617
|
-
onSplitterCollapseClick? : ((event: { source: Grid, subGrid: SubGrid, domEvent: Event }) =>
|
|
1623
|
+
onSplitterCollapseClick? : ((event: { source: Grid, subGrid: SubGrid, domEvent: Event }) => boolean|void)|string
|
|
1618
1624
|
/**
|
|
1619
1625
|
* Fired by the Grid after a sub-grid has been resized using the splitter
|
|
1620
1626
|
* @param {object} event Event object
|
|
@@ -1639,7 +1645,7 @@ export type BryntumTreeGridProps = {
|
|
|
1639
1645
|
* @param {Grid.view.SubGrid} event.subGrid The subgrid
|
|
1640
1646
|
* @param {Event} event.domEvent The native DOM event
|
|
1641
1647
|
*/
|
|
1642
|
-
onSplitterExpandClick? : ((event: { source: Grid, subGrid: SubGrid, domEvent: Event }) =>
|
|
1648
|
+
onSplitterExpandClick? : ((event: { source: Grid, subGrid: SubGrid, domEvent: Event }) => boolean|void)|string
|
|
1643
1649
|
/**
|
|
1644
1650
|
* Fires on the owning Grid when editing starts
|
|
1645
1651
|
* @param {object} event Event object
|