@bryntum/grid-thin-trial 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 +5 -0
- package/grid.d.ts +387 -227
- package/lib/column/CheckColumn.js +1 -1
- package/lib/column/Column.js +1 -1
- package/lib/column/DateColumn.js +1 -1
- package/lib/column/NumberColumn.js +1 -1
- package/lib/view/GridBase.js +1 -1
- package/lib/view/SubGrid.js +1 -1
- package/package.json +1 -1
package/grid.d.ts
CHANGED
|
@@ -6892,8 +6892,8 @@ type DateColumnConfig = {
|
|
|
6892
6892
|
*/
|
|
6893
6893
|
remoteChildCount?: number
|
|
6894
6894
|
/**
|
|
6895
|
-
* Renderer function, used to style the date displayed in the cell. Can also affect other aspects of
|
|
6896
|
-
*
|
|
6895
|
+
* Renderer function, used to style the date displayed in the cell. Can also affect other aspects of the cell,
|
|
6896
|
+
* such as styling.
|
|
6897
6897
|
* ...
|
|
6898
6898
|
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/column/DateColumn#config-renderer)
|
|
6899
6899
|
* @param {object} renderData Object containing renderer parameters
|
|
@@ -7054,9 +7054,9 @@ type DateColumnConfig = {
|
|
|
7054
7054
|
}
|
|
7055
7055
|
|
|
7056
7056
|
/**
|
|
7057
|
-
* A column that displays a date in the specified [format](https://bryntum.com/products/grid/docs/api/Grid/column/DateColumn#config-format). By default `L` format is used, which
|
|
7058
|
-
*
|
|
7059
|
-
*
|
|
7057
|
+
* A column that displays a date in the specified [format](https://bryntum.com/products/grid/docs/api/Grid/column/DateColumn#config-format). By default `L` format is used, which contains
|
|
7058
|
+
* the following info: full year, 2-digit month, and 2-digit day. Depending on the browser locale, the formatted date
|
|
7059
|
+
* might look different. [Intl.DateTimeFormat API](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat)
|
|
7060
7060
|
* is used to format the date. Here is an example of possible outputs depending on the browser locale:
|
|
7061
7061
|
* ...
|
|
7062
7062
|
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/column/DateColumn)
|
|
@@ -7090,8 +7090,8 @@ export class DateColumn extends Column {
|
|
|
7090
7090
|
*/
|
|
7091
7091
|
min: string|Date
|
|
7092
7092
|
/**
|
|
7093
|
-
* Renderer function, used to style the date displayed in the cell. Can also affect other aspects of
|
|
7094
|
-
*
|
|
7093
|
+
* Renderer function, used to style the date displayed in the cell. Can also affect other aspects of the cell,
|
|
7094
|
+
* such as styling.
|
|
7095
7095
|
*/
|
|
7096
7096
|
renderer: (renderData: { cellElement: HTMLElement, value: Date|null|undefined, record: Model, column: Column, grid: Grid, row: Row, size: { height: number, configuredHeight: number }, isExport: boolean, isMeasuring: boolean }) => string|DomConfig|DomConfig[]|void
|
|
7097
7097
|
/**
|
|
@@ -29212,6 +29212,14 @@ type GridListenersTypes = {
|
|
|
29212
29212
|
* @param {any} event.value The value being set
|
|
29213
29213
|
*/
|
|
29214
29214
|
beforeCellRangeEdit: (event: { record: Model, field: string, value: any }) => Promise<boolean>|boolean|void
|
|
29215
|
+
/**
|
|
29216
|
+
* This event is triggered before a parent column is collapsed or expanded.
|
|
29217
|
+
* @param {object} event Event object
|
|
29218
|
+
* @param {Grid.view.GridBase} event.source The grid instance
|
|
29219
|
+
* @param {Grid.column.Column} event.column The column
|
|
29220
|
+
* @param {boolean} event.collapsed `true` if the column is being collapsed, `false` if expanded
|
|
29221
|
+
*/
|
|
29222
|
+
beforeColumnCollapseToggle: (event: { source: GridBase, column: Column, collapsed: boolean }) => void
|
|
29215
29223
|
/**
|
|
29216
29224
|
* This event is fired prior to starting a column drag gesture. The drag is canceled if a listener returns `false`.
|
|
29217
29225
|
* @param {object} event Event object
|
|
@@ -29312,18 +29320,18 @@ type GridListenersTypes = {
|
|
|
29312
29320
|
/**
|
|
29313
29321
|
* Fires before a row is rendered.
|
|
29314
29322
|
* @param {object} event Event object
|
|
29315
|
-
* @param {Grid.view.
|
|
29316
|
-
* @param {Grid.row.Row} event.row The row about to be rendered
|
|
29317
|
-
* @param {Core.data.Model} event.record The record for the row
|
|
29318
|
-
* @param {number} event.recordIndex The zero-based index of the record
|
|
29323
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
29324
|
+
* @param {Grid.row.Row} event.row The row about to be rendered
|
|
29325
|
+
* @param {Core.data.Model} event.record The record for the row
|
|
29326
|
+
* @param {number} event.recordIndex The zero-based index of the record
|
|
29319
29327
|
*/
|
|
29320
|
-
beforeRenderRow: (event: { source:
|
|
29328
|
+
beforeRenderRow: (event: { source: GridBase, row: Row, record: Model, recordIndex: number }) => void
|
|
29321
29329
|
/**
|
|
29322
29330
|
* Grid rows are about to be rendered
|
|
29323
29331
|
* @param {object} event Event object
|
|
29324
|
-
* @param {Grid.view.
|
|
29332
|
+
* @param {Grid.view.GridBase} event.source This grid.
|
|
29325
29333
|
*/
|
|
29326
|
-
beforeRenderRows: (event: { source:
|
|
29334
|
+
beforeRenderRows: (event: { source: GridBase }) => void
|
|
29327
29335
|
/**
|
|
29328
29336
|
* This event fires before row collapse is started.
|
|
29329
29337
|
* ...
|
|
@@ -29554,6 +29562,14 @@ type GridListenersTypes = {
|
|
|
29554
29562
|
* @param {Core.data.Model} event.record The record which has been collapsed.
|
|
29555
29563
|
*/
|
|
29556
29564
|
collapseNode: (event: { source: Grid, record: Model }) => void
|
|
29565
|
+
/**
|
|
29566
|
+
* This event is triggered after a parent column has been collapsed or expanded.
|
|
29567
|
+
* @param {object} event Event object
|
|
29568
|
+
* @param {Grid.view.GridBase} event.source The Grid instance
|
|
29569
|
+
* @param {Grid.column.Column} event.column The column being toggled
|
|
29570
|
+
* @param {boolean} event.collapsed `true` if the column is now collapsed, `false` if expanded
|
|
29571
|
+
*/
|
|
29572
|
+
columnCollapseToggle: (event: { source: GridBase, column: Column, collapsed: boolean }) => void
|
|
29557
29573
|
/**
|
|
29558
29574
|
* This event is fired when a column is being dragged, and you can set the `valid` flag on the `context` object
|
|
29559
29575
|
* to indicate whether the drop position is valid or not.
|
|
@@ -29635,14 +29651,14 @@ type GridListenersTypes = {
|
|
|
29635
29651
|
* ...
|
|
29636
29652
|
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#event-dataChange)
|
|
29637
29653
|
* @param {object} event Event object
|
|
29638
|
-
* @param {Grid.view.
|
|
29654
|
+
* @param {Grid.view.GridBase} event.source Owning grid
|
|
29639
29655
|
* @param {Core.data.Store} event.store The originating store
|
|
29640
29656
|
* @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'`
|
|
29641
29657
|
* @param {Core.data.Model} event.record Changed record, for actions that affects exactly one record (`'update'`)
|
|
29642
29658
|
* @param {Core.data.Model[]} event.records Changed records, passed for all actions except `'removeAll'`
|
|
29643
29659
|
* @param {object} event.changes Passed for the `'update'` action, info on which record fields changed
|
|
29644
29660
|
*/
|
|
29645
|
-
dataChange: (event: { source:
|
|
29661
|
+
dataChange: (event: { source: GridBase, store: Store, action: 'remove'|'removeAll'|'add'|'clearchanges'|'filter'|'update'|'dataset'|'replace', record: Model, records: Model[], changes: object }) => void
|
|
29646
29662
|
/**
|
|
29647
29663
|
* Fires when an object is destroyed.
|
|
29648
29664
|
* @param {object} event Event object
|
|
@@ -29950,18 +29966,18 @@ type GridListenersTypes = {
|
|
|
29950
29966
|
/**
|
|
29951
29967
|
* Fires after a row is rendered.
|
|
29952
29968
|
* @param {object} event Event object
|
|
29953
|
-
* @param {Grid.view.
|
|
29954
|
-
* @param {Grid.row.Row} event.row The row that has been rendered
|
|
29955
|
-
* @param {Core.data.Model} event.record The record for the row
|
|
29956
|
-
* @param {number} event.recordIndex The zero-based index of the record
|
|
29969
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
29970
|
+
* @param {Grid.row.Row} event.row The row that has been rendered
|
|
29971
|
+
* @param {Core.data.Model} event.record The record for the row
|
|
29972
|
+
* @param {number} event.recordIndex The zero-based index of the record
|
|
29957
29973
|
*/
|
|
29958
|
-
renderRow: (event: { source:
|
|
29974
|
+
renderRow: (event: { source: GridBase, row: Row, record: Model, recordIndex: number }) => void
|
|
29959
29975
|
/**
|
|
29960
29976
|
* Grid rows have been rendered
|
|
29961
29977
|
* @param {object} event Event object
|
|
29962
|
-
* @param {Grid.view.
|
|
29978
|
+
* @param {Grid.view.GridBase} event.source This grid.
|
|
29963
29979
|
*/
|
|
29964
|
-
renderRows: (event: { source:
|
|
29980
|
+
renderRows: (event: { source: GridBase }) => void
|
|
29965
29981
|
/**
|
|
29966
29982
|
* 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`*.
|
|
29967
29983
|
* @param {object} event Event object
|
|
@@ -30021,10 +30037,10 @@ type GridListenersTypes = {
|
|
|
30021
30037
|
/**
|
|
30022
30038
|
* Grid has scrolled vertically
|
|
30023
30039
|
* @param {object} event Event object
|
|
30024
|
-
* @param {Grid.view.
|
|
30040
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance.
|
|
30025
30041
|
* @param {number} event.scrollTop The vertical scroll position.
|
|
30026
30042
|
*/
|
|
30027
|
-
scroll: (event: { source:
|
|
30043
|
+
scroll: (event: { source: GridBase, scrollTop: number }) => void
|
|
30028
30044
|
/**
|
|
30029
30045
|
* The selection has been changed.
|
|
30030
30046
|
* @param {object} event Event object
|
|
@@ -30112,17 +30128,17 @@ type GridListenersTypes = {
|
|
|
30112
30128
|
/**
|
|
30113
30129
|
* Fires after a sub grid is collapsed.
|
|
30114
30130
|
* @param {object} event Event object
|
|
30115
|
-
* @param {Grid.view.
|
|
30131
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
30116
30132
|
* @param {Grid.view.SubGrid} event.subGrid The sub grid instance
|
|
30117
30133
|
*/
|
|
30118
|
-
subGridCollapse: (event: { source:
|
|
30134
|
+
subGridCollapse: (event: { source: GridBase, subGrid: SubGrid }) => void
|
|
30119
30135
|
/**
|
|
30120
30136
|
* Fires after a sub grid is expanded.
|
|
30121
30137
|
* @param {object} event Event object
|
|
30122
|
-
* @param {Grid.view.
|
|
30138
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
30123
30139
|
* @param {Grid.view.SubGrid} event.subGrid The sub grid instance
|
|
30124
30140
|
*/
|
|
30125
|
-
subGridExpand: (event: { source:
|
|
30141
|
+
subGridExpand: (event: { source: GridBase, subGrid: SubGrid }) => void
|
|
30126
30142
|
/**
|
|
30127
30143
|
* Fired when one or more groups are expanded or collapsed
|
|
30128
30144
|
* @param {object} event Event object
|
|
@@ -30215,6 +30231,14 @@ type GridListeners = {
|
|
|
30215
30231
|
* @param {any} event.value The value being set
|
|
30216
30232
|
*/
|
|
30217
30233
|
beforeCellRangeEdit?: ((event: { record: Model, field: string, value: any }) => Promise<boolean>|boolean|void)|string
|
|
30234
|
+
/**
|
|
30235
|
+
* This event is triggered before a parent column is collapsed or expanded.
|
|
30236
|
+
* @param {object} event Event object
|
|
30237
|
+
* @param {Grid.view.GridBase} event.source The grid instance
|
|
30238
|
+
* @param {Grid.column.Column} event.column The column
|
|
30239
|
+
* @param {boolean} event.collapsed `true` if the column is being collapsed, `false` if expanded
|
|
30240
|
+
*/
|
|
30241
|
+
beforeColumnCollapseToggle?: ((event: { source: GridBase, column: Column, collapsed: boolean }) => void)|string
|
|
30218
30242
|
/**
|
|
30219
30243
|
* This event is fired prior to starting a column drag gesture. The drag is canceled if a listener returns `false`.
|
|
30220
30244
|
* @param {object} event Event object
|
|
@@ -30315,18 +30339,18 @@ type GridListeners = {
|
|
|
30315
30339
|
/**
|
|
30316
30340
|
* Fires before a row is rendered.
|
|
30317
30341
|
* @param {object} event Event object
|
|
30318
|
-
* @param {Grid.view.
|
|
30319
|
-
* @param {Grid.row.Row} event.row The row about to be rendered
|
|
30320
|
-
* @param {Core.data.Model} event.record The record for the row
|
|
30321
|
-
* @param {number} event.recordIndex The zero-based index of the record
|
|
30342
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
30343
|
+
* @param {Grid.row.Row} event.row The row about to be rendered
|
|
30344
|
+
* @param {Core.data.Model} event.record The record for the row
|
|
30345
|
+
* @param {number} event.recordIndex The zero-based index of the record
|
|
30322
30346
|
*/
|
|
30323
|
-
beforeRenderRow?: ((event: { source:
|
|
30347
|
+
beforeRenderRow?: ((event: { source: GridBase, row: Row, record: Model, recordIndex: number }) => void)|string
|
|
30324
30348
|
/**
|
|
30325
30349
|
* Grid rows are about to be rendered
|
|
30326
30350
|
* @param {object} event Event object
|
|
30327
|
-
* @param {Grid.view.
|
|
30351
|
+
* @param {Grid.view.GridBase} event.source This grid.
|
|
30328
30352
|
*/
|
|
30329
|
-
beforeRenderRows?: ((event: { source:
|
|
30353
|
+
beforeRenderRows?: ((event: { source: GridBase }) => void)|string
|
|
30330
30354
|
/**
|
|
30331
30355
|
* This event fires before row collapse is started.
|
|
30332
30356
|
* ...
|
|
@@ -30557,6 +30581,14 @@ type GridListeners = {
|
|
|
30557
30581
|
* @param {Core.data.Model} event.record The record which has been collapsed.
|
|
30558
30582
|
*/
|
|
30559
30583
|
collapseNode?: ((event: { source: Grid, record: Model }) => void)|string
|
|
30584
|
+
/**
|
|
30585
|
+
* This event is triggered after a parent column has been collapsed or expanded.
|
|
30586
|
+
* @param {object} event Event object
|
|
30587
|
+
* @param {Grid.view.GridBase} event.source The Grid instance
|
|
30588
|
+
* @param {Grid.column.Column} event.column The column being toggled
|
|
30589
|
+
* @param {boolean} event.collapsed `true` if the column is now collapsed, `false` if expanded
|
|
30590
|
+
*/
|
|
30591
|
+
columnCollapseToggle?: ((event: { source: GridBase, column: Column, collapsed: boolean }) => void)|string
|
|
30560
30592
|
/**
|
|
30561
30593
|
* This event is fired when a column is being dragged, and you can set the `valid` flag on the `context` object
|
|
30562
30594
|
* to indicate whether the drop position is valid or not.
|
|
@@ -30638,14 +30670,14 @@ type GridListeners = {
|
|
|
30638
30670
|
* ...
|
|
30639
30671
|
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#event-dataChange)
|
|
30640
30672
|
* @param {object} event Event object
|
|
30641
|
-
* @param {Grid.view.
|
|
30673
|
+
* @param {Grid.view.GridBase} event.source Owning grid
|
|
30642
30674
|
* @param {Core.data.Store} event.store The originating store
|
|
30643
30675
|
* @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'`
|
|
30644
30676
|
* @param {Core.data.Model} event.record Changed record, for actions that affects exactly one record (`'update'`)
|
|
30645
30677
|
* @param {Core.data.Model[]} event.records Changed records, passed for all actions except `'removeAll'`
|
|
30646
30678
|
* @param {object} event.changes Passed for the `'update'` action, info on which record fields changed
|
|
30647
30679
|
*/
|
|
30648
|
-
dataChange?: ((event: { source:
|
|
30680
|
+
dataChange?: ((event: { source: GridBase, store: Store, action: 'remove'|'removeAll'|'add'|'clearchanges'|'filter'|'update'|'dataset'|'replace', record: Model, records: Model[], changes: object }) => void)|string
|
|
30649
30681
|
/**
|
|
30650
30682
|
* Fires when an object is destroyed.
|
|
30651
30683
|
* @param {object} event Event object
|
|
@@ -30953,18 +30985,18 @@ type GridListeners = {
|
|
|
30953
30985
|
/**
|
|
30954
30986
|
* Fires after a row is rendered.
|
|
30955
30987
|
* @param {object} event Event object
|
|
30956
|
-
* @param {Grid.view.
|
|
30957
|
-
* @param {Grid.row.Row} event.row The row that has been rendered
|
|
30958
|
-
* @param {Core.data.Model} event.record The record for the row
|
|
30959
|
-
* @param {number} event.recordIndex The zero-based index of the record
|
|
30988
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
30989
|
+
* @param {Grid.row.Row} event.row The row that has been rendered
|
|
30990
|
+
* @param {Core.data.Model} event.record The record for the row
|
|
30991
|
+
* @param {number} event.recordIndex The zero-based index of the record
|
|
30960
30992
|
*/
|
|
30961
|
-
renderRow?: ((event: { source:
|
|
30993
|
+
renderRow?: ((event: { source: GridBase, row: Row, record: Model, recordIndex: number }) => void)|string
|
|
30962
30994
|
/**
|
|
30963
30995
|
* Grid rows have been rendered
|
|
30964
30996
|
* @param {object} event Event object
|
|
30965
|
-
* @param {Grid.view.
|
|
30997
|
+
* @param {Grid.view.GridBase} event.source This grid.
|
|
30966
30998
|
*/
|
|
30967
|
-
renderRows?: ((event: { source:
|
|
30999
|
+
renderRows?: ((event: { source: GridBase }) => void)|string
|
|
30968
31000
|
/**
|
|
30969
31001
|
* 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`*.
|
|
30970
31002
|
* @param {object} event Event object
|
|
@@ -31024,10 +31056,10 @@ type GridListeners = {
|
|
|
31024
31056
|
/**
|
|
31025
31057
|
* Grid has scrolled vertically
|
|
31026
31058
|
* @param {object} event Event object
|
|
31027
|
-
* @param {Grid.view.
|
|
31059
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance.
|
|
31028
31060
|
* @param {number} event.scrollTop The vertical scroll position.
|
|
31029
31061
|
*/
|
|
31030
|
-
scroll?: ((event: { source:
|
|
31062
|
+
scroll?: ((event: { source: GridBase, scrollTop: number }) => void)|string
|
|
31031
31063
|
/**
|
|
31032
31064
|
* The selection has been changed.
|
|
31033
31065
|
* @param {object} event Event object
|
|
@@ -31115,17 +31147,17 @@ type GridListeners = {
|
|
|
31115
31147
|
/**
|
|
31116
31148
|
* Fires after a sub grid is collapsed.
|
|
31117
31149
|
* @param {object} event Event object
|
|
31118
|
-
* @param {Grid.view.
|
|
31150
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
31119
31151
|
* @param {Grid.view.SubGrid} event.subGrid The sub grid instance
|
|
31120
31152
|
*/
|
|
31121
|
-
subGridCollapse?: ((event: { source:
|
|
31153
|
+
subGridCollapse?: ((event: { source: GridBase, subGrid: SubGrid }) => void)|string
|
|
31122
31154
|
/**
|
|
31123
31155
|
* Fires after a sub grid is expanded.
|
|
31124
31156
|
* @param {object} event Event object
|
|
31125
|
-
* @param {Grid.view.
|
|
31157
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
31126
31158
|
* @param {Grid.view.SubGrid} event.subGrid The sub grid instance
|
|
31127
31159
|
*/
|
|
31128
|
-
subGridExpand?: ((event: { source:
|
|
31160
|
+
subGridExpand?: ((event: { source: GridBase, subGrid: SubGrid }) => void)|string
|
|
31129
31161
|
/**
|
|
31130
31162
|
* Fired when one or more groups are expanded or collapsed
|
|
31131
31163
|
* @param {object} event Event object
|
|
@@ -32053,6 +32085,14 @@ type GridConfig = {
|
|
|
32053
32085
|
* @param {any} event.value The value being set
|
|
32054
32086
|
*/
|
|
32055
32087
|
onBeforeCellRangeEdit?: ((event: { record: Model, field: string, value: any }) => Promise<boolean>|boolean|void)|string
|
|
32088
|
+
/**
|
|
32089
|
+
* This event is triggered before a parent column is collapsed or expanded.
|
|
32090
|
+
* @param {object} event Event object
|
|
32091
|
+
* @param {Grid.view.GridBase} event.source The grid instance
|
|
32092
|
+
* @param {Grid.column.Column} event.column The column
|
|
32093
|
+
* @param {boolean} event.collapsed `true` if the column is being collapsed, `false` if expanded
|
|
32094
|
+
*/
|
|
32095
|
+
onBeforeColumnCollapseToggle?: ((event: { source: GridBase, column: Column, collapsed: boolean }) => void)|string
|
|
32056
32096
|
/**
|
|
32057
32097
|
* This event is fired prior to starting a column drag gesture. The drag is canceled if a listener returns `false`.
|
|
32058
32098
|
* @param {object} event Event object
|
|
@@ -32153,18 +32193,18 @@ type GridConfig = {
|
|
|
32153
32193
|
/**
|
|
32154
32194
|
* Fires before a row is rendered.
|
|
32155
32195
|
* @param {object} event Event object
|
|
32156
|
-
* @param {Grid.view.
|
|
32157
|
-
* @param {Grid.row.Row} event.row The row about to be rendered
|
|
32158
|
-
* @param {Core.data.Model} event.record The record for the row
|
|
32159
|
-
* @param {number} event.recordIndex The zero-based index of the record
|
|
32196
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
32197
|
+
* @param {Grid.row.Row} event.row The row about to be rendered
|
|
32198
|
+
* @param {Core.data.Model} event.record The record for the row
|
|
32199
|
+
* @param {number} event.recordIndex The zero-based index of the record
|
|
32160
32200
|
*/
|
|
32161
|
-
onBeforeRenderRow?: ((event: { source:
|
|
32201
|
+
onBeforeRenderRow?: ((event: { source: GridBase, row: Row, record: Model, recordIndex: number }) => void)|string
|
|
32162
32202
|
/**
|
|
32163
32203
|
* Grid rows are about to be rendered
|
|
32164
32204
|
* @param {object} event Event object
|
|
32165
|
-
* @param {Grid.view.
|
|
32205
|
+
* @param {Grid.view.GridBase} event.source This grid.
|
|
32166
32206
|
*/
|
|
32167
|
-
onBeforeRenderRows?: ((event: { source:
|
|
32207
|
+
onBeforeRenderRows?: ((event: { source: GridBase }) => void)|string
|
|
32168
32208
|
/**
|
|
32169
32209
|
* This event fires before row collapse is started.
|
|
32170
32210
|
* ...
|
|
@@ -32395,6 +32435,14 @@ type GridConfig = {
|
|
|
32395
32435
|
* @param {Core.data.Model} event.record The record which has been collapsed.
|
|
32396
32436
|
*/
|
|
32397
32437
|
onCollapseNode?: ((event: { source: Grid, record: Model }) => void)|string
|
|
32438
|
+
/**
|
|
32439
|
+
* This event is triggered after a parent column has been collapsed or expanded.
|
|
32440
|
+
* @param {object} event Event object
|
|
32441
|
+
* @param {Grid.view.GridBase} event.source The Grid instance
|
|
32442
|
+
* @param {Grid.column.Column} event.column The column being toggled
|
|
32443
|
+
* @param {boolean} event.collapsed `true` if the column is now collapsed, `false` if expanded
|
|
32444
|
+
*/
|
|
32445
|
+
onColumnCollapseToggle?: ((event: { source: GridBase, column: Column, collapsed: boolean }) => void)|string
|
|
32398
32446
|
/**
|
|
32399
32447
|
* This event is fired when a column is being dragged, and you can set the `valid` flag on the `context` object
|
|
32400
32448
|
* to indicate whether the drop position is valid or not.
|
|
@@ -32476,14 +32524,14 @@ type GridConfig = {
|
|
|
32476
32524
|
* ...
|
|
32477
32525
|
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#event-dataChange)
|
|
32478
32526
|
* @param {object} event Event object
|
|
32479
|
-
* @param {Grid.view.
|
|
32527
|
+
* @param {Grid.view.GridBase} event.source Owning grid
|
|
32480
32528
|
* @param {Core.data.Store} event.store The originating store
|
|
32481
32529
|
* @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'`
|
|
32482
32530
|
* @param {Core.data.Model} event.record Changed record, for actions that affects exactly one record (`'update'`)
|
|
32483
32531
|
* @param {Core.data.Model[]} event.records Changed records, passed for all actions except `'removeAll'`
|
|
32484
32532
|
* @param {object} event.changes Passed for the `'update'` action, info on which record fields changed
|
|
32485
32533
|
*/
|
|
32486
|
-
onDataChange?: ((event: { source:
|
|
32534
|
+
onDataChange?: ((event: { source: GridBase, store: Store, action: 'remove'|'removeAll'|'add'|'clearchanges'|'filter'|'update'|'dataset'|'replace', record: Model, records: Model[], changes: object }) => void)|string
|
|
32487
32535
|
/**
|
|
32488
32536
|
* Fires when an object is destroyed.
|
|
32489
32537
|
* @param {object} event Event object
|
|
@@ -32791,18 +32839,18 @@ type GridConfig = {
|
|
|
32791
32839
|
/**
|
|
32792
32840
|
* Fires after a row is rendered.
|
|
32793
32841
|
* @param {object} event Event object
|
|
32794
|
-
* @param {Grid.view.
|
|
32795
|
-
* @param {Grid.row.Row} event.row The row that has been rendered
|
|
32796
|
-
* @param {Core.data.Model} event.record The record for the row
|
|
32797
|
-
* @param {number} event.recordIndex The zero-based index of the record
|
|
32842
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
32843
|
+
* @param {Grid.row.Row} event.row The row that has been rendered
|
|
32844
|
+
* @param {Core.data.Model} event.record The record for the row
|
|
32845
|
+
* @param {number} event.recordIndex The zero-based index of the record
|
|
32798
32846
|
*/
|
|
32799
|
-
onRenderRow?: ((event: { source:
|
|
32847
|
+
onRenderRow?: ((event: { source: GridBase, row: Row, record: Model, recordIndex: number }) => void)|string
|
|
32800
32848
|
/**
|
|
32801
32849
|
* Grid rows have been rendered
|
|
32802
32850
|
* @param {object} event Event object
|
|
32803
|
-
* @param {Grid.view.
|
|
32851
|
+
* @param {Grid.view.GridBase} event.source This grid.
|
|
32804
32852
|
*/
|
|
32805
|
-
onRenderRows?: ((event: { source:
|
|
32853
|
+
onRenderRows?: ((event: { source: GridBase }) => void)|string
|
|
32806
32854
|
/**
|
|
32807
32855
|
* 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`*.
|
|
32808
32856
|
* @param {object} event Event object
|
|
@@ -32862,10 +32910,10 @@ type GridConfig = {
|
|
|
32862
32910
|
/**
|
|
32863
32911
|
* Grid has scrolled vertically
|
|
32864
32912
|
* @param {object} event Event object
|
|
32865
|
-
* @param {Grid.view.
|
|
32913
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance.
|
|
32866
32914
|
* @param {number} event.scrollTop The vertical scroll position.
|
|
32867
32915
|
*/
|
|
32868
|
-
onScroll?: ((event: { source:
|
|
32916
|
+
onScroll?: ((event: { source: GridBase, scrollTop: number }) => void)|string
|
|
32869
32917
|
/**
|
|
32870
32918
|
* The selection has been changed.
|
|
32871
32919
|
* @param {object} event Event object
|
|
@@ -32953,17 +33001,17 @@ type GridConfig = {
|
|
|
32953
33001
|
/**
|
|
32954
33002
|
* Fires after a sub grid is collapsed.
|
|
32955
33003
|
* @param {object} event Event object
|
|
32956
|
-
* @param {Grid.view.
|
|
33004
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
32957
33005
|
* @param {Grid.view.SubGrid} event.subGrid The sub grid instance
|
|
32958
33006
|
*/
|
|
32959
|
-
onSubGridCollapse?: ((event: { source:
|
|
33007
|
+
onSubGridCollapse?: ((event: { source: GridBase, subGrid: SubGrid }) => void)|string
|
|
32960
33008
|
/**
|
|
32961
33009
|
* Fires after a sub grid is expanded.
|
|
32962
33010
|
* @param {object} event Event object
|
|
32963
|
-
* @param {Grid.view.
|
|
33011
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
32964
33012
|
* @param {Grid.view.SubGrid} event.subGrid The sub grid instance
|
|
32965
33013
|
*/
|
|
32966
|
-
onSubGridExpand?: ((event: { source:
|
|
33014
|
+
onSubGridExpand?: ((event: { source: GridBase, subGrid: SubGrid }) => void)|string
|
|
32967
33015
|
/**
|
|
32968
33016
|
* Fired when one or more groups are expanded or collapsed
|
|
32969
33017
|
* @param {object} event Event object
|
|
@@ -33275,6 +33323,14 @@ type GridBaseListenersTypes = {
|
|
|
33275
33323
|
* @param {any} event.value The value being set
|
|
33276
33324
|
*/
|
|
33277
33325
|
beforeCellRangeEdit: (event: { record: Model, field: string, value: any }) => Promise<boolean>|boolean|void
|
|
33326
|
+
/**
|
|
33327
|
+
* This event is triggered before a parent column is collapsed or expanded.
|
|
33328
|
+
* @param {object} event Event object
|
|
33329
|
+
* @param {Grid.view.GridBase} event.source The grid instance
|
|
33330
|
+
* @param {Grid.column.Column} event.column The column
|
|
33331
|
+
* @param {boolean} event.collapsed `true` if the column is being collapsed, `false` if expanded
|
|
33332
|
+
*/
|
|
33333
|
+
beforeColumnCollapseToggle: (event: { source: GridBase, column: Column, collapsed: boolean }) => void
|
|
33278
33334
|
/**
|
|
33279
33335
|
* This event is fired prior to starting a column drag gesture. The drag is canceled if a listener returns `false`.
|
|
33280
33336
|
* @param {object} event Event object
|
|
@@ -33375,18 +33431,18 @@ type GridBaseListenersTypes = {
|
|
|
33375
33431
|
/**
|
|
33376
33432
|
* Fires before a row is rendered.
|
|
33377
33433
|
* @param {object} event Event object
|
|
33378
|
-
* @param {Grid.view.
|
|
33379
|
-
* @param {Grid.row.Row} event.row The row about to be rendered
|
|
33380
|
-
* @param {Core.data.Model} event.record The record for the row
|
|
33381
|
-
* @param {number} event.recordIndex The zero-based index of the record
|
|
33434
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
33435
|
+
* @param {Grid.row.Row} event.row The row about to be rendered
|
|
33436
|
+
* @param {Core.data.Model} event.record The record for the row
|
|
33437
|
+
* @param {number} event.recordIndex The zero-based index of the record
|
|
33382
33438
|
*/
|
|
33383
|
-
beforeRenderRow: (event: { source:
|
|
33439
|
+
beforeRenderRow: (event: { source: GridBase, row: Row, record: Model, recordIndex: number }) => void
|
|
33384
33440
|
/**
|
|
33385
33441
|
* Grid rows are about to be rendered
|
|
33386
33442
|
* @param {object} event Event object
|
|
33387
|
-
* @param {Grid.view.
|
|
33443
|
+
* @param {Grid.view.GridBase} event.source This grid.
|
|
33388
33444
|
*/
|
|
33389
|
-
beforeRenderRows: (event: { source:
|
|
33445
|
+
beforeRenderRows: (event: { source: GridBase }) => void
|
|
33390
33446
|
/**
|
|
33391
33447
|
* This event fires before row collapse is started.
|
|
33392
33448
|
* ...
|
|
@@ -33617,6 +33673,14 @@ type GridBaseListenersTypes = {
|
|
|
33617
33673
|
* @param {Core.data.Model} event.record The record which has been collapsed.
|
|
33618
33674
|
*/
|
|
33619
33675
|
collapseNode: (event: { source: Grid, record: Model }) => void
|
|
33676
|
+
/**
|
|
33677
|
+
* This event is triggered after a parent column has been collapsed or expanded.
|
|
33678
|
+
* @param {object} event Event object
|
|
33679
|
+
* @param {Grid.view.GridBase} event.source The Grid instance
|
|
33680
|
+
* @param {Grid.column.Column} event.column The column being toggled
|
|
33681
|
+
* @param {boolean} event.collapsed `true` if the column is now collapsed, `false` if expanded
|
|
33682
|
+
*/
|
|
33683
|
+
columnCollapseToggle: (event: { source: GridBase, column: Column, collapsed: boolean }) => void
|
|
33620
33684
|
/**
|
|
33621
33685
|
* This event is fired when a column is being dragged, and you can set the `valid` flag on the `context` object
|
|
33622
33686
|
* to indicate whether the drop position is valid or not.
|
|
@@ -33698,14 +33762,14 @@ type GridBaseListenersTypes = {
|
|
|
33698
33762
|
* ...
|
|
33699
33763
|
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/GridBase#event-dataChange)
|
|
33700
33764
|
* @param {object} event Event object
|
|
33701
|
-
* @param {Grid.view.
|
|
33765
|
+
* @param {Grid.view.GridBase} event.source Owning grid
|
|
33702
33766
|
* @param {Core.data.Store} event.store The originating store
|
|
33703
33767
|
* @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'`
|
|
33704
33768
|
* @param {Core.data.Model} event.record Changed record, for actions that affects exactly one record (`'update'`)
|
|
33705
33769
|
* @param {Core.data.Model[]} event.records Changed records, passed for all actions except `'removeAll'`
|
|
33706
33770
|
* @param {object} event.changes Passed for the `'update'` action, info on which record fields changed
|
|
33707
33771
|
*/
|
|
33708
|
-
dataChange: (event: { source:
|
|
33772
|
+
dataChange: (event: { source: GridBase, store: Store, action: 'remove'|'removeAll'|'add'|'clearchanges'|'filter'|'update'|'dataset'|'replace', record: Model, records: Model[], changes: object }) => void
|
|
33709
33773
|
/**
|
|
33710
33774
|
* Fires when an object is destroyed.
|
|
33711
33775
|
* @param {object} event Event object
|
|
@@ -34013,18 +34077,18 @@ type GridBaseListenersTypes = {
|
|
|
34013
34077
|
/**
|
|
34014
34078
|
* Fires after a row is rendered.
|
|
34015
34079
|
* @param {object} event Event object
|
|
34016
|
-
* @param {Grid.view.
|
|
34017
|
-
* @param {Grid.row.Row} event.row The row that has been rendered
|
|
34018
|
-
* @param {Core.data.Model} event.record The record for the row
|
|
34019
|
-
* @param {number} event.recordIndex The zero-based index of the record
|
|
34080
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
34081
|
+
* @param {Grid.row.Row} event.row The row that has been rendered
|
|
34082
|
+
* @param {Core.data.Model} event.record The record for the row
|
|
34083
|
+
* @param {number} event.recordIndex The zero-based index of the record
|
|
34020
34084
|
*/
|
|
34021
|
-
renderRow: (event: { source:
|
|
34085
|
+
renderRow: (event: { source: GridBase, row: Row, record: Model, recordIndex: number }) => void
|
|
34022
34086
|
/**
|
|
34023
34087
|
* Grid rows have been rendered
|
|
34024
34088
|
* @param {object} event Event object
|
|
34025
|
-
* @param {Grid.view.
|
|
34089
|
+
* @param {Grid.view.GridBase} event.source This grid.
|
|
34026
34090
|
*/
|
|
34027
|
-
renderRows: (event: { source:
|
|
34091
|
+
renderRows: (event: { source: GridBase }) => void
|
|
34028
34092
|
/**
|
|
34029
34093
|
* 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`*.
|
|
34030
34094
|
* @param {object} event Event object
|
|
@@ -34084,10 +34148,10 @@ type GridBaseListenersTypes = {
|
|
|
34084
34148
|
/**
|
|
34085
34149
|
* Grid has scrolled vertically
|
|
34086
34150
|
* @param {object} event Event object
|
|
34087
|
-
* @param {Grid.view.
|
|
34151
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance.
|
|
34088
34152
|
* @param {number} event.scrollTop The vertical scroll position.
|
|
34089
34153
|
*/
|
|
34090
|
-
scroll: (event: { source:
|
|
34154
|
+
scroll: (event: { source: GridBase, scrollTop: number }) => void
|
|
34091
34155
|
/**
|
|
34092
34156
|
* The selection has been changed.
|
|
34093
34157
|
* @param {object} event Event object
|
|
@@ -34175,17 +34239,17 @@ type GridBaseListenersTypes = {
|
|
|
34175
34239
|
/**
|
|
34176
34240
|
* Fires after a sub grid is collapsed.
|
|
34177
34241
|
* @param {object} event Event object
|
|
34178
|
-
* @param {Grid.view.
|
|
34242
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
34179
34243
|
* @param {Grid.view.SubGrid} event.subGrid The sub grid instance
|
|
34180
34244
|
*/
|
|
34181
|
-
subGridCollapse: (event: { source:
|
|
34245
|
+
subGridCollapse: (event: { source: GridBase, subGrid: SubGrid }) => void
|
|
34182
34246
|
/**
|
|
34183
34247
|
* Fires after a sub grid is expanded.
|
|
34184
34248
|
* @param {object} event Event object
|
|
34185
|
-
* @param {Grid.view.
|
|
34249
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
34186
34250
|
* @param {Grid.view.SubGrid} event.subGrid The sub grid instance
|
|
34187
34251
|
*/
|
|
34188
|
-
subGridExpand: (event: { source:
|
|
34252
|
+
subGridExpand: (event: { source: GridBase, subGrid: SubGrid }) => void
|
|
34189
34253
|
/**
|
|
34190
34254
|
* Fired when one or more groups are expanded or collapsed
|
|
34191
34255
|
* @param {object} event Event object
|
|
@@ -34278,6 +34342,14 @@ type GridBaseListeners = {
|
|
|
34278
34342
|
* @param {any} event.value The value being set
|
|
34279
34343
|
*/
|
|
34280
34344
|
beforeCellRangeEdit?: ((event: { record: Model, field: string, value: any }) => Promise<boolean>|boolean|void)|string
|
|
34345
|
+
/**
|
|
34346
|
+
* This event is triggered before a parent column is collapsed or expanded.
|
|
34347
|
+
* @param {object} event Event object
|
|
34348
|
+
* @param {Grid.view.GridBase} event.source The grid instance
|
|
34349
|
+
* @param {Grid.column.Column} event.column The column
|
|
34350
|
+
* @param {boolean} event.collapsed `true` if the column is being collapsed, `false` if expanded
|
|
34351
|
+
*/
|
|
34352
|
+
beforeColumnCollapseToggle?: ((event: { source: GridBase, column: Column, collapsed: boolean }) => void)|string
|
|
34281
34353
|
/**
|
|
34282
34354
|
* This event is fired prior to starting a column drag gesture. The drag is canceled if a listener returns `false`.
|
|
34283
34355
|
* @param {object} event Event object
|
|
@@ -34378,18 +34450,18 @@ type GridBaseListeners = {
|
|
|
34378
34450
|
/**
|
|
34379
34451
|
* Fires before a row is rendered.
|
|
34380
34452
|
* @param {object} event Event object
|
|
34381
|
-
* @param {Grid.view.
|
|
34382
|
-
* @param {Grid.row.Row} event.row The row about to be rendered
|
|
34383
|
-
* @param {Core.data.Model} event.record The record for the row
|
|
34384
|
-
* @param {number} event.recordIndex The zero-based index of the record
|
|
34453
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
34454
|
+
* @param {Grid.row.Row} event.row The row about to be rendered
|
|
34455
|
+
* @param {Core.data.Model} event.record The record for the row
|
|
34456
|
+
* @param {number} event.recordIndex The zero-based index of the record
|
|
34385
34457
|
*/
|
|
34386
|
-
beforeRenderRow?: ((event: { source:
|
|
34458
|
+
beforeRenderRow?: ((event: { source: GridBase, row: Row, record: Model, recordIndex: number }) => void)|string
|
|
34387
34459
|
/**
|
|
34388
34460
|
* Grid rows are about to be rendered
|
|
34389
34461
|
* @param {object} event Event object
|
|
34390
|
-
* @param {Grid.view.
|
|
34462
|
+
* @param {Grid.view.GridBase} event.source This grid.
|
|
34391
34463
|
*/
|
|
34392
|
-
beforeRenderRows?: ((event: { source:
|
|
34464
|
+
beforeRenderRows?: ((event: { source: GridBase }) => void)|string
|
|
34393
34465
|
/**
|
|
34394
34466
|
* This event fires before row collapse is started.
|
|
34395
34467
|
* ...
|
|
@@ -34620,6 +34692,14 @@ type GridBaseListeners = {
|
|
|
34620
34692
|
* @param {Core.data.Model} event.record The record which has been collapsed.
|
|
34621
34693
|
*/
|
|
34622
34694
|
collapseNode?: ((event: { source: Grid, record: Model }) => void)|string
|
|
34695
|
+
/**
|
|
34696
|
+
* This event is triggered after a parent column has been collapsed or expanded.
|
|
34697
|
+
* @param {object} event Event object
|
|
34698
|
+
* @param {Grid.view.GridBase} event.source The Grid instance
|
|
34699
|
+
* @param {Grid.column.Column} event.column The column being toggled
|
|
34700
|
+
* @param {boolean} event.collapsed `true` if the column is now collapsed, `false` if expanded
|
|
34701
|
+
*/
|
|
34702
|
+
columnCollapseToggle?: ((event: { source: GridBase, column: Column, collapsed: boolean }) => void)|string
|
|
34623
34703
|
/**
|
|
34624
34704
|
* This event is fired when a column is being dragged, and you can set the `valid` flag on the `context` object
|
|
34625
34705
|
* to indicate whether the drop position is valid or not.
|
|
@@ -34701,14 +34781,14 @@ type GridBaseListeners = {
|
|
|
34701
34781
|
* ...
|
|
34702
34782
|
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/GridBase#event-dataChange)
|
|
34703
34783
|
* @param {object} event Event object
|
|
34704
|
-
* @param {Grid.view.
|
|
34784
|
+
* @param {Grid.view.GridBase} event.source Owning grid
|
|
34705
34785
|
* @param {Core.data.Store} event.store The originating store
|
|
34706
34786
|
* @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'`
|
|
34707
34787
|
* @param {Core.data.Model} event.record Changed record, for actions that affects exactly one record (`'update'`)
|
|
34708
34788
|
* @param {Core.data.Model[]} event.records Changed records, passed for all actions except `'removeAll'`
|
|
34709
34789
|
* @param {object} event.changes Passed for the `'update'` action, info on which record fields changed
|
|
34710
34790
|
*/
|
|
34711
|
-
dataChange?: ((event: { source:
|
|
34791
|
+
dataChange?: ((event: { source: GridBase, store: Store, action: 'remove'|'removeAll'|'add'|'clearchanges'|'filter'|'update'|'dataset'|'replace', record: Model, records: Model[], changes: object }) => void)|string
|
|
34712
34792
|
/**
|
|
34713
34793
|
* Fires when an object is destroyed.
|
|
34714
34794
|
* @param {object} event Event object
|
|
@@ -35016,18 +35096,18 @@ type GridBaseListeners = {
|
|
|
35016
35096
|
/**
|
|
35017
35097
|
* Fires after a row is rendered.
|
|
35018
35098
|
* @param {object} event Event object
|
|
35019
|
-
* @param {Grid.view.
|
|
35020
|
-
* @param {Grid.row.Row} event.row The row that has been rendered
|
|
35021
|
-
* @param {Core.data.Model} event.record The record for the row
|
|
35022
|
-
* @param {number} event.recordIndex The zero-based index of the record
|
|
35099
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
35100
|
+
* @param {Grid.row.Row} event.row The row that has been rendered
|
|
35101
|
+
* @param {Core.data.Model} event.record The record for the row
|
|
35102
|
+
* @param {number} event.recordIndex The zero-based index of the record
|
|
35023
35103
|
*/
|
|
35024
|
-
renderRow?: ((event: { source:
|
|
35104
|
+
renderRow?: ((event: { source: GridBase, row: Row, record: Model, recordIndex: number }) => void)|string
|
|
35025
35105
|
/**
|
|
35026
35106
|
* Grid rows have been rendered
|
|
35027
35107
|
* @param {object} event Event object
|
|
35028
|
-
* @param {Grid.view.
|
|
35108
|
+
* @param {Grid.view.GridBase} event.source This grid.
|
|
35029
35109
|
*/
|
|
35030
|
-
renderRows?: ((event: { source:
|
|
35110
|
+
renderRows?: ((event: { source: GridBase }) => void)|string
|
|
35031
35111
|
/**
|
|
35032
35112
|
* 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`*.
|
|
35033
35113
|
* @param {object} event Event object
|
|
@@ -35087,10 +35167,10 @@ type GridBaseListeners = {
|
|
|
35087
35167
|
/**
|
|
35088
35168
|
* Grid has scrolled vertically
|
|
35089
35169
|
* @param {object} event Event object
|
|
35090
|
-
* @param {Grid.view.
|
|
35170
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance.
|
|
35091
35171
|
* @param {number} event.scrollTop The vertical scroll position.
|
|
35092
35172
|
*/
|
|
35093
|
-
scroll?: ((event: { source:
|
|
35173
|
+
scroll?: ((event: { source: GridBase, scrollTop: number }) => void)|string
|
|
35094
35174
|
/**
|
|
35095
35175
|
* The selection has been changed.
|
|
35096
35176
|
* @param {object} event Event object
|
|
@@ -35178,17 +35258,17 @@ type GridBaseListeners = {
|
|
|
35178
35258
|
/**
|
|
35179
35259
|
* Fires after a sub grid is collapsed.
|
|
35180
35260
|
* @param {object} event Event object
|
|
35181
|
-
* @param {Grid.view.
|
|
35261
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
35182
35262
|
* @param {Grid.view.SubGrid} event.subGrid The sub grid instance
|
|
35183
35263
|
*/
|
|
35184
|
-
subGridCollapse?: ((event: { source:
|
|
35264
|
+
subGridCollapse?: ((event: { source: GridBase, subGrid: SubGrid }) => void)|string
|
|
35185
35265
|
/**
|
|
35186
35266
|
* Fires after a sub grid is expanded.
|
|
35187
35267
|
* @param {object} event Event object
|
|
35188
|
-
* @param {Grid.view.
|
|
35268
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
35189
35269
|
* @param {Grid.view.SubGrid} event.subGrid The sub grid instance
|
|
35190
35270
|
*/
|
|
35191
|
-
subGridExpand?: ((event: { source:
|
|
35271
|
+
subGridExpand?: ((event: { source: GridBase, subGrid: SubGrid }) => void)|string
|
|
35192
35272
|
/**
|
|
35193
35273
|
* Fired when one or more groups are expanded or collapsed
|
|
35194
35274
|
* @param {object} event Event object
|
|
@@ -36115,6 +36195,14 @@ type GridBaseConfig = {
|
|
|
36115
36195
|
* @param {any} event.value The value being set
|
|
36116
36196
|
*/
|
|
36117
36197
|
onBeforeCellRangeEdit?: ((event: { record: Model, field: string, value: any }) => Promise<boolean>|boolean|void)|string
|
|
36198
|
+
/**
|
|
36199
|
+
* This event is triggered before a parent column is collapsed or expanded.
|
|
36200
|
+
* @param {object} event Event object
|
|
36201
|
+
* @param {Grid.view.GridBase} event.source The grid instance
|
|
36202
|
+
* @param {Grid.column.Column} event.column The column
|
|
36203
|
+
* @param {boolean} event.collapsed `true` if the column is being collapsed, `false` if expanded
|
|
36204
|
+
*/
|
|
36205
|
+
onBeforeColumnCollapseToggle?: ((event: { source: GridBase, column: Column, collapsed: boolean }) => void)|string
|
|
36118
36206
|
/**
|
|
36119
36207
|
* This event is fired prior to starting a column drag gesture. The drag is canceled if a listener returns `false`.
|
|
36120
36208
|
* @param {object} event Event object
|
|
@@ -36215,18 +36303,18 @@ type GridBaseConfig = {
|
|
|
36215
36303
|
/**
|
|
36216
36304
|
* Fires before a row is rendered.
|
|
36217
36305
|
* @param {object} event Event object
|
|
36218
|
-
* @param {Grid.view.
|
|
36219
|
-
* @param {Grid.row.Row} event.row The row about to be rendered
|
|
36220
|
-
* @param {Core.data.Model} event.record The record for the row
|
|
36221
|
-
* @param {number} event.recordIndex The zero-based index of the record
|
|
36306
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
36307
|
+
* @param {Grid.row.Row} event.row The row about to be rendered
|
|
36308
|
+
* @param {Core.data.Model} event.record The record for the row
|
|
36309
|
+
* @param {number} event.recordIndex The zero-based index of the record
|
|
36222
36310
|
*/
|
|
36223
|
-
onBeforeRenderRow?: ((event: { source:
|
|
36311
|
+
onBeforeRenderRow?: ((event: { source: GridBase, row: Row, record: Model, recordIndex: number }) => void)|string
|
|
36224
36312
|
/**
|
|
36225
36313
|
* Grid rows are about to be rendered
|
|
36226
36314
|
* @param {object} event Event object
|
|
36227
|
-
* @param {Grid.view.
|
|
36315
|
+
* @param {Grid.view.GridBase} event.source This grid.
|
|
36228
36316
|
*/
|
|
36229
|
-
onBeforeRenderRows?: ((event: { source:
|
|
36317
|
+
onBeforeRenderRows?: ((event: { source: GridBase }) => void)|string
|
|
36230
36318
|
/**
|
|
36231
36319
|
* This event fires before row collapse is started.
|
|
36232
36320
|
* ...
|
|
@@ -36457,6 +36545,14 @@ type GridBaseConfig = {
|
|
|
36457
36545
|
* @param {Core.data.Model} event.record The record which has been collapsed.
|
|
36458
36546
|
*/
|
|
36459
36547
|
onCollapseNode?: ((event: { source: Grid, record: Model }) => void)|string
|
|
36548
|
+
/**
|
|
36549
|
+
* This event is triggered after a parent column has been collapsed or expanded.
|
|
36550
|
+
* @param {object} event Event object
|
|
36551
|
+
* @param {Grid.view.GridBase} event.source The Grid instance
|
|
36552
|
+
* @param {Grid.column.Column} event.column The column being toggled
|
|
36553
|
+
* @param {boolean} event.collapsed `true` if the column is now collapsed, `false` if expanded
|
|
36554
|
+
*/
|
|
36555
|
+
onColumnCollapseToggle?: ((event: { source: GridBase, column: Column, collapsed: boolean }) => void)|string
|
|
36460
36556
|
/**
|
|
36461
36557
|
* This event is fired when a column is being dragged, and you can set the `valid` flag on the `context` object
|
|
36462
36558
|
* to indicate whether the drop position is valid or not.
|
|
@@ -36538,14 +36634,14 @@ type GridBaseConfig = {
|
|
|
36538
36634
|
* ...
|
|
36539
36635
|
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/GridBase#event-dataChange)
|
|
36540
36636
|
* @param {object} event Event object
|
|
36541
|
-
* @param {Grid.view.
|
|
36637
|
+
* @param {Grid.view.GridBase} event.source Owning grid
|
|
36542
36638
|
* @param {Core.data.Store} event.store The originating store
|
|
36543
36639
|
* @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'`
|
|
36544
36640
|
* @param {Core.data.Model} event.record Changed record, for actions that affects exactly one record (`'update'`)
|
|
36545
36641
|
* @param {Core.data.Model[]} event.records Changed records, passed for all actions except `'removeAll'`
|
|
36546
36642
|
* @param {object} event.changes Passed for the `'update'` action, info on which record fields changed
|
|
36547
36643
|
*/
|
|
36548
|
-
onDataChange?: ((event: { source:
|
|
36644
|
+
onDataChange?: ((event: { source: GridBase, store: Store, action: 'remove'|'removeAll'|'add'|'clearchanges'|'filter'|'update'|'dataset'|'replace', record: Model, records: Model[], changes: object }) => void)|string
|
|
36549
36645
|
/**
|
|
36550
36646
|
* Fires when an object is destroyed.
|
|
36551
36647
|
* @param {object} event Event object
|
|
@@ -36853,18 +36949,18 @@ type GridBaseConfig = {
|
|
|
36853
36949
|
/**
|
|
36854
36950
|
* Fires after a row is rendered.
|
|
36855
36951
|
* @param {object} event Event object
|
|
36856
|
-
* @param {Grid.view.
|
|
36857
|
-
* @param {Grid.row.Row} event.row The row that has been rendered
|
|
36858
|
-
* @param {Core.data.Model} event.record The record for the row
|
|
36859
|
-
* @param {number} event.recordIndex The zero-based index of the record
|
|
36952
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
36953
|
+
* @param {Grid.row.Row} event.row The row that has been rendered
|
|
36954
|
+
* @param {Core.data.Model} event.record The record for the row
|
|
36955
|
+
* @param {number} event.recordIndex The zero-based index of the record
|
|
36860
36956
|
*/
|
|
36861
|
-
onRenderRow?: ((event: { source:
|
|
36957
|
+
onRenderRow?: ((event: { source: GridBase, row: Row, record: Model, recordIndex: number }) => void)|string
|
|
36862
36958
|
/**
|
|
36863
36959
|
* Grid rows have been rendered
|
|
36864
36960
|
* @param {object} event Event object
|
|
36865
|
-
* @param {Grid.view.
|
|
36961
|
+
* @param {Grid.view.GridBase} event.source This grid.
|
|
36866
36962
|
*/
|
|
36867
|
-
onRenderRows?: ((event: { source:
|
|
36963
|
+
onRenderRows?: ((event: { source: GridBase }) => void)|string
|
|
36868
36964
|
/**
|
|
36869
36965
|
* 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`*.
|
|
36870
36966
|
* @param {object} event Event object
|
|
@@ -36924,10 +37020,10 @@ type GridBaseConfig = {
|
|
|
36924
37020
|
/**
|
|
36925
37021
|
* Grid has scrolled vertically
|
|
36926
37022
|
* @param {object} event Event object
|
|
36927
|
-
* @param {Grid.view.
|
|
37023
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance.
|
|
36928
37024
|
* @param {number} event.scrollTop The vertical scroll position.
|
|
36929
37025
|
*/
|
|
36930
|
-
onScroll?: ((event: { source:
|
|
37026
|
+
onScroll?: ((event: { source: GridBase, scrollTop: number }) => void)|string
|
|
36931
37027
|
/**
|
|
36932
37028
|
* The selection has been changed.
|
|
36933
37029
|
* @param {object} event Event object
|
|
@@ -37015,17 +37111,17 @@ type GridBaseConfig = {
|
|
|
37015
37111
|
/**
|
|
37016
37112
|
* Fires after a sub grid is collapsed.
|
|
37017
37113
|
* @param {object} event Event object
|
|
37018
|
-
* @param {Grid.view.
|
|
37114
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
37019
37115
|
* @param {Grid.view.SubGrid} event.subGrid The sub grid instance
|
|
37020
37116
|
*/
|
|
37021
|
-
onSubGridCollapse?: ((event: { source:
|
|
37117
|
+
onSubGridCollapse?: ((event: { source: GridBase, subGrid: SubGrid }) => void)|string
|
|
37022
37118
|
/**
|
|
37023
37119
|
* Fires after a sub grid is expanded.
|
|
37024
37120
|
* @param {object} event Event object
|
|
37025
|
-
* @param {Grid.view.
|
|
37121
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
37026
37122
|
* @param {Grid.view.SubGrid} event.subGrid The sub grid instance
|
|
37027
37123
|
*/
|
|
37028
|
-
onSubGridExpand?: ((event: { source:
|
|
37124
|
+
onSubGridExpand?: ((event: { source: GridBase, subGrid: SubGrid }) => void)|string
|
|
37029
37125
|
/**
|
|
37030
37126
|
* Fired when one or more groups are expanded or collapsed
|
|
37031
37127
|
* @param {object} event Event object
|
|
@@ -37447,6 +37543,14 @@ export class GridBase extends Panel {
|
|
|
37447
37543
|
* @param {any} event.value The value being set
|
|
37448
37544
|
*/
|
|
37449
37545
|
onBeforeCellRangeEdit: ((event: { record: Model, field: string, value: any }) => Promise<boolean>|boolean|void)|string
|
|
37546
|
+
/**
|
|
37547
|
+
* This event is triggered before a parent column is collapsed or expanded.
|
|
37548
|
+
* @param {object} event Event object
|
|
37549
|
+
* @param {Grid.view.GridBase} event.source The grid instance
|
|
37550
|
+
* @param {Grid.column.Column} event.column The column
|
|
37551
|
+
* @param {boolean} event.collapsed `true` if the column is being collapsed, `false` if expanded
|
|
37552
|
+
*/
|
|
37553
|
+
onBeforeColumnCollapseToggle: ((event: { source: GridBase, column: Column, collapsed: boolean }) => void)|string
|
|
37450
37554
|
/**
|
|
37451
37555
|
* This event is fired prior to starting a column drag gesture. The drag is canceled if a listener returns `false`.
|
|
37452
37556
|
* @param {object} event Event object
|
|
@@ -37541,18 +37645,18 @@ export class GridBase extends Panel {
|
|
|
37541
37645
|
/**
|
|
37542
37646
|
* Fires before a row is rendered.
|
|
37543
37647
|
* @param {object} event Event object
|
|
37544
|
-
* @param {Grid.view.
|
|
37545
|
-
* @param {Grid.row.Row} event.row The row about to be rendered
|
|
37546
|
-
* @param {Core.data.Model} event.record The record for the row
|
|
37547
|
-
* @param {number} event.recordIndex The zero-based index of the record
|
|
37648
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
37649
|
+
* @param {Grid.row.Row} event.row The row about to be rendered
|
|
37650
|
+
* @param {Core.data.Model} event.record The record for the row
|
|
37651
|
+
* @param {number} event.recordIndex The zero-based index of the record
|
|
37548
37652
|
*/
|
|
37549
|
-
onBeforeRenderRow: ((event: { source:
|
|
37653
|
+
onBeforeRenderRow: ((event: { source: GridBase, row: Row, record: Model, recordIndex: number }) => void)|string
|
|
37550
37654
|
/**
|
|
37551
37655
|
* Grid rows are about to be rendered
|
|
37552
37656
|
* @param {object} event Event object
|
|
37553
|
-
* @param {Grid.view.
|
|
37657
|
+
* @param {Grid.view.GridBase} event.source This grid.
|
|
37554
37658
|
*/
|
|
37555
|
-
onBeforeRenderRows: ((event: { source:
|
|
37659
|
+
onBeforeRenderRows: ((event: { source: GridBase }) => void)|string
|
|
37556
37660
|
/**
|
|
37557
37661
|
* This event fires before row collapse is started.
|
|
37558
37662
|
* ...
|
|
@@ -37763,6 +37867,14 @@ export class GridBase extends Panel {
|
|
|
37763
37867
|
* @param {Core.data.Model} event.record The record which has been collapsed.
|
|
37764
37868
|
*/
|
|
37765
37869
|
onCollapseNode: ((event: { source: Grid, record: Model }) => void)|string
|
|
37870
|
+
/**
|
|
37871
|
+
* This event is triggered after a parent column has been collapsed or expanded.
|
|
37872
|
+
* @param {object} event Event object
|
|
37873
|
+
* @param {Grid.view.GridBase} event.source The Grid instance
|
|
37874
|
+
* @param {Grid.column.Column} event.column The column being toggled
|
|
37875
|
+
* @param {boolean} event.collapsed `true` if the column is now collapsed, `false` if expanded
|
|
37876
|
+
*/
|
|
37877
|
+
onColumnCollapseToggle: ((event: { source: GridBase, column: Column, collapsed: boolean }) => void)|string
|
|
37766
37878
|
/**
|
|
37767
37879
|
* This event is fired when a column is being dragged, and you can set the `valid` flag on the `context` object
|
|
37768
37880
|
* to indicate whether the drop position is valid or not.
|
|
@@ -37827,14 +37939,14 @@ export class GridBase extends Panel {
|
|
|
37827
37939
|
* ...
|
|
37828
37940
|
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/GridBase#event-dataChange)
|
|
37829
37941
|
* @param {object} event Event object
|
|
37830
|
-
* @param {Grid.view.
|
|
37942
|
+
* @param {Grid.view.GridBase} event.source Owning grid
|
|
37831
37943
|
* @param {Core.data.Store} event.store The originating store
|
|
37832
37944
|
* @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'`
|
|
37833
37945
|
* @param {Core.data.Model} event.record Changed record, for actions that affects exactly one record (`'update'`)
|
|
37834
37946
|
* @param {Core.data.Model[]} event.records Changed records, passed for all actions except `'removeAll'`
|
|
37835
37947
|
* @param {object} event.changes Passed for the `'update'` action, info on which record fields changed
|
|
37836
37948
|
*/
|
|
37837
|
-
onDataChange: ((event: { source:
|
|
37949
|
+
onDataChange: ((event: { source: GridBase, store: Store, action: 'remove'|'removeAll'|'add'|'clearchanges'|'filter'|'update'|'dataset'|'replace', record: Model, records: Model[], changes: object }) => void)|string
|
|
37838
37950
|
/**
|
|
37839
37951
|
* Fires when an object is destroyed.
|
|
37840
37952
|
* @param {object} event Event object
|
|
@@ -38072,18 +38184,18 @@ export class GridBase extends Panel {
|
|
|
38072
38184
|
/**
|
|
38073
38185
|
* Fires after a row is rendered.
|
|
38074
38186
|
* @param {object} event Event object
|
|
38075
|
-
* @param {Grid.view.
|
|
38076
|
-
* @param {Grid.row.Row} event.row The row that has been rendered
|
|
38077
|
-
* @param {Core.data.Model} event.record The record for the row
|
|
38078
|
-
* @param {number} event.recordIndex The zero-based index of the record
|
|
38187
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
38188
|
+
* @param {Grid.row.Row} event.row The row that has been rendered
|
|
38189
|
+
* @param {Core.data.Model} event.record The record for the row
|
|
38190
|
+
* @param {number} event.recordIndex The zero-based index of the record
|
|
38079
38191
|
*/
|
|
38080
|
-
onRenderRow: ((event: { source:
|
|
38192
|
+
onRenderRow: ((event: { source: GridBase, row: Row, record: Model, recordIndex: number }) => void)|string
|
|
38081
38193
|
/**
|
|
38082
38194
|
* Grid rows have been rendered
|
|
38083
38195
|
* @param {object} event Event object
|
|
38084
|
-
* @param {Grid.view.
|
|
38196
|
+
* @param {Grid.view.GridBase} event.source This grid.
|
|
38085
38197
|
*/
|
|
38086
|
-
onRenderRows: ((event: { source:
|
|
38198
|
+
onRenderRows: ((event: { source: GridBase }) => void)|string
|
|
38087
38199
|
/**
|
|
38088
38200
|
* Grid resize lead to a new responsive level being applied
|
|
38089
38201
|
* @param {object} event Event object
|
|
@@ -38133,10 +38245,10 @@ export class GridBase extends Panel {
|
|
|
38133
38245
|
/**
|
|
38134
38246
|
* Grid has scrolled vertically
|
|
38135
38247
|
* @param {object} event Event object
|
|
38136
|
-
* @param {Grid.view.
|
|
38248
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance.
|
|
38137
38249
|
* @param {number} event.scrollTop The vertical scroll position.
|
|
38138
38250
|
*/
|
|
38139
|
-
onScroll: ((event: { source:
|
|
38251
|
+
onScroll: ((event: { source: GridBase, scrollTop: number }) => void)|string
|
|
38140
38252
|
/**
|
|
38141
38253
|
* The selection has been changed.
|
|
38142
38254
|
* @param {object} event Event object
|
|
@@ -38218,17 +38330,17 @@ export class GridBase extends Panel {
|
|
|
38218
38330
|
/**
|
|
38219
38331
|
* Fires after a sub grid is collapsed.
|
|
38220
38332
|
* @param {object} event Event object
|
|
38221
|
-
* @param {Grid.view.
|
|
38333
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
38222
38334
|
* @param {Grid.view.SubGrid} event.subGrid The sub grid instance
|
|
38223
38335
|
*/
|
|
38224
|
-
onSubGridCollapse: ((event: { source:
|
|
38336
|
+
onSubGridCollapse: ((event: { source: GridBase, subGrid: SubGrid }) => void)|string
|
|
38225
38337
|
/**
|
|
38226
38338
|
* Fires after a sub grid is expanded.
|
|
38227
38339
|
* @param {object} event Event object
|
|
38228
|
-
* @param {Grid.view.
|
|
38340
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
38229
38341
|
* @param {Grid.view.SubGrid} event.subGrid The sub grid instance
|
|
38230
38342
|
*/
|
|
38231
|
-
onSubGridExpand: ((event: { source:
|
|
38343
|
+
onSubGridExpand: ((event: { source: GridBase, subGrid: SubGrid }) => void)|string
|
|
38232
38344
|
/**
|
|
38233
38345
|
* Fired when one or more groups are expanded or collapsed
|
|
38234
38346
|
* @param {object} event Event object
|
|
@@ -39750,6 +39862,14 @@ type TreeGridListenersTypes = {
|
|
|
39750
39862
|
* @param {any} event.value The value being set
|
|
39751
39863
|
*/
|
|
39752
39864
|
beforeCellRangeEdit: (event: { record: Model, field: string, value: any }) => Promise<boolean>|boolean|void
|
|
39865
|
+
/**
|
|
39866
|
+
* This event is triggered before a parent column is collapsed or expanded.
|
|
39867
|
+
* @param {object} event Event object
|
|
39868
|
+
* @param {Grid.view.GridBase} event.source The grid instance
|
|
39869
|
+
* @param {Grid.column.Column} event.column The column
|
|
39870
|
+
* @param {boolean} event.collapsed `true` if the column is being collapsed, `false` if expanded
|
|
39871
|
+
*/
|
|
39872
|
+
beforeColumnCollapseToggle: (event: { source: GridBase, column: Column, collapsed: boolean }) => void
|
|
39753
39873
|
/**
|
|
39754
39874
|
* This event is fired prior to starting a column drag gesture. The drag is canceled if a listener returns `false`.
|
|
39755
39875
|
* @param {object} event Event object
|
|
@@ -39850,18 +39970,18 @@ type TreeGridListenersTypes = {
|
|
|
39850
39970
|
/**
|
|
39851
39971
|
* Fires before a row is rendered.
|
|
39852
39972
|
* @param {object} event Event object
|
|
39853
|
-
* @param {Grid.view.
|
|
39854
|
-
* @param {Grid.row.Row} event.row The row about to be rendered
|
|
39855
|
-
* @param {Core.data.Model} event.record The record for the row
|
|
39856
|
-
* @param {number} event.recordIndex The zero-based index of the record
|
|
39973
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
39974
|
+
* @param {Grid.row.Row} event.row The row about to be rendered
|
|
39975
|
+
* @param {Core.data.Model} event.record The record for the row
|
|
39976
|
+
* @param {number} event.recordIndex The zero-based index of the record
|
|
39857
39977
|
*/
|
|
39858
|
-
beforeRenderRow: (event: { source:
|
|
39978
|
+
beforeRenderRow: (event: { source: GridBase, row: Row, record: Model, recordIndex: number }) => void
|
|
39859
39979
|
/**
|
|
39860
39980
|
* Grid rows are about to be rendered
|
|
39861
39981
|
* @param {object} event Event object
|
|
39862
|
-
* @param {Grid.view.
|
|
39982
|
+
* @param {Grid.view.GridBase} event.source This grid.
|
|
39863
39983
|
*/
|
|
39864
|
-
beforeRenderRows: (event: { source:
|
|
39984
|
+
beforeRenderRows: (event: { source: GridBase }) => void
|
|
39865
39985
|
/**
|
|
39866
39986
|
* This event fires before row collapse is started.
|
|
39867
39987
|
* ...
|
|
@@ -40092,6 +40212,14 @@ type TreeGridListenersTypes = {
|
|
|
40092
40212
|
* @param {Core.data.Model} event.record The record which has been collapsed.
|
|
40093
40213
|
*/
|
|
40094
40214
|
collapseNode: (event: { source: Grid, record: Model }) => void
|
|
40215
|
+
/**
|
|
40216
|
+
* This event is triggered after a parent column has been collapsed or expanded.
|
|
40217
|
+
* @param {object} event Event object
|
|
40218
|
+
* @param {Grid.view.GridBase} event.source The Grid instance
|
|
40219
|
+
* @param {Grid.column.Column} event.column The column being toggled
|
|
40220
|
+
* @param {boolean} event.collapsed `true` if the column is now collapsed, `false` if expanded
|
|
40221
|
+
*/
|
|
40222
|
+
columnCollapseToggle: (event: { source: GridBase, column: Column, collapsed: boolean }) => void
|
|
40095
40223
|
/**
|
|
40096
40224
|
* This event is fired when a column is being dragged, and you can set the `valid` flag on the `context` object
|
|
40097
40225
|
* to indicate whether the drop position is valid or not.
|
|
@@ -40173,14 +40301,14 @@ type TreeGridListenersTypes = {
|
|
|
40173
40301
|
* ...
|
|
40174
40302
|
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/TreeGrid#event-dataChange)
|
|
40175
40303
|
* @param {object} event Event object
|
|
40176
|
-
* @param {Grid.view.
|
|
40304
|
+
* @param {Grid.view.GridBase} event.source Owning grid
|
|
40177
40305
|
* @param {Core.data.Store} event.store The originating store
|
|
40178
40306
|
* @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'`
|
|
40179
40307
|
* @param {Core.data.Model} event.record Changed record, for actions that affects exactly one record (`'update'`)
|
|
40180
40308
|
* @param {Core.data.Model[]} event.records Changed records, passed for all actions except `'removeAll'`
|
|
40181
40309
|
* @param {object} event.changes Passed for the `'update'` action, info on which record fields changed
|
|
40182
40310
|
*/
|
|
40183
|
-
dataChange: (event: { source:
|
|
40311
|
+
dataChange: (event: { source: GridBase, store: Store, action: 'remove'|'removeAll'|'add'|'clearchanges'|'filter'|'update'|'dataset'|'replace', record: Model, records: Model[], changes: object }) => void
|
|
40184
40312
|
/**
|
|
40185
40313
|
* Fires when an object is destroyed.
|
|
40186
40314
|
* @param {object} event Event object
|
|
@@ -40488,18 +40616,18 @@ type TreeGridListenersTypes = {
|
|
|
40488
40616
|
/**
|
|
40489
40617
|
* Fires after a row is rendered.
|
|
40490
40618
|
* @param {object} event Event object
|
|
40491
|
-
* @param {Grid.view.
|
|
40492
|
-
* @param {Grid.row.Row} event.row The row that has been rendered
|
|
40493
|
-
* @param {Core.data.Model} event.record The record for the row
|
|
40494
|
-
* @param {number} event.recordIndex The zero-based index of the record
|
|
40619
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
40620
|
+
* @param {Grid.row.Row} event.row The row that has been rendered
|
|
40621
|
+
* @param {Core.data.Model} event.record The record for the row
|
|
40622
|
+
* @param {number} event.recordIndex The zero-based index of the record
|
|
40495
40623
|
*/
|
|
40496
|
-
renderRow: (event: { source:
|
|
40624
|
+
renderRow: (event: { source: GridBase, row: Row, record: Model, recordIndex: number }) => void
|
|
40497
40625
|
/**
|
|
40498
40626
|
* Grid rows have been rendered
|
|
40499
40627
|
* @param {object} event Event object
|
|
40500
|
-
* @param {Grid.view.
|
|
40628
|
+
* @param {Grid.view.GridBase} event.source This grid.
|
|
40501
40629
|
*/
|
|
40502
|
-
renderRows: (event: { source:
|
|
40630
|
+
renderRows: (event: { source: GridBase }) => void
|
|
40503
40631
|
/**
|
|
40504
40632
|
* 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`*.
|
|
40505
40633
|
* @param {object} event Event object
|
|
@@ -40559,10 +40687,10 @@ type TreeGridListenersTypes = {
|
|
|
40559
40687
|
/**
|
|
40560
40688
|
* Grid has scrolled vertically
|
|
40561
40689
|
* @param {object} event Event object
|
|
40562
|
-
* @param {Grid.view.
|
|
40690
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance.
|
|
40563
40691
|
* @param {number} event.scrollTop The vertical scroll position.
|
|
40564
40692
|
*/
|
|
40565
|
-
scroll: (event: { source:
|
|
40693
|
+
scroll: (event: { source: GridBase, scrollTop: number }) => void
|
|
40566
40694
|
/**
|
|
40567
40695
|
* The selection has been changed.
|
|
40568
40696
|
* @param {object} event Event object
|
|
@@ -40650,17 +40778,17 @@ type TreeGridListenersTypes = {
|
|
|
40650
40778
|
/**
|
|
40651
40779
|
* Fires after a sub grid is collapsed.
|
|
40652
40780
|
* @param {object} event Event object
|
|
40653
|
-
* @param {Grid.view.
|
|
40781
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
40654
40782
|
* @param {Grid.view.SubGrid} event.subGrid The sub grid instance
|
|
40655
40783
|
*/
|
|
40656
|
-
subGridCollapse: (event: { source:
|
|
40784
|
+
subGridCollapse: (event: { source: GridBase, subGrid: SubGrid }) => void
|
|
40657
40785
|
/**
|
|
40658
40786
|
* Fires after a sub grid is expanded.
|
|
40659
40787
|
* @param {object} event Event object
|
|
40660
|
-
* @param {Grid.view.
|
|
40788
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
40661
40789
|
* @param {Grid.view.SubGrid} event.subGrid The sub grid instance
|
|
40662
40790
|
*/
|
|
40663
|
-
subGridExpand: (event: { source:
|
|
40791
|
+
subGridExpand: (event: { source: GridBase, subGrid: SubGrid }) => void
|
|
40664
40792
|
/**
|
|
40665
40793
|
* Fired when one or more groups are expanded or collapsed
|
|
40666
40794
|
* @param {object} event Event object
|
|
@@ -40753,6 +40881,14 @@ type TreeGridListeners = {
|
|
|
40753
40881
|
* @param {any} event.value The value being set
|
|
40754
40882
|
*/
|
|
40755
40883
|
beforeCellRangeEdit?: ((event: { record: Model, field: string, value: any }) => Promise<boolean>|boolean|void)|string
|
|
40884
|
+
/**
|
|
40885
|
+
* This event is triggered before a parent column is collapsed or expanded.
|
|
40886
|
+
* @param {object} event Event object
|
|
40887
|
+
* @param {Grid.view.GridBase} event.source The grid instance
|
|
40888
|
+
* @param {Grid.column.Column} event.column The column
|
|
40889
|
+
* @param {boolean} event.collapsed `true` if the column is being collapsed, `false` if expanded
|
|
40890
|
+
*/
|
|
40891
|
+
beforeColumnCollapseToggle?: ((event: { source: GridBase, column: Column, collapsed: boolean }) => void)|string
|
|
40756
40892
|
/**
|
|
40757
40893
|
* This event is fired prior to starting a column drag gesture. The drag is canceled if a listener returns `false`.
|
|
40758
40894
|
* @param {object} event Event object
|
|
@@ -40853,18 +40989,18 @@ type TreeGridListeners = {
|
|
|
40853
40989
|
/**
|
|
40854
40990
|
* Fires before a row is rendered.
|
|
40855
40991
|
* @param {object} event Event object
|
|
40856
|
-
* @param {Grid.view.
|
|
40857
|
-
* @param {Grid.row.Row} event.row The row about to be rendered
|
|
40858
|
-
* @param {Core.data.Model} event.record The record for the row
|
|
40859
|
-
* @param {number} event.recordIndex The zero-based index of the record
|
|
40992
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
40993
|
+
* @param {Grid.row.Row} event.row The row about to be rendered
|
|
40994
|
+
* @param {Core.data.Model} event.record The record for the row
|
|
40995
|
+
* @param {number} event.recordIndex The zero-based index of the record
|
|
40860
40996
|
*/
|
|
40861
|
-
beforeRenderRow?: ((event: { source:
|
|
40997
|
+
beforeRenderRow?: ((event: { source: GridBase, row: Row, record: Model, recordIndex: number }) => void)|string
|
|
40862
40998
|
/**
|
|
40863
40999
|
* Grid rows are about to be rendered
|
|
40864
41000
|
* @param {object} event Event object
|
|
40865
|
-
* @param {Grid.view.
|
|
41001
|
+
* @param {Grid.view.GridBase} event.source This grid.
|
|
40866
41002
|
*/
|
|
40867
|
-
beforeRenderRows?: ((event: { source:
|
|
41003
|
+
beforeRenderRows?: ((event: { source: GridBase }) => void)|string
|
|
40868
41004
|
/**
|
|
40869
41005
|
* This event fires before row collapse is started.
|
|
40870
41006
|
* ...
|
|
@@ -41095,6 +41231,14 @@ type TreeGridListeners = {
|
|
|
41095
41231
|
* @param {Core.data.Model} event.record The record which has been collapsed.
|
|
41096
41232
|
*/
|
|
41097
41233
|
collapseNode?: ((event: { source: Grid, record: Model }) => void)|string
|
|
41234
|
+
/**
|
|
41235
|
+
* This event is triggered after a parent column has been collapsed or expanded.
|
|
41236
|
+
* @param {object} event Event object
|
|
41237
|
+
* @param {Grid.view.GridBase} event.source The Grid instance
|
|
41238
|
+
* @param {Grid.column.Column} event.column The column being toggled
|
|
41239
|
+
* @param {boolean} event.collapsed `true` if the column is now collapsed, `false` if expanded
|
|
41240
|
+
*/
|
|
41241
|
+
columnCollapseToggle?: ((event: { source: GridBase, column: Column, collapsed: boolean }) => void)|string
|
|
41098
41242
|
/**
|
|
41099
41243
|
* This event is fired when a column is being dragged, and you can set the `valid` flag on the `context` object
|
|
41100
41244
|
* to indicate whether the drop position is valid or not.
|
|
@@ -41176,14 +41320,14 @@ type TreeGridListeners = {
|
|
|
41176
41320
|
* ...
|
|
41177
41321
|
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/TreeGrid#event-dataChange)
|
|
41178
41322
|
* @param {object} event Event object
|
|
41179
|
-
* @param {Grid.view.
|
|
41323
|
+
* @param {Grid.view.GridBase} event.source Owning grid
|
|
41180
41324
|
* @param {Core.data.Store} event.store The originating store
|
|
41181
41325
|
* @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'`
|
|
41182
41326
|
* @param {Core.data.Model} event.record Changed record, for actions that affects exactly one record (`'update'`)
|
|
41183
41327
|
* @param {Core.data.Model[]} event.records Changed records, passed for all actions except `'removeAll'`
|
|
41184
41328
|
* @param {object} event.changes Passed for the `'update'` action, info on which record fields changed
|
|
41185
41329
|
*/
|
|
41186
|
-
dataChange?: ((event: { source:
|
|
41330
|
+
dataChange?: ((event: { source: GridBase, store: Store, action: 'remove'|'removeAll'|'add'|'clearchanges'|'filter'|'update'|'dataset'|'replace', record: Model, records: Model[], changes: object }) => void)|string
|
|
41187
41331
|
/**
|
|
41188
41332
|
* Fires when an object is destroyed.
|
|
41189
41333
|
* @param {object} event Event object
|
|
@@ -41491,18 +41635,18 @@ type TreeGridListeners = {
|
|
|
41491
41635
|
/**
|
|
41492
41636
|
* Fires after a row is rendered.
|
|
41493
41637
|
* @param {object} event Event object
|
|
41494
|
-
* @param {Grid.view.
|
|
41495
|
-
* @param {Grid.row.Row} event.row The row that has been rendered
|
|
41496
|
-
* @param {Core.data.Model} event.record The record for the row
|
|
41497
|
-
* @param {number} event.recordIndex The zero-based index of the record
|
|
41638
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
41639
|
+
* @param {Grid.row.Row} event.row The row that has been rendered
|
|
41640
|
+
* @param {Core.data.Model} event.record The record for the row
|
|
41641
|
+
* @param {number} event.recordIndex The zero-based index of the record
|
|
41498
41642
|
*/
|
|
41499
|
-
renderRow?: ((event: { source:
|
|
41643
|
+
renderRow?: ((event: { source: GridBase, row: Row, record: Model, recordIndex: number }) => void)|string
|
|
41500
41644
|
/**
|
|
41501
41645
|
* Grid rows have been rendered
|
|
41502
41646
|
* @param {object} event Event object
|
|
41503
|
-
* @param {Grid.view.
|
|
41647
|
+
* @param {Grid.view.GridBase} event.source This grid.
|
|
41504
41648
|
*/
|
|
41505
|
-
renderRows?: ((event: { source:
|
|
41649
|
+
renderRows?: ((event: { source: GridBase }) => void)|string
|
|
41506
41650
|
/**
|
|
41507
41651
|
* 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`*.
|
|
41508
41652
|
* @param {object} event Event object
|
|
@@ -41562,10 +41706,10 @@ type TreeGridListeners = {
|
|
|
41562
41706
|
/**
|
|
41563
41707
|
* Grid has scrolled vertically
|
|
41564
41708
|
* @param {object} event Event object
|
|
41565
|
-
* @param {Grid.view.
|
|
41709
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance.
|
|
41566
41710
|
* @param {number} event.scrollTop The vertical scroll position.
|
|
41567
41711
|
*/
|
|
41568
|
-
scroll?: ((event: { source:
|
|
41712
|
+
scroll?: ((event: { source: GridBase, scrollTop: number }) => void)|string
|
|
41569
41713
|
/**
|
|
41570
41714
|
* The selection has been changed.
|
|
41571
41715
|
* @param {object} event Event object
|
|
@@ -41653,17 +41797,17 @@ type TreeGridListeners = {
|
|
|
41653
41797
|
/**
|
|
41654
41798
|
* Fires after a sub grid is collapsed.
|
|
41655
41799
|
* @param {object} event Event object
|
|
41656
|
-
* @param {Grid.view.
|
|
41800
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
41657
41801
|
* @param {Grid.view.SubGrid} event.subGrid The sub grid instance
|
|
41658
41802
|
*/
|
|
41659
|
-
subGridCollapse?: ((event: { source:
|
|
41803
|
+
subGridCollapse?: ((event: { source: GridBase, subGrid: SubGrid }) => void)|string
|
|
41660
41804
|
/**
|
|
41661
41805
|
* Fires after a sub grid is expanded.
|
|
41662
41806
|
* @param {object} event Event object
|
|
41663
|
-
* @param {Grid.view.
|
|
41807
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
41664
41808
|
* @param {Grid.view.SubGrid} event.subGrid The sub grid instance
|
|
41665
41809
|
*/
|
|
41666
|
-
subGridExpand?: ((event: { source:
|
|
41810
|
+
subGridExpand?: ((event: { source: GridBase, subGrid: SubGrid }) => void)|string
|
|
41667
41811
|
/**
|
|
41668
41812
|
* Fired when one or more groups are expanded or collapsed
|
|
41669
41813
|
* @param {object} event Event object
|
|
@@ -42591,6 +42735,14 @@ type TreeGridConfig = {
|
|
|
42591
42735
|
* @param {any} event.value The value being set
|
|
42592
42736
|
*/
|
|
42593
42737
|
onBeforeCellRangeEdit?: ((event: { record: Model, field: string, value: any }) => Promise<boolean>|boolean|void)|string
|
|
42738
|
+
/**
|
|
42739
|
+
* This event is triggered before a parent column is collapsed or expanded.
|
|
42740
|
+
* @param {object} event Event object
|
|
42741
|
+
* @param {Grid.view.GridBase} event.source The grid instance
|
|
42742
|
+
* @param {Grid.column.Column} event.column The column
|
|
42743
|
+
* @param {boolean} event.collapsed `true` if the column is being collapsed, `false` if expanded
|
|
42744
|
+
*/
|
|
42745
|
+
onBeforeColumnCollapseToggle?: ((event: { source: GridBase, column: Column, collapsed: boolean }) => void)|string
|
|
42594
42746
|
/**
|
|
42595
42747
|
* This event is fired prior to starting a column drag gesture. The drag is canceled if a listener returns `false`.
|
|
42596
42748
|
* @param {object} event Event object
|
|
@@ -42691,18 +42843,18 @@ type TreeGridConfig = {
|
|
|
42691
42843
|
/**
|
|
42692
42844
|
* Fires before a row is rendered.
|
|
42693
42845
|
* @param {object} event Event object
|
|
42694
|
-
* @param {Grid.view.
|
|
42695
|
-
* @param {Grid.row.Row} event.row The row about to be rendered
|
|
42696
|
-
* @param {Core.data.Model} event.record The record for the row
|
|
42697
|
-
* @param {number} event.recordIndex The zero-based index of the record
|
|
42846
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
42847
|
+
* @param {Grid.row.Row} event.row The row about to be rendered
|
|
42848
|
+
* @param {Core.data.Model} event.record The record for the row
|
|
42849
|
+
* @param {number} event.recordIndex The zero-based index of the record
|
|
42698
42850
|
*/
|
|
42699
|
-
onBeforeRenderRow?: ((event: { source:
|
|
42851
|
+
onBeforeRenderRow?: ((event: { source: GridBase, row: Row, record: Model, recordIndex: number }) => void)|string
|
|
42700
42852
|
/**
|
|
42701
42853
|
* Grid rows are about to be rendered
|
|
42702
42854
|
* @param {object} event Event object
|
|
42703
|
-
* @param {Grid.view.
|
|
42855
|
+
* @param {Grid.view.GridBase} event.source This grid.
|
|
42704
42856
|
*/
|
|
42705
|
-
onBeforeRenderRows?: ((event: { source:
|
|
42857
|
+
onBeforeRenderRows?: ((event: { source: GridBase }) => void)|string
|
|
42706
42858
|
/**
|
|
42707
42859
|
* This event fires before row collapse is started.
|
|
42708
42860
|
* ...
|
|
@@ -42933,6 +43085,14 @@ type TreeGridConfig = {
|
|
|
42933
43085
|
* @param {Core.data.Model} event.record The record which has been collapsed.
|
|
42934
43086
|
*/
|
|
42935
43087
|
onCollapseNode?: ((event: { source: Grid, record: Model }) => void)|string
|
|
43088
|
+
/**
|
|
43089
|
+
* This event is triggered after a parent column has been collapsed or expanded.
|
|
43090
|
+
* @param {object} event Event object
|
|
43091
|
+
* @param {Grid.view.GridBase} event.source The Grid instance
|
|
43092
|
+
* @param {Grid.column.Column} event.column The column being toggled
|
|
43093
|
+
* @param {boolean} event.collapsed `true` if the column is now collapsed, `false` if expanded
|
|
43094
|
+
*/
|
|
43095
|
+
onColumnCollapseToggle?: ((event: { source: GridBase, column: Column, collapsed: boolean }) => void)|string
|
|
42936
43096
|
/**
|
|
42937
43097
|
* This event is fired when a column is being dragged, and you can set the `valid` flag on the `context` object
|
|
42938
43098
|
* to indicate whether the drop position is valid or not.
|
|
@@ -43014,14 +43174,14 @@ type TreeGridConfig = {
|
|
|
43014
43174
|
* ...
|
|
43015
43175
|
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/TreeGrid#event-dataChange)
|
|
43016
43176
|
* @param {object} event Event object
|
|
43017
|
-
* @param {Grid.view.
|
|
43177
|
+
* @param {Grid.view.GridBase} event.source Owning grid
|
|
43018
43178
|
* @param {Core.data.Store} event.store The originating store
|
|
43019
43179
|
* @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'`
|
|
43020
43180
|
* @param {Core.data.Model} event.record Changed record, for actions that affects exactly one record (`'update'`)
|
|
43021
43181
|
* @param {Core.data.Model[]} event.records Changed records, passed for all actions except `'removeAll'`
|
|
43022
43182
|
* @param {object} event.changes Passed for the `'update'` action, info on which record fields changed
|
|
43023
43183
|
*/
|
|
43024
|
-
onDataChange?: ((event: { source:
|
|
43184
|
+
onDataChange?: ((event: { source: GridBase, store: Store, action: 'remove'|'removeAll'|'add'|'clearchanges'|'filter'|'update'|'dataset'|'replace', record: Model, records: Model[], changes: object }) => void)|string
|
|
43025
43185
|
/**
|
|
43026
43186
|
* Fires when an object is destroyed.
|
|
43027
43187
|
* @param {object} event Event object
|
|
@@ -43329,18 +43489,18 @@ type TreeGridConfig = {
|
|
|
43329
43489
|
/**
|
|
43330
43490
|
* Fires after a row is rendered.
|
|
43331
43491
|
* @param {object} event Event object
|
|
43332
|
-
* @param {Grid.view.
|
|
43333
|
-
* @param {Grid.row.Row} event.row The row that has been rendered
|
|
43334
|
-
* @param {Core.data.Model} event.record The record for the row
|
|
43335
|
-
* @param {number} event.recordIndex The zero-based index of the record
|
|
43492
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
43493
|
+
* @param {Grid.row.Row} event.row The row that has been rendered
|
|
43494
|
+
* @param {Core.data.Model} event.record The record for the row
|
|
43495
|
+
* @param {number} event.recordIndex The zero-based index of the record
|
|
43336
43496
|
*/
|
|
43337
|
-
onRenderRow?: ((event: { source:
|
|
43497
|
+
onRenderRow?: ((event: { source: GridBase, row: Row, record: Model, recordIndex: number }) => void)|string
|
|
43338
43498
|
/**
|
|
43339
43499
|
* Grid rows have been rendered
|
|
43340
43500
|
* @param {object} event Event object
|
|
43341
|
-
* @param {Grid.view.
|
|
43501
|
+
* @param {Grid.view.GridBase} event.source This grid.
|
|
43342
43502
|
*/
|
|
43343
|
-
onRenderRows?: ((event: { source:
|
|
43503
|
+
onRenderRows?: ((event: { source: GridBase }) => void)|string
|
|
43344
43504
|
/**
|
|
43345
43505
|
* 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`*.
|
|
43346
43506
|
* @param {object} event Event object
|
|
@@ -43400,10 +43560,10 @@ type TreeGridConfig = {
|
|
|
43400
43560
|
/**
|
|
43401
43561
|
* Grid has scrolled vertically
|
|
43402
43562
|
* @param {object} event Event object
|
|
43403
|
-
* @param {Grid.view.
|
|
43563
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance.
|
|
43404
43564
|
* @param {number} event.scrollTop The vertical scroll position.
|
|
43405
43565
|
*/
|
|
43406
|
-
onScroll?: ((event: { source:
|
|
43566
|
+
onScroll?: ((event: { source: GridBase, scrollTop: number }) => void)|string
|
|
43407
43567
|
/**
|
|
43408
43568
|
* The selection has been changed.
|
|
43409
43569
|
* @param {object} event Event object
|
|
@@ -43491,17 +43651,17 @@ type TreeGridConfig = {
|
|
|
43491
43651
|
/**
|
|
43492
43652
|
* Fires after a sub grid is collapsed.
|
|
43493
43653
|
* @param {object} event Event object
|
|
43494
|
-
* @param {Grid.view.
|
|
43654
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
43495
43655
|
* @param {Grid.view.SubGrid} event.subGrid The sub grid instance
|
|
43496
43656
|
*/
|
|
43497
|
-
onSubGridCollapse?: ((event: { source:
|
|
43657
|
+
onSubGridCollapse?: ((event: { source: GridBase, subGrid: SubGrid }) => void)|string
|
|
43498
43658
|
/**
|
|
43499
43659
|
* Fires after a sub grid is expanded.
|
|
43500
43660
|
* @param {object} event Event object
|
|
43501
|
-
* @param {Grid.view.
|
|
43661
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
43502
43662
|
* @param {Grid.view.SubGrid} event.subGrid The sub grid instance
|
|
43503
43663
|
*/
|
|
43504
|
-
onSubGridExpand?: ((event: { source:
|
|
43664
|
+
onSubGridExpand?: ((event: { source: GridBase, subGrid: SubGrid }) => void)|string
|
|
43505
43665
|
/**
|
|
43506
43666
|
* Fired when one or more groups are expanded or collapsed
|
|
43507
43667
|
* @param {object} event Event object
|