@bryntum/grid-angular 7.1.1 → 7.1.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.
Files changed (74) hide show
  1. package/README.md +209 -15
  2. package/bundles/bryntum-grid-angular.umd.js +3 -3
  3. package/bundles/bryntum-grid-angular.umd.js.map +1 -1
  4. package/esm2015/lib/bryntum-grid-base.component.js +2 -2
  5. package/esm2015/lib/bryntum-grid.component.js +2 -2
  6. package/esm2015/lib/bryntum-tree-grid.component.js +2 -2
  7. package/fesm2015/bryntum-grid-angular.js +3 -3
  8. package/fesm2015/bryntum-grid-angular.js.map +1 -1
  9. package/lib/bryntum-grid-base.component.d.ts +1 -1
  10. package/lib/bryntum-grid.component.d.ts +1 -1
  11. package/lib/bryntum-tree-grid.component.d.ts +1 -1
  12. package/package.json +1 -1
  13. package/src/lib/bryntum-a-i-filter-field.component.ts +1336 -0
  14. package/src/lib/bryntum-button-group.component.ts +1213 -0
  15. package/src/lib/bryntum-button.component.ts +1190 -0
  16. package/src/lib/bryntum-chat-panel.component.ts +1435 -0
  17. package/src/lib/bryntum-checkbox-group.component.ts +1478 -0
  18. package/src/lib/bryntum-checkbox.component.ts +1333 -0
  19. package/src/lib/bryntum-checklist-filter-combo.component.ts +1650 -0
  20. package/src/lib/bryntum-chip-view.component.ts +1225 -0
  21. package/src/lib/bryntum-code-editor.component.ts +1419 -0
  22. package/src/lib/bryntum-color-field.component.ts +1334 -0
  23. package/src/lib/bryntum-combo.component.ts +1634 -0
  24. package/src/lib/bryntum-container.component.ts +1166 -0
  25. package/src/lib/bryntum-date-field.component.ts +1413 -0
  26. package/src/lib/bryntum-date-picker.component.ts +1756 -0
  27. package/src/lib/bryntum-date-range-field.component.ts +1417 -0
  28. package/src/lib/bryntum-date-time-field.component.ts +1261 -0
  29. package/src/lib/bryntum-demo-code-editor.component.ts +1441 -0
  30. package/src/lib/bryntum-demo-header.component.ts +141 -0
  31. package/src/lib/bryntum-display-field.component.ts +1308 -0
  32. package/src/lib/bryntum-duration-field.component.ts +1390 -0
  33. package/src/lib/bryntum-editor.component.ts +1343 -0
  34. package/src/lib/bryntum-field-filter-picker-group.component.ts +1308 -0
  35. package/src/lib/bryntum-field-filter-picker.component.ts +1272 -0
  36. package/src/lib/bryntum-field-set.component.ts +1408 -0
  37. package/src/lib/bryntum-file-field.component.ts +1313 -0
  38. package/src/lib/bryntum-file-picker.component.ts +1199 -0
  39. package/src/lib/bryntum-filter-field.component.ts +1367 -0
  40. package/src/lib/bryntum-fullscreen-button.component.ts +53 -0
  41. package/src/lib/bryntum-grid-base.component.ts +2796 -0
  42. package/src/lib/bryntum-grid-chart-designer.component.ts +999 -0
  43. package/src/lib/bryntum-grid-field-filter-picker-group.component.ts +1300 -0
  44. package/src/lib/bryntum-grid-field-filter-picker.component.ts +1287 -0
  45. package/src/lib/bryntum-grid.component.ts +2800 -0
  46. package/src/lib/bryntum-group-bar.component.ts +1225 -0
  47. package/src/lib/bryntum-hint.component.ts +1506 -0
  48. package/src/lib/bryntum-label.component.ts +989 -0
  49. package/src/lib/bryntum-list.component.ts +1196 -0
  50. package/src/lib/bryntum-menu.component.ts +1520 -0
  51. package/src/lib/bryntum-month-picker.component.ts +1400 -0
  52. package/src/lib/bryntum-number-field.component.ts +1368 -0
  53. package/src/lib/bryntum-paging-toolbar.component.ts +1243 -0
  54. package/src/lib/bryntum-panel.component.ts +1377 -0
  55. package/src/lib/bryntum-password-field.component.ts +1296 -0
  56. package/src/lib/bryntum-radio-group.component.ts +1446 -0
  57. package/src/lib/bryntum-radio.component.ts +1333 -0
  58. package/src/lib/bryntum-slide-toggle.component.ts +1333 -0
  59. package/src/lib/bryntum-slider.component.ts +1112 -0
  60. package/src/lib/bryntum-splitter.component.ts +1025 -0
  61. package/src/lib/bryntum-tab-panel.component.ts +1441 -0
  62. package/src/lib/bryntum-text-area-field.component.ts +1312 -0
  63. package/src/lib/bryntum-text-area-picker-field.component.ts +1343 -0
  64. package/src/lib/bryntum-text-field.component.ts +1321 -0
  65. package/src/lib/bryntum-time-field.component.ts +1388 -0
  66. package/src/lib/bryntum-time-picker.component.ts +1207 -0
  67. package/src/lib/bryntum-toolbar.component.ts +1234 -0
  68. package/src/lib/bryntum-tree-combo.component.ts +1634 -0
  69. package/src/lib/bryntum-tree-grid.component.ts +2800 -0
  70. package/src/lib/bryntum-widget.component.ts +982 -0
  71. package/src/lib/bryntum-year-picker.component.ts +1423 -0
  72. package/src/lib/grid.module.ts +196 -0
  73. package/src/lib/wrapper.helper.ts +89 -0
  74. package/src/public-api.ts +65 -0
@@ -0,0 +1,2800 @@
1
+ /* eslint-disable @typescript-eslint/no-unused-vars */
2
+ /**
3
+ * Angular wrapper for Bryntum Grid
4
+ */
5
+
6
+ import { Component, ElementRef, EventEmitter, Output, Input, SimpleChange, SimpleChanges, OnDestroy, OnInit } from '@angular/core';
7
+
8
+ import WrapperHelper from './wrapper.helper';
9
+
10
+ import { AIFilter, AIFilterConfig, AjaxStore, AjaxStoreConfig, Base, CellCopyPaste, CellCopyPasteConfig, CellEdit, CellEditConfig, CellEditorContext, CellMenu, CellMenuConfig, CellTooltip, CellTooltipConfig, Charts, ChartsConfig, Column, ColumnAutoWidth, ColumnAutoWidthConfig, ColumnDragToolbar, ColumnDragToolbarConfig, ColumnPicker, ColumnPickerConfig, ColumnRename, ColumnRenameConfig, ColumnReorder, ColumnReorderConfig, ColumnResize, ColumnResizeConfig, ColumnStore, ColumnStoreConfig, Container, ContainerItemConfig, DomConfig, EmptyTextDomConfig, ExcelExporter, ExcelExporterConfig, ExportConfig, FileDrop, FileDropConfig, FillHandle, FillHandleConfig, Filter, FilterBar, FilterBarConfig, FilterConfig, FormulaProviderConfig, Grid, GridBase, GridColumnConfig, GridListeners, GridLocation, GridLocationConfig, GridSelectionMode, GridStateInfo, Group, GroupConfig, GroupSummary, GroupSummaryConfig, HeaderMenu, HeaderMenuConfig, KeyMapConfig, LockRows, LockRowsConfig, Mask, MaskConfig, Menu, MenuItem, MenuItemEntry, MergeCells, MergeCellsConfig, Model, ModelConfig, PagingToolbarConfig, Panel, PanelCollapserConfig, PanelCollapserOverlayConfig, PanelHeader, PdfExport, PdfExportConfig, PinColumns, PinColumnsConfig, PreserveScrollOptions, Print, PrintConfig, QuickFind, QuickFindConfig, RecordPositionContext, RegionResize, RegionResizeConfig, ResponsiveLevelConfig, Row, RowCopyPaste, RowCopyPasteConfig, RowEdit, RowEditConfig, RowEditorContext, RowExpander, RowExpanderConfig, RowReorder, RowReorderConfig, RowResize, RowResizeConfig, ScrollManager, ScrollManagerConfig, Scroller, ScrollerConfig, Search, SearchConfig, Sort, SortConfig, Split, SplitConfig, StateProvider, StickyCells, StickyCellsConfig, Store, StoreConfig, Stripe, StripeConfig, SubGrid, SubGridConfig, Summary, SummaryConfig, TabConfig, Tool, ToolConfig, ToolbarConfig, ToolbarItems, TooltipConfig, Tree, TreeConfig, TreeGroup, TreeGroupConfig, Widget, XLSColumn } from '@bryntum/grid';
11
+
12
+ import { StringHelper } from '@bryntum/grid';
13
+
14
+ export type BryntumGridProps = {
15
+ // Configs
16
+ /**
17
+ * Element (or element id) to adopt as this Widget's encapsulating element. The widget's
18
+ * content will be placed inside this element.
19
+ * ...
20
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-adopt)
21
+ */
22
+ adopt ? : HTMLElement|string
23
+ /**
24
+ * When this widget is a child of a [Container](https://bryntum.com/products/grid/docs/api/Core/widget/Container), it will by default be participating in a
25
+ * flexbox layout. This config allows you to set this widget's
26
+ * [align-self](https://developer.mozilla.org/en-US/docs/Web/CSS/align-self) style.
27
+ */
28
+ alignSelf ? : string
29
+ /**
30
+ * Set to `true` to animate row removals caused by filtering.
31
+ * @deprecated 7.0.0 Deprecated `animateFilterRemovals`. Use `transition.filterRemoval` instead
32
+ */
33
+ animateFilterRemovals ? : boolean
34
+ /**
35
+ * Controls if removing and inserting rows should be animated. Set to `false` to prevent those animations,
36
+ * removing the related delays.
37
+ * @deprecated 7.0.0 Deprecated `animateRemovingRows`. Use `transition.removeRecord` instead
38
+ */
39
+ animateRemovingRows ? : boolean
40
+ /**
41
+ * When the [Tree](https://bryntum.com/products/grid/docs/api/Grid/feature/Tree) feature is in use and the Store is a tree store, this
42
+ * config may be set to `true` to visually animate branch node expand and collapse operations.
43
+ * *This is not supported in Scheduler and Gantt*
44
+ * @deprecated 7.0.0 Deprecated `animateTreeNodeToggle`. Use `transition.toggleTreeNode` instead
45
+ */
46
+ animateTreeNodeToggle ? : boolean
47
+ /**
48
+ * Element (or the id of an element) to append this widget's element to. Can be configured, or set once at
49
+ * runtime. To access the element of a rendered widget, see [element](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#property-element).
50
+ */
51
+ appendTo ? : HTMLElement|string
52
+ /**
53
+ * A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject
54
+ * into an element which will be linked using the `aria-describedby` attribute.
55
+ * ...
56
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-ariaDescription)
57
+ */
58
+ ariaDescription ? : string
59
+ /**
60
+ * A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject as
61
+ * the `aria-label` attribute.
62
+ * ...
63
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-ariaLabel)
64
+ */
65
+ ariaLabel ? : string
66
+ /**
67
+ * Automatically set grids height to fit all rows (no scrolling in the grid). In general you should avoid
68
+ * using `autoHeight: true`, since it will bypass Grids virtual rendering and render all rows at once, which
69
+ * in a larger grid is really bad for performance.
70
+ */
71
+ autoHeight ? : boolean
72
+ /**
73
+ * A Config object representing the configuration of a [Toolbar](https://bryntum.com/products/grid/docs/api/Core/widget/Toolbar),
74
+ * or array of config objects representing the child items of a Toolbar. Another way to add a bbar is to use [strips](https://bryntum.com/products/grid/docs/api/Core/widget/Panel#config-strips).
75
+ * ...
76
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-bbar)
77
+ */
78
+ bbar ? : (ContainerItemConfig|string)[]|ToolbarConfig|PagingToolbarConfig|null
79
+ /**
80
+ * Custom CSS classes to add to the panel's body element.
81
+ * ...
82
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-bodyCls)
83
+ */
84
+ bodyCls ? : string|object
85
+ /**
86
+ * An object where property names with a truthy value indicate which events should bubble up the ownership
87
+ * hierarchy when triggered.
88
+ * ...
89
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-bubbleEvents)
90
+ */
91
+ bubbleEvents ? : object
92
+ /**
93
+ * Set to `false` to not call onXXX method names (e.g. `onShow`, `onClick`), as an easy way to listen for events.
94
+ * ...
95
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-callOnFunctions)
96
+ */
97
+ callOnFunctions ? : boolean
98
+ /**
99
+ * By default, if an event handler throws an exception, the error propagates up the stack and the
100
+ * application state is undefined. Code which follows the event handler will *not* be executed.
101
+ * ...
102
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-catchEventHandlerExceptions)
103
+ */
104
+ catchEventHandlerExceptions ? : boolean
105
+ /**
106
+ * Set to `false` to crop text in grid cells without ellipsis (...). When enabled, cells containing pure
107
+ * use `display : block`, instead of `display : flex` to allow ellipsis to work.
108
+ * <strong>NOTE</strong> Only supported in browsers that support `:has()` CSS selector
109
+ */
110
+ cellEllipsis ? : boolean
111
+ /**
112
+ * Custom CSS classes to add to element.
113
+ * May be specified as a space separated string, or as an object in which property names
114
+ * with truthy values are used as the class names:
115
+ * ...
116
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-cls)
117
+ */
118
+ cls ? : string|object
119
+ /**
120
+ * Controls whether the panel is collapsed (the body of the panel is hidden while only the header is
121
+ * visible). Only valid if the panel is [collapsible](https://bryntum.com/products/grid/docs/api/Core/widget/Panel#config-collapsible).
122
+ */
123
+ collapsed ? : boolean
124
+ /**
125
+ * This config enables collapsibility for the panel. See [collapsed](https://bryntum.com/products/grid/docs/api/Core/widget/Panel#config-collapsed).
126
+ * ...
127
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-collapsible)
128
+ */
129
+ collapsible ? : boolean|PanelCollapserConfig|PanelCollapserOverlayConfig
130
+ /**
131
+ * Applies the specified color to the widget, by setting the `--b-primary` CSS variable in the widgets
132
+ * `style` block.
133
+ * ...
134
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-color)
135
+ */
136
+ color ? : string
137
+ /**
138
+ * Programmatic control over which column to start in when used in a grid layout.
139
+ */
140
+ column ? : number
141
+ /**
142
+ * Set to `false` to not show column lines. End result might be overruled by/differ between themes.
143
+ */
144
+ columnLines ? : boolean
145
+ /**
146
+ * Accepts column definitions for the grid during initialization. They will be used to create
147
+ * [Column](https://bryntum.com/products/grid/docs/api/Grid/column/Column) instances that are added to a [ColumnStore](#Grid/data/ColumnStore).
148
+ * ...
149
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-columns)
150
+ */
151
+ columns ? : ColumnStore|GridColumnConfig[]|ColumnStoreConfig
152
+ config ? : object
153
+ /**
154
+ * Custom CSS classes to add to the [contentElement](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#property-contentElement).
155
+ * May be specified as a space separated string, or as an object in which property names
156
+ * with truthy values are used as the class names:
157
+ * ...
158
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-contentElementCls)
159
+ */
160
+ contentElementCls ? : string|object
161
+ /**
162
+ * Event which is used to show context menus.
163
+ * Available options are: 'contextmenu', 'click', 'dblclick'.
164
+ */
165
+ contextMenuTriggerEvent ? : 'contextmenu'|'click'|'dblclick'
166
+ /**
167
+ * Convenient shortcut to set data in grids store both during initialization and at runtime. Can also be
168
+ * used to retrieve data at runtime, although we do recommend interacting with Grids store instead using
169
+ * the [store](https://bryntum.com/products/grid/docs/api/Grid/view/GridBase#property-store) property.
170
+ * ...
171
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-data)
172
+ */
173
+ data ? : object[]|Model[]|ModelConfig[]
174
+ /**
175
+ * When this Widget configuration is used in the Grid's RowExpander feature's `widget` config, provide the
176
+ * field on the expanded record to use for populating this widget's store (if applicable)
177
+ */
178
+ dataField ? : string
179
+ /**
180
+ * Object to apply to elements dataset (each key will be used as a data-attribute on the element)
181
+ */
182
+ dataset ? : Record<string, string>
183
+ /**
184
+ * Region to which columns are added when they have none specified
185
+ */
186
+ defaultRegion ? : string
187
+ /**
188
+ * Set to `true` to destroy the store when the grid is destroyed.
189
+ */
190
+ destroyStore ? : boolean
191
+ /**
192
+ * Check for CSS compatibility issues when upgrading to v7. Performs the following checks:
193
+ * ...
194
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-detectCSSCompatibilityIssues)
195
+ */
196
+ detectCSSCompatibilityIssues ? : boolean
197
+ /**
198
+ * Disable or enable the widget. It is similar to [readOnly](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-readOnly) except a disabled widget
199
+ * cannot be focused, uses a different rendition (usually greyish) and does not allow selecting its value.
200
+ * ...
201
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-disabled)
202
+ */
203
+ disabled ? : boolean|'inert'
204
+ /**
205
+ * Set to `true` to not get a warning when calling [getState](https://bryntum.com/products/grid/docs/api/Grid/view/GridBase#function-getState) when there is a column
206
+ * configured without an `id`. But the recommended action is to always configure columns with an `id` when
207
+ * using states.
208
+ */
209
+ disableGridColumnIdWarning ? : boolean
210
+ /**
211
+ * Set to `true` to not get a warning when using another base class than GridRowModel for your grid data. If
212
+ * you do, and would like to use the full feature set of the grid then include the fields from GridRowModel
213
+ * in your model definition.
214
+ */
215
+ disableGridRowModelWarning ? : boolean
216
+ /**
217
+ * Controls the placement of this widget when it is added to a [panel's ](https://bryntum.com/products/grid/docs/api/Core/widget/Panel)
218
+ * [strips collection](https://bryntum.com/products/grid/docs/api/Core/widget/Panel#config-strips). Typical values for this config are `'top'`,
219
+ * `'bottom'`, `'left'`, or `'right'`, which cause the widget to be placed on that side of the panel's
220
+ * body. Such widgets are called "edge strips".
221
+ * ...
222
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-dock)
223
+ */
224
+ dock ? : 'top'|'bottom'|'left'|'right'|'start'|'end'|'header'|'pre-header'|object
225
+ /**
226
+ * Make this Panel a docked drawer which slides out from one side of the browser viewport by default.
227
+ * ...
228
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-drawer)
229
+ * @param {'start','left','end','right','top','bottom'} side The side of the viewport to dock the drawer to. * `'start'` means the `inline-start` side. * `'end'` means the `inline-end` side.
230
+ * @param {string,number} size The size of the drawer in its collapsible axis.
231
+ * @param {boolean} inline If using the [appendTo](https://bryntum.com/products/grid/docs/api/Core/widget/Panel#config-appendTo) config to place the drawer inside a host widget, this may be set to `true` to make the drawer inline within that host. Note that, if using this, the layout of the host element must have `flex-direction` set appropriately.
232
+ * @param {boolean,object} autoClose Specifies what user actions should automatically close the drawer. Defaults to closing when the user clicks outside of the drawer or when focus moves outside of the drawer.
233
+ * @param {boolean,string} autoClose.mousedown If the user clicks outside of the drawer, the drawer will automatically be hidden. If the value is a string, it is used as a CSS selector to filter clicks which should close the drawer.
234
+ * @param {boolean,string} autoClose.focusout If focus moves outside of the drawer, the drawer will automatically be hidden.
235
+ * @param {string} autoClose.mouseout Hides the drawer when the mouse leaves the drawer after the `autoCloseDelay` period.
236
+ * @param {number} autoCloseDelay When using `mouseout`, this is the delay in milliseconds
237
+ */
238
+ drawer ? : boolean|{side?: 'start'|'left'|'end'|'right'|'top'|'bottom', size?: string|number, inline?: boolean, autoClose: { mousedown?: boolean|string, focusout?: boolean|string, mouseout?: string }, autoCloseDelay?: number}
239
+ /**
240
+ * An object specifying attributes to assign to the root element of this widget.
241
+ * Set `null` value to attribute to remove it.
242
+ * ...
243
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-elementAttributes)
244
+ */
245
+ elementAttributes ? : Record<string, string|null>
246
+ /**
247
+ * Text or HTML, or a [EmptyTextDomConfig](https://bryntum.com/products/grid/docs/api/Grid/view/GridBase#typedef-EmptyTextDomConfig) block to display when there is no data to display in the grid.
248
+ * When using multiple Grid regions, provide the `region` property to decide where the text is shown.
249
+ * By default, it is shown in the first region.
250
+ * ...
251
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-emptyText)
252
+ */
253
+ emptyText ? : string|EmptyTextDomConfig
254
+ /**
255
+ * Configure this as `true` to allow elements within cells to be styled as `position: sticky`.
256
+ * ...
257
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-enableSticky)
258
+ */
259
+ enableSticky ? : boolean
260
+ /**
261
+ * Set to `true` to allow text selection in the grid cells. Note, this cannot be used simultaneously with the
262
+ * `RowReorder` feature.
263
+ */
264
+ enableTextSelection ? : boolean
265
+ /**
266
+ * Set to `true` to listen for CTRL-Z (CMD-Z on Mac OS) keyboard event and trigger undo (redo when SHIFT is
267
+ * pressed). Only applicable when using a [StateTrackingManager](https://bryntum.com/products/grid/docs/api/Core/data/stm/StateTrackingManager).
268
+ */
269
+ enableUndoRedoKeys ? : boolean
270
+ extraData ? : any
271
+ /**
272
+ * Set to `true` to stretch the last column in a grid with all fixed width columns
273
+ * to fill extra available space if the grid's width is wider than the sum of all
274
+ * configured column widths.
275
+ */
276
+ fillLastColumn ? : boolean
277
+ /**
278
+ * Use fixed row height. Setting this to `true` will configure the underlying RowManager to use fixed row
279
+ * height, which sacrifices the ability to use rows with variable height to gain a fraction better
280
+ * performance.
281
+ * ...
282
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-fixedRowHeight)
283
+ */
284
+ fixedRowHeight ? : boolean
285
+ /**
286
+ * When this widget is a child of a [Container](https://bryntum.com/products/grid/docs/api/Core/widget/Container), it will by default be participating in a
287
+ * flexbox layout. This config allows you to set this widget's
288
+ * [flex](https://developer.mozilla.org/en-US/docs/Web/CSS/flex) style.
289
+ * This may be configured as a single number or a `&lt;flex-grow&gt; &lt;flex-shrink&gt; &lt;flex-basis&gt;` format string.
290
+ * numeric-only values are interpreted as the `flex-grow` value.
291
+ */
292
+ flex ? : number|string
293
+ /**
294
+ * Config object of a footer. May contain a `dock`, `html` and a `cls` property. A footer is not a widget,
295
+ * but rather plain HTML that follows the last element of the panel's body and [strips](https://bryntum.com/products/grid/docs/api/Core/widget/Panel#config-strips).
296
+ * ...
297
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-footer)
298
+ */
299
+ footer ? : {
300
+ dock?: 'top'|'right'|'bottom'|'left'|'start'|'end'
301
+ html?: string
302
+ cls?: string
303
+ }|string
304
+ /**
305
+ * An object which names formula prefixes which will be applied to all columns configured with
306
+ * `formula : true`.
307
+ * ...
308
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-formulaProviders)
309
+ */
310
+ formulaProviders ? : Record<string, FormulaProviderConfig>
311
+ /**
312
+ * Refresh entire row when a record changes (`true`) or, if possible, only the cells affected (`false`).
313
+ * ...
314
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-fullRowRefresh)
315
+ */
316
+ fullRowRefresh ? : boolean
317
+ /**
318
+ * A function called for each row to determine its height. It is passed a [record](https://bryntum.com/products/grid/docs/api/Core/data/Model) and
319
+ * expected to return the desired height of that records row. If the function returns a falsy value, Grids
320
+ * configured [rowHeight](https://bryntum.com/products/grid/docs/api/Grid/view/GridBase#config-rowHeight) is used.
321
+ * ...
322
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-getRowHeight)
323
+ * @param {Core.data.Model} getRowHeight.record Record to determine row height for
324
+ * @returns {number} Desired row height
325
+ */
326
+ getRowHeight ? : (getRowHeight: { record: Model }) => number
327
+ /**
328
+ * A config [object](https://bryntum.com/products/grid/docs/api/Core/widget/Panel#typedef-PanelHeader) for the panel's header or a string in place of a `title`.
329
+ * ...
330
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-header)
331
+ */
332
+ header ? : string|boolean|PanelHeader
333
+ /**
334
+ * Widget's height, used to set element `style.height`. Either specify a valid height string or a number,
335
+ * which will get 'px' appended. We recommend using CSS as the primary way to control height, but in some
336
+ * cases this config is convenient.
337
+ */
338
+ height ? : string|number
339
+ /**
340
+ * Configure with true to make widget initially hidden.
341
+ */
342
+ hidden ? : boolean
343
+ /**
344
+ * Set to `true` to hide the footer elements
345
+ */
346
+ hideFooters ? : boolean
347
+ /**
348
+ * Set to `true` to hide the column header elements
349
+ */
350
+ hideHeaders ? : boolean
351
+ /**
352
+ * Set to `true` to hide the Grid's horizontal scrollbar(s)
353
+ */
354
+ hideHorizontalScrollbar ? : boolean
355
+ /**
356
+ * A CSS class to add to hovered row elements
357
+ */
358
+ hoverCls ? : string
359
+ /**
360
+ * An icon to show before the [title](https://bryntum.com/products/grid/docs/api/Core/widget/Panel#config-title). Either pass a CSS class as a string, or pass a
361
+ * [DomConfig](https://bryntum.com/products/grid/docs/api/Core/helper/DomHelper#typedef-DomConfig) object describing an element to represent the icon.
362
+ */
363
+ icon ? : string|DomConfig
364
+ /**
365
+ * Widget id, if not specified one will be generated. Also used for lookups through Widget.getById
366
+ */
367
+ id ? : string
368
+ /**
369
+ * Determines if the widgets read-only state should be controlled by its parent.
370
+ * ...
371
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-ignoreParentReadOnly)
372
+ */
373
+ ignoreParentReadOnly ? : boolean
374
+ /**
375
+ * Convenience setting to align input fields of child widgets. By default, the Field input element is
376
+ * placed immediately following the `label`. If you prefer to have all input fields aligned to the
377
+ * right, set this config to `'end'`.
378
+ * ...
379
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-inputFieldAlign)
380
+ */
381
+ inputFieldAlign ? : 'start'|'end'
382
+ /**
383
+ * 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.
384
+ */
385
+ insertBefore ? : HTMLElement|string
386
+ /**
387
+ * 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.
388
+ */
389
+ insertFirst ? : HTMLElement|string
390
+ /**
391
+ * See [Keyboard shortcuts](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#keyboard-shortcuts) for details
392
+ */
393
+ keyMap ? : Record<string, KeyMapConfig>
394
+ /**
395
+ * Convenience setting to use same label placement on all child widgets.
396
+ * ...
397
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-labelPosition)
398
+ */
399
+ labelPosition ? : 'before'|'above'|'align-before'|'auto'|null
400
+ /**
401
+ * The listener set for this object.
402
+ * ...
403
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-listeners)
404
+ */
405
+ listeners ? : GridListeners
406
+ /**
407
+ * A [Mask](https://bryntum.com/products/grid/docs/api/Core/widget/Mask) config object, or a message to be shown when a store is performing a remote
408
+ * operation, or Crud Manager is loading data from the sever. Set to `null` to disable default load mask.
409
+ */
410
+ loadMask ? : string|MaskConfig|null
411
+ /**
412
+ * A [Mask](https://bryntum.com/products/grid/docs/api/Core/widget/Mask) config object to adjust the [maskDefaults](#Core/widget/Widget#config-maskDefaults)
413
+ * when data is loading. The message and optional configuration from the
414
+ * [loadMask](https://bryntum.com/products/grid/docs/api/Core/mixin/LoadMaskable#config-loadMask) config take priority over these options, just as they do
415
+ * for `maskDefaults`, respectively.
416
+ * ...
417
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-loadMaskDefaults)
418
+ */
419
+ loadMaskDefaults ? : MaskConfig
420
+ /**
421
+ * A [Mask](https://bryntum.com/products/grid/docs/api/Core/widget/Mask) config object to adjust the [maskDefaults](#Core/widget/Widget#config-maskDefaults)
422
+ * when an error occurs loading data.
423
+ * ...
424
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-loadMaskError)
425
+ */
426
+ loadMaskError ? : MaskConfig|Mask|boolean
427
+ /**
428
+ * Set to `false` to disable localization of this object.
429
+ */
430
+ localizable ? : boolean
431
+ /**
432
+ * Time in ms until a longpress is triggered
433
+ */
434
+ longPressTime ? : number
435
+ /**
436
+ * Widget's margin. This may be configured as a single number or a `TRBL` format string.
437
+ * numeric-only values are interpreted as pixels.
438
+ */
439
+ margin ? : number|string
440
+ /**
441
+ * Grids change the `maskDefaults` to cover only their `body` element.
442
+ */
443
+ maskDefaults ? : MaskConfig
444
+ /**
445
+ * Set to `true` to apply the default mask to the widget. Alternatively, this can be the mask message or a
446
+ * [Mask](https://bryntum.com/products/grid/docs/api/Core/widget/Mask) config object.
447
+ */
448
+ masked ? : boolean|string|MaskConfig
449
+ /**
450
+ * The element's maxHeight. Can be either a String or a Number (which will have 'px' appended). Note that
451
+ * like [height](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-height), *reading* the value will return the numeric value in pixels.
452
+ */
453
+ maxHeight ? : string|number
454
+ /**
455
+ * The elements maxWidth. Can be either a String or a Number (which will have 'px' appended). Note that
456
+ * like [width](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-width), *reading* the value will return the numeric value in pixels.
457
+ */
458
+ maxWidth ? : string|number
459
+ /**
460
+ * Grid's `min-height`. Defaults to `10em` to be sure that the Grid always has a height wherever it is
461
+ * inserted.
462
+ * ...
463
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-minHeight)
464
+ */
465
+ minHeight ? : string|number
466
+ /**
467
+ * The elements minWidth. Can be either a String or a Number (which will have 'px' appended). Note that
468
+ * like [width](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-width), *reading* the value will return the numeric value in pixels.
469
+ */
470
+ minWidth ? : string|number
471
+ /**
472
+ * Grid monitors window resize by default.
473
+ */
474
+ monitorResize ? : boolean
475
+ /**
476
+ * The owning Widget of this Widget. If this Widget is directly contained (that is, it is one of the
477
+ * [items](https://bryntum.com/products/grid/docs/api/Core/widget/Container#property-items) of a Container), this config will be ignored. In this case
478
+ * the owner is <strong>always</strong> the encapsulating Container.
479
+ * ...
480
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-owner)
481
+ */
482
+ owner ? : Widget|any
483
+ /**
484
+ * Specify plugins (an array of classes) in config
485
+ */
486
+ plugins ? : Function[]
487
+ /**
488
+ * True to preserve focused cell after loading new data
489
+ */
490
+ preserveFocusOnDatasetChange ? : boolean
491
+ /**
492
+ * Preserve the grid's vertical scroll position when changesets are applied, as in the case of remote
493
+ * changes, or when stores are configured with [syncDataOnLoad](https://bryntum.com/products/grid/docs/api/Core/data/Store#config-syncDataOnLoad).
494
+ */
495
+ preserveScroll ? : PreserveScrollOptions|boolean
496
+ /**
497
+ * Specify `true` to preserve vertical scroll position after store actions that trigger a `refresh` event,
498
+ * such as loading new data and filtering.
499
+ */
500
+ preserveScrollOnDatasetChange ? : boolean
501
+ /**
502
+ * Prevent tooltip from being displayed on touch devices. Useful for example for buttons that display a
503
+ * menu on click etc, since the tooltip would be displayed at the same time.
504
+ */
505
+ preventTooltipOnTouch ? : boolean
506
+ /**
507
+ * Set to `true` to make the grid read-only, by disabling any UIs for modifying data.
508
+ * ...
509
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-readOnly)
510
+ */
511
+ readOnly ? : boolean
512
+ relayStoreEvents ? : boolean
513
+ /**
514
+ * Either a default `rendition` to apply to all child widgets, or a map of renditions keyed by child widget
515
+ * `type`.
516
+ * ...
517
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-rendition)
518
+ */
519
+ rendition ? : string|Record<string, string>|null
520
+ /**
521
+ * Configure this property to allow the widget/component to be resized. Pressing <kbd>Shift</kbd> while resizing will
522
+ * constrain the aspect ratio.
523
+ * ...
524
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-resizable)
525
+ */
526
+ resizable ? : boolean|{
527
+ minWidth?: number
528
+ maxWidth?: number
529
+ minHeight?: number
530
+ maxHeight?: number
531
+ handles?: object
532
+ }
533
+ /**
534
+ * Set to `false` to only measure cell contents when double-clicking the edge between column headers.
535
+ */
536
+ resizeToFitIncludesHeader ? : boolean
537
+ /**
538
+ * "Break points" for which responsive config to use for columns and css.
539
+ * ...
540
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-responsiveLevels)
541
+ */
542
+ responsiveLevels ? : Record<string, number|string|ResponsiveLevelConfig>
543
+ /**
544
+ * Configure as `true` to have the component display a translucent ripple when its
545
+ * [focusElement](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#property-focusElement), or [element](#Core/widget/Widget#property-element) is tapped <em>if the
546
+ * current theme supports ripples</em>. Out of the box, only the Material theme supports ripples.
547
+ * ...
548
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-ripple)
549
+ */
550
+ ripple ? : boolean|{
551
+ delegate?: string
552
+ color?: string
553
+ radius?: number
554
+ clip?: string
555
+ }
556
+ /**
557
+ * If you are rendering this widget to a shadow root inside a web component, set this config to the shadowRoot. If not inside a web component, set it to `document.body`
558
+ */
559
+ rootElement ? : ShadowRoot|HTMLElement
560
+ /**
561
+ * Row height in pixels. This allows the default height for rows to be controlled. Note that it may be
562
+ * overriden by specifying a [rowHeight](https://bryntum.com/products/grid/docs/api/Grid/data/GridRowModel#field-rowHeight) on a per record basis, or from
563
+ * a column [renderer](https://bryntum.com/products/grid/docs/api/Grid/column/Column#config-renderer).
564
+ * ...
565
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-rowHeight)
566
+ */
567
+ rowHeight ? : number
568
+ /**
569
+ * Set to `false` to not show row lines. End result might be overruled by/differ between themes.
570
+ */
571
+ rowLines ? : boolean
572
+ /**
573
+ * This may be configured as `true` to make the widget's element use the `direction:rtl` style.
574
+ * ...
575
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-rtl)
576
+ */
577
+ rtl ? : boolean
578
+ /**
579
+ * Configures whether the grid is scrollable in the `Y` axis. This is used to configure a [Scroller](https://bryntum.com/products/grid/docs/api/Core/helper/util/Scroller).
580
+ * See the [scrollerClass](https://bryntum.com/products/grid/docs/api/Grid/view/GridBase#config-scrollerClass) config option.
581
+ * ...
582
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-scrollable)
583
+ */
584
+ scrollable ? : boolean|ScrollerConfig|Scroller
585
+ /**
586
+ * The class to instantiate to use as the [scrollable](https://bryntum.com/products/grid/docs/api/Grid/view/GridBase#config-scrollable). Defaults to [Scroller](#Core/helper/util/Scroller).
587
+ */
588
+ scrollerClass ? : typeof Scroller
589
+ /**
590
+ * Configuration values for the [ScrollManager](https://bryntum.com/products/grid/docs/api/Core/util/ScrollManager) class on initialization. Returns the
591
+ * [ScrollManager](https://bryntum.com/products/grid/docs/api/Core/util/ScrollManager) at runtime.
592
+ */
593
+ scrollManager ? : ScrollManagerConfig|ScrollManager
594
+ /**
595
+ * Selection configuration settings, change these properties to control how selection works and what can be
596
+ * selected.
597
+ * ...
598
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-selectionMode)
599
+ */
600
+ selectionMode ? : GridSelectionMode
601
+ /**
602
+ * Configure as `true` to have the grid show a red "changed" tag in cells whose
603
+ * field value has changed and not yet been committed.
604
+ * ...
605
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-showDirty)
606
+ */
607
+ showDirty ? : boolean|{
608
+ duringEdit?: boolean
609
+ newRecord?: boolean
610
+ }
611
+ /**
612
+ * Programmatic control over how many columns to span when used in a grid layout.
613
+ */
614
+ span ? : number
615
+ /**
616
+ * This value can be one of the following:
617
+ * ...
618
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-stateful)
619
+ */
620
+ stateful ? : boolean|object|string[]
621
+ /**
622
+ * The events that, when fired by this component, should trigger it to save its state by calling
623
+ * [saveState](https://bryntum.com/products/grid/docs/api/Core/mixin/State#function-saveState).
624
+ * ...
625
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-statefulEvents)
626
+ */
627
+ statefulEvents ? : object|string[]
628
+ /**
629
+ * The key to use when saving this object's state in the [stateProvider](https://bryntum.com/products/grid/docs/api/Core/mixin/State#config-stateProvider). If this config is
630
+ * not assigned, and [stateful](https://bryntum.com/products/grid/docs/api/Core/mixin/State#config-stateful) is not set to `false`, the [id](#Core/widget/Widget#config-id)
631
+ * (if explicitly specified) will be used as the `stateId`.
632
+ * ...
633
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-stateId)
634
+ */
635
+ stateId ? : string
636
+ /**
637
+ * The `StateProvider` to use to save and restore this object's [state](https://bryntum.com/products/grid/docs/api/Core/mixin/State#property-state). By default, `state`
638
+ * will be saved using the [default state provider](https://bryntum.com/products/grid/docs/api/Core/state/StateProvider#property-instance-static).
639
+ * ...
640
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-stateProvider)
641
+ */
642
+ stateProvider ? : StateProvider
643
+ /**
644
+ * The properties of this settings object controls how grid is restored from state data.
645
+ * ...
646
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-stateSettings)
647
+ */
648
+ stateSettings ? : {
649
+ restoreUnconfiguredColumns?: boolean
650
+ }
651
+ /**
652
+ * Store that holds records to display in the grid, or a store config object. If the configuration contains
653
+ * a `readUrl`, an `AjaxStore` will be created.
654
+ * ...
655
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-store)
656
+ */
657
+ store ? : Store|StoreConfig|AjaxStore|AjaxStoreConfig
658
+ /**
659
+ * An object containing widgets keyed by name. By default (when no `type` is given), strips are
660
+ * [toolbars](https://bryntum.com/products/grid/docs/api/Core/widget/Toolbar). If you want to pass an array, you can use
661
+ * the toolbar's [items](https://bryntum.com/products/grid/docs/api/Core/widget/Container#config-items).
662
+ * ...
663
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-strips)
664
+ */
665
+ strips ? : Record<string, ContainerItemConfig>
666
+ /**
667
+ * An object containing sub grid configuration objects keyed by a `region` property.
668
+ * By default, grid has a 'locked' region (if configured with locked columns) and a 'normal' region.
669
+ * The 'normal' region defaults to use `flex: 1`.
670
+ * ...
671
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-subGridConfigs)
672
+ */
673
+ subGridConfigs ? : Record<string, SubGridConfig>
674
+ /**
675
+ * A [Mask](https://bryntum.com/products/grid/docs/api/Core/widget/Mask) config object, or a message to be shown when Crud Manager
676
+ * is persisting changes on the server. Set to `null` to disable default sync mask.
677
+ * ...
678
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-syncMask)
679
+ */
680
+ syncMask ? : string|MaskConfig|null
681
+ /**
682
+ * A configuration for the [tab](https://bryntum.com/products/grid/docs/api/Core/widget/Tab) created for this widget when it is placed in a
683
+ * [TabPanel](https://bryntum.com/products/grid/docs/api/Core/widget/TabPanel). For example, this config can be used to control the icon of the `tab` for
684
+ * this widget:
685
+ * ...
686
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-tab)
687
+ */
688
+ tab ? : boolean|TabConfig
689
+ /**
690
+ * When this container is used as a tab in a TabPanel, these items are added to the
691
+ * [TabBar](https://bryntum.com/products/grid/docs/api/Core/widget/TabBar) when this container is the active tab.
692
+ * ...
693
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-tabBarItems)
694
+ */
695
+ tabBarItems ? : ToolbarItems[]|Widget[]
696
+ /**
697
+ * A Config object representing the configuration of a [Toolbar](https://bryntum.com/products/grid/docs/api/Core/widget/Toolbar),
698
+ * or array of config objects representing the child items of a Toolbar.
699
+ * This creates a toolbar docked to the top of the panel immediately below the header.
700
+ * ...
701
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-tbar)
702
+ */
703
+ tbar ? : (ContainerItemConfig|string)[]|ToolbarConfig|PagingToolbarConfig|null
704
+ /**
705
+ * A title to display in the header or owning TabPanel. Causes creation and docking of a header
706
+ * to the top if no header is configured.
707
+ * ...
708
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-title)
709
+ */
710
+ title ? : string
711
+ /**
712
+ * The [tools](https://bryntum.com/products/grid/docs/api/Core/widget/Tool) to add either before or after the `title` in the Panel header. Each
713
+ * property name is the reference by which an instantiated tool may be retrieved from the live
714
+ * `[tools](https://bryntum.com/products/grid/docs/api/Core/widget/mixin/Toolable#property-tools)` property.
715
+ * ...
716
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-tools)
717
+ */
718
+ tools ? : Record<string, ToolConfig>|null
719
+ /**
720
+ * Configure UI transitions for various actions in the grid.
721
+ */
722
+ transition ? : {
723
+ insertRecord?: boolean
724
+ removeRecord?: boolean
725
+ toggleColumn?: boolean
726
+ expandCollapseColumn?: boolean
727
+ toggleRegion?: boolean
728
+ toggleTreeNode?: boolean
729
+ toggleGroup?: boolean
730
+ filterRemoval?: boolean
731
+ }
732
+ /**
733
+ * Animation transition duration in milliseconds.
734
+ */
735
+ transitionDuration ? : number
736
+ type ? : 'grid'
737
+ /**
738
+ * Custom CSS class name suffixes to apply to the elements rendered by this widget. This may be specified
739
+ * as a space separated string, an array of strings, or as an object in which property names with truthy
740
+ * values are used as the class names.
741
+ * ...
742
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-ui)
743
+ */
744
+ ui ? : 'plain'|'toolbar'|string|object
745
+ /**
746
+ * A widgets weight determines its position among siblings when added to a [Container](https://bryntum.com/products/grid/docs/api/Core/widget/Container).
747
+ * Higher weights go further down.
748
+ */
749
+ weight ? : number
750
+ /**
751
+ * Widget's width, used to set element `style.width`. Either specify a valid width string or a number, which
752
+ * will get 'px' appended. We recommend using CSS as the primary way to control width, but in some cases
753
+ * this config is convenient.
754
+ */
755
+ width ? : string|number
756
+
757
+ // Features
758
+ /**
759
+ * AI-powered filter feature for Grid. Allows users to type natural language queries to filter grid data.
760
+ * ...
761
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/feature/ai/AIFilter)
762
+ */
763
+ aiFilterFeature ? : object|boolean|string|AIFilter|AIFilterConfig
764
+ /**
765
+ * Allows using `[Ctrl/CMD + C]`, `[Ctrl/CMD + X]` and `[Ctrl/CMD + V]` to cut, copy and paste cell or cell ranges. Also
766
+ * makes cut, copy and paste actions available via the cell context menu.
767
+ * ...
768
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/feature/CellCopyPaste)
769
+ */
770
+ cellCopyPasteFeature ? : object|boolean|string|CellCopyPaste|CellCopyPasteConfig
771
+ /**
772
+ * Adding this feature to the grid and other Bryntum products which are based on the Grid (i.e. Scheduler, SchedulerPro, and Gantt)
773
+ * enables cell editing. Any subclass of [Field](https://bryntum.com/products/grid/docs/api/Core/widget/Field) can be used
774
+ * as editor for the [Column](https://bryntum.com/products/grid/docs/api/Grid/column/Column). The most popular are:
775
+ * ...
776
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/feature/CellEdit)
777
+ */
778
+ cellEditFeature ? : object|boolean|string|CellEdit|CellEditConfig
779
+ /**
780
+ * Right click to display context menu for cells. To invoke the cell menu in a keyboard-accessible manner, use the
781
+ * `SPACE` key when the cell is focused.
782
+ * ...
783
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/feature/CellMenu)
784
+ */
785
+ cellMenuFeature ? : object|boolean|string|CellMenu|CellMenuConfig
786
+ /**
787
+ * Displays a tooltip when hovering cells.
788
+ * ...
789
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/feature/CellTooltip)
790
+ */
791
+ cellTooltipFeature ? : object|boolean|string|CellTooltip|CellTooltipConfig
792
+ /**
793
+ * Adds interactive charting to a Grid. [Charts](https://bryntum.com/products/grid/docs/api/Chart/widget/Chart) can be created from a selection of Grid data
794
+ * and updated in realtime as data changes. Supports many common chart types with extensive styling and customization
795
+ * options.
796
+ * ...
797
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/feature/Charts)
798
+ */
799
+ chartsFeature ? : object|boolean|string|Charts|ChartsConfig
800
+ /**
801
+ * Enables the [autoWidth](https://bryntum.com/products/grid/docs/api/Grid/column/Column#config-autoWidth) config for a grid's columns.
802
+ * ...
803
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/feature/ColumnAutoWidth)
804
+ */
805
+ columnAutoWidthFeature ? : object|boolean|string|ColumnAutoWidth|ColumnAutoWidthConfig
806
+ /**
807
+ * Displays a toolbar while dragging column headers. Drop on a button in the toolbar to activate a certain function,
808
+ * for example to group by that column. This feature simplifies certain operations on touch devices.
809
+ * ...
810
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/feature/ColumnDragToolbar)
811
+ */
812
+ columnDragToolbarFeature ? : object|boolean|string|ColumnDragToolbar|ColumnDragToolbarConfig
813
+ /**
814
+ * Displays a column picker (to show/hide columns) in the header context menu. Columns can be displayed in sub menus
815
+ * by region or tag. Grouped headers are displayed as menu hierarchies.
816
+ * ...
817
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/feature/ColumnPicker)
818
+ */
819
+ columnPickerFeature ? : object|boolean|string|ColumnPicker|ColumnPickerConfig
820
+ /**
821
+ * Allows user to rename columns by either right-clicking column header or using keyboard shortcuts when column header
822
+ * is focused.
823
+ * ...
824
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/feature/ColumnRename)
825
+ */
826
+ columnRenameFeature ? : object|boolean|string|ColumnRename|ColumnRenameConfig
827
+ /**
828
+ * Allows user to reorder columns by dragging headers. To get notified about column reorder listen to `change` event
829
+ * on [columns](https://bryntum.com/products/grid/docs/api/Grid/data/ColumnStore) store.
830
+ * ...
831
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/feature/ColumnReorder)
832
+ */
833
+ columnReorderFeature ? : object|boolean|string|ColumnReorder|ColumnReorderConfig
834
+ /**
835
+ * Enables user to resize columns by dragging a handle on the right hand side of the header. To get notified about column
836
+ * resize listen to `change` event on [columns](https://bryntum.com/products/grid/docs/api/Grid/data/ColumnStore) store.
837
+ * ...
838
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/feature/ColumnResize)
839
+ */
840
+ columnResizeFeature ? : object|boolean|string|ColumnResize|ColumnResizeConfig
841
+ /**
842
+ * A feature that allows exporting Grid data to Excel or CSV without involving the server. It uses
843
+ * [TableExporter](https://bryntum.com/products/grid/docs/api/Grid/util/TableExporter) class as data provider, 3rd party provider to generate XLS files, and
844
+ * [Microsoft XML specification](https://msdn.microsoft.com/en-us/library/office/documentformat.openxml.spreadsheet.aspx).
845
+ * ...
846
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/feature/experimental/ExcelExporter)
847
+ */
848
+ excelExporterFeature ? : object|boolean|string|ExcelExporter|ExcelExporterConfig
849
+ /**
850
+ * An experimental feature that lets users drop files on a Widget. The widget fires an event when a file is dropped onto it.
851
+ * In the event, you get access to the raw files as strings, that were parsed by calling `readAsBinaryString`.
852
+ * ...
853
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/feature/experimental/FileDrop)
854
+ */
855
+ fileDropFeature ? : object|boolean|string|FileDrop|FileDropConfig
856
+ /**
857
+ * This feature adds a fill handle to a Grid range selection, which when dragged, fills the cells being dragged over
858
+ * with values based on the values in the original selected range. This is similar to functionality normally seen in
859
+ * various spreadsheet applications.
860
+ * ...
861
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/feature/FillHandle)
862
+ */
863
+ fillHandleFeature ? : object|boolean|string|FillHandle|FillHandleConfig
864
+ /**
865
+ * Feature that allows filtering of the grid by settings filters on columns. The actual filtering is done by the store.
866
+ * For info on programmatically handling filters, see [StoreFilter](https://bryntum.com/products/grid/docs/api/Core/data/mixin/StoreFilter).
867
+ * ...
868
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/feature/Filter)
869
+ */
870
+ filterFeature ? : object|boolean|string|Filter|FilterConfig
871
+ /**
872
+ * Feature that allows filtering of the grid by entering filters on column headers.
873
+ * The actual filtering is done by the store.
874
+ * For info on programmatically handling filters, see [StoreFilter](https://bryntum.com/products/grid/docs/api/Core/data/mixin/StoreFilter).
875
+ * ...
876
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/feature/FilterBar)
877
+ */
878
+ filterBarFeature ? : object|boolean|string|FilterBar|FilterBarConfig
879
+ /**
880
+ * Enables rendering and handling of row groups. The actual grouping is done in the store, but triggered by
881
+ * <kbd>shift</kbd> + clicking headers, or by using the context menu, or by using two finger tap (one on header,
882
+ * one anywhere on grid). Use <kbd>shift</kbd> + <kbd>alt</kbd> + click, or the context menu, to remove a column
883
+ * grouper.
884
+ * ...
885
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/feature/Group)
886
+ */
887
+ groupFeature ? : object|boolean|string|Group|GroupConfig
888
+ /**
889
+ * Displays a summary row as a group footer in a grouped grid. Uses the same configuration options on columns as
890
+ * [Summary](https://bryntum.com/products/grid/docs/api/Grid/feature/Summary).
891
+ * ...
892
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/feature/GroupSummary)
893
+ */
894
+ groupSummaryFeature ? : object|boolean|string|GroupSummary|GroupSummaryConfig
895
+ /**
896
+ * Right click column header or focus it and press SPACE key to show the context menu for headers.
897
+ * ...
898
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/feature/HeaderMenu)
899
+ */
900
+ headerMenuFeature ? : object|boolean|string|HeaderMenu|HeaderMenuConfig
901
+ /**
902
+ * This feature allows records which satisfy a certain condition to be locked at the top of the grid.
903
+ * ...
904
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/feature/LockRows)
905
+ */
906
+ lockRowsFeature ? : object|boolean|string|LockRows|LockRowsConfig
907
+ /**
908
+ * This feature merges cells that have the same value in sorted (or [optionally](https://bryntum.com/products/grid/docs/api/Grid/feature/MergeCells#config-sortedOnly) any) columns
909
+ * configured to [mergeCells](https://bryntum.com/products/grid/docs/api/Grid/column/Column#config-mergeCells).
910
+ * ...
911
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/feature/MergeCells)
912
+ */
913
+ mergeCellsFeature ? : object|boolean|string|MergeCells|MergeCellsConfig
914
+ /**
915
+ * Generates PDF/PNG files from the Grid component.
916
+ * ...
917
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/feature/export/PdfExport)
918
+ */
919
+ pdfExportFeature ? : object|boolean|string|PdfExport|PdfExportConfig
920
+ /**
921
+ * Allows pinning columns to the start or end region of the grid without any additional subGrid configurations.
922
+ * When pinning to a region that does not yet exist, the feature creates the required subGrid on the fly.
923
+ * ...
924
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/feature/PinColumns)
925
+ */
926
+ pinColumnsFeature ? : object|boolean|string|PinColumns|PinColumnsConfig
927
+ /**
928
+ * Allows printing Grid contents using browser print dialog.
929
+ * ...
930
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/feature/export/Print)
931
+ */
932
+ printFeature ? : object|boolean|string|Print|PrintConfig
933
+ /**
934
+ * Feature that allows the user to search in a column by focusing a cell and typing. Navigate between hits using the
935
+ * keyboard, [f3] or [ctrl]/[cmd] + [g] moves to next, also pressing [shift] moves to previous.
936
+ * ...
937
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/feature/QuickFind)
938
+ */
939
+ quickFindFeature ? : object|boolean|string|QuickFind|QuickFindConfig
940
+ /**
941
+ * Makes the splitter between grid [sections](https://bryntum.com/products/grid/docs/api/Grid/view/SubGrid) draggable, to let users resize, and
942
+ * collapse/expand the sections.
943
+ * ...
944
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/feature/RegionResize)
945
+ */
946
+ regionResizeFeature ? : object|boolean|string|RegionResize|RegionResizeConfig
947
+ /**
948
+ * Allow using [Ctrl/CMD + C/X] and [Ctrl/CMD + V] to copy/cut-and-paste rows. Also makes cut, copy and paste actions
949
+ * available via the cell context menu.
950
+ * ...
951
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/feature/RowCopyPaste)
952
+ */
953
+ rowCopyPasteFeature ? : object|boolean|string|RowCopyPaste|RowCopyPasteConfig
954
+ /**
955
+ * This feature allows editing of entire rows in a grid in a docked panel which by default slides out from the right.
956
+ * ...
957
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/feature/RowEdit)
958
+ */
959
+ rowEditFeature ? : object|boolean|string|RowEdit|RowEditConfig
960
+ /**
961
+ * Enables expanding of Grid rows by either row click or double click, or by adding a separate Grid column which renders
962
+ * a button that expands or collapses the row.
963
+ * ...
964
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/feature/RowExpander)
965
+ */
966
+ rowExpanderFeature ? : object|boolean|string|RowExpander|RowExpanderConfig
967
+ /**
968
+ * Allows user to reorder rows by dragging them. To get notified about row reorder listen to `change` event
969
+ * on the grid [store](https://bryntum.com/products/grid/docs/api/Core/data/Store).
970
+ * ...
971
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/feature/RowReorder)
972
+ */
973
+ rowReorderFeature ? : object|boolean|string|RowReorder|RowReorderConfig
974
+ /**
975
+ * Enables user to change row height by dragging the bottom row border. After a resize operation, the [rowHeight](https://bryntum.com/products/grid/docs/api/Grid/data/GridRowModel#field-rowHeight)
976
+ * field of the record is updated (when [applyToAllRows](https://bryntum.com/products/grid/docs/api/Grid/feature/RowResize#config-applyToAllRows) is `false`).
977
+ * ...
978
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/feature/RowResize)
979
+ */
980
+ rowResizeFeature ? : object|boolean|string|RowResize|RowResizeConfig
981
+ /**
982
+ * <div class="external-example vertical" data-file="Grid/feature/Search.js"></div>
983
+ * ...
984
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/feature/Search)
985
+ */
986
+ searchFeature ? : object|boolean|string|Search|SearchConfig
987
+ /**
988
+ * Allows sorting of grid by clicking (or tapping) headers, also displays which columns grid is sorted by (numbered if
989
+ * using multisort). Use modifier keys for multisorting: [Ctrl/CMD + click] to add sorter, [Ctrl/CMD + Alt + click] to remove sorter.
990
+ * The actual sorting is done by the store, see [Store.sort()](https://bryntum.com/products/grid/docs/api/Core/data/mixin/StoreSort#function-sort).
991
+ * ...
992
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/feature/Sort)
993
+ */
994
+ sortFeature ? : object|boolean|string|Sort|SortConfig
995
+ /**
996
+ * This feature allows splitting the Grid into multiple views, either by using the cell context menu, or
997
+ * programmatically by calling [split()](https://bryntum.com/products/grid/docs/api/Grid/feature/Split#function-split).
998
+ * ...
999
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/feature/Split)
1000
+ */
1001
+ splitFeature ? : object|boolean|string|Split|SplitConfig
1002
+ /**
1003
+ * A feature which pins configurable content from a grid row to the top of the grid
1004
+ * while the row scrolls off the top but is still visible.
1005
+ * ...
1006
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/feature/StickyCells)
1007
+ */
1008
+ stickyCellsFeature ? : object|boolean|string|StickyCells|StickyCellsConfig
1009
+ /**
1010
+ * Stripes rows by adding alternating CSS classes to all row elements (`b-even` and `b-odd`).
1011
+ * ...
1012
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/feature/Stripe)
1013
+ */
1014
+ stripeFeature ? : object|boolean|string|Stripe|StripeConfig
1015
+ /**
1016
+ * Displays a summary row in the grid footer.
1017
+ * ...
1018
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/feature/Summary)
1019
+ */
1020
+ summaryFeature ? : object|boolean|string|Summary|SummaryConfig
1021
+ /**
1022
+ * Feature that makes the grid work more like a tree. Included by default in [TreeGrid](https://bryntum.com/products/grid/docs/api/Grid/view/TreeGrid). Requires
1023
+ * exactly one [TreeColumn](https://bryntum.com/products/grid/docs/api/Grid/column/TreeColumn) among grids columns. That column will have its renderer replaced with a
1024
+ * tree renderer that adds padding and icon to give the appearance of a tree. The original renderer is preserved and
1025
+ * also called.
1026
+ * ...
1027
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/feature/Tree)
1028
+ */
1029
+ treeFeature ? : object|boolean|string|Tree|TreeConfig
1030
+ /**
1031
+ * A feature that allows transforming a flat dataset (or the leaves of a hierarchical) into a tree by specifying a
1032
+ * record field per parent level. Parents are generated based on each leaf's value for those fields.
1033
+ * ...
1034
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/feature/TreeGroup)
1035
+ */
1036
+ treeGroupFeature ? : object|boolean|string|TreeGroup|TreeGroupConfig
1037
+
1038
+ }
1039
+
1040
+ @Component({
1041
+ selector : 'bryntum-grid',
1042
+ template : ''
1043
+ })
1044
+ export class BryntumGridComponent implements OnInit, OnDestroy {
1045
+
1046
+ public static instanceClass = Grid;
1047
+
1048
+ public static instanceName = 'Grid';
1049
+
1050
+ private static bryntumEvents: string[] = [
1051
+ 'onBeforeCancelCellEdit',
1052
+ 'onBeforeCancelRowEdit',
1053
+ 'onBeforeCellEditStart',
1054
+ 'onBeforeCellRangeDelete',
1055
+ 'onBeforeCellRangeEdit',
1056
+ 'onBeforeColumnDragStart',
1057
+ 'onBeforeColumnDropFinalize',
1058
+ 'onBeforeColumnResize',
1059
+ 'onBeforeCopy',
1060
+ 'onBeforeCSVExport',
1061
+ 'onBeforeDestroy',
1062
+ 'onBeforeExcelExport',
1063
+ 'onBeforeFillHandleDragStart',
1064
+ 'onBeforeFinishCellEdit',
1065
+ 'onBeforeFinishRowEdit',
1066
+ 'onBeforeHide',
1067
+ 'onBeforePaste',
1068
+ 'onBeforePdfExport',
1069
+ 'onBeforeRenderRow',
1070
+ 'onBeforeRenderRows',
1071
+ 'onBeforeRowCollapse',
1072
+ 'onBeforeRowExpand',
1073
+ 'onBeforeSelectionChange',
1074
+ 'onBeforeSetRecord',
1075
+ 'onBeforeShow',
1076
+ 'onBeforeStartRowEdit',
1077
+ 'onBeforeStateApply',
1078
+ 'onBeforeStateSave',
1079
+ 'onBeforeToggleGroup',
1080
+ 'onBeforeToggleNode',
1081
+ 'onCancelCellEdit',
1082
+ 'onCatchAll',
1083
+ 'onCellClick',
1084
+ 'onCellContextMenu',
1085
+ 'onCellDblClick',
1086
+ 'onCellMenuBeforeShow',
1087
+ 'onCellMenuItem',
1088
+ 'onCellMenuShow',
1089
+ 'onCellMenuToggleItem',
1090
+ 'onCellMouseEnter',
1091
+ 'onCellMouseLeave',
1092
+ 'onCellMouseOut',
1093
+ 'onCellMouseOver',
1094
+ 'onCollapse',
1095
+ 'onCollapseNode',
1096
+ 'onColumnDrag',
1097
+ 'onColumnDragStart',
1098
+ 'onColumnDrop',
1099
+ 'onColumnResize',
1100
+ 'onColumnResizeStart',
1101
+ 'onContextMenuItem',
1102
+ 'onContextMenuToggleItem',
1103
+ 'onCopy',
1104
+ 'onDataChange',
1105
+ 'onDestroy',
1106
+ 'onDirtyStateChange',
1107
+ 'onDragSelecting',
1108
+ 'onElementCreated',
1109
+ 'onExpand',
1110
+ 'onExpandNode',
1111
+ 'onFileDrop',
1112
+ 'onFillHandleBeforeDragFinalize',
1113
+ 'onFillHandleDrag',
1114
+ 'onFillHandleDragAbort',
1115
+ 'onFillHandleDragEnd',
1116
+ 'onFillHandleDragStart',
1117
+ 'onFinishCellEdit',
1118
+ 'onFinishRowEdit',
1119
+ 'onFocusIn',
1120
+ 'onFocusOut',
1121
+ 'onGridRowBeforeDragStart',
1122
+ 'onGridRowBeforeDropFinalize',
1123
+ 'onGridRowDrag',
1124
+ 'onGridRowDragAbort',
1125
+ 'onGridRowDragStart',
1126
+ 'onGridRowDrop',
1127
+ 'onHeaderClick',
1128
+ 'onHeaderMenuBeforeShow',
1129
+ 'onHeaderMenuItem',
1130
+ 'onHeaderMenuShow',
1131
+ 'onHeaderMenuToggleItem',
1132
+ 'onHide',
1133
+ 'onLockRows',
1134
+ 'onMouseOut',
1135
+ 'onMouseOver',
1136
+ 'onPaint',
1137
+ 'onPaste',
1138
+ 'onPdfExport',
1139
+ 'onReadOnly',
1140
+ 'onRecompose',
1141
+ 'onRenderRow',
1142
+ 'onRenderRows',
1143
+ 'onResize',
1144
+ 'onResponsive',
1145
+ 'onRowCollapse',
1146
+ 'onRowExpand',
1147
+ 'onRowMouseEnter',
1148
+ 'onRowMouseLeave',
1149
+ 'onScroll',
1150
+ 'onSelectionChange',
1151
+ 'onSelectionModeChange',
1152
+ 'onShow',
1153
+ 'onSplit',
1154
+ 'onSplitterCollapseClick',
1155
+ 'onSplitterDragEnd',
1156
+ 'onSplitterDragStart',
1157
+ 'onSplitterExpandClick',
1158
+ 'onStartCellEdit',
1159
+ 'onStartRowEdit',
1160
+ 'onSubGridCollapse',
1161
+ 'onSubGridExpand',
1162
+ 'onToggleGroup',
1163
+ 'onToggleNode',
1164
+ 'onToolClick',
1165
+ 'onUnlockRows',
1166
+ 'onUnsplit'
1167
+ ];
1168
+
1169
+ private static bryntumFeatureNames: string[] = [
1170
+ 'aiFilterFeature',
1171
+ 'cellCopyPasteFeature',
1172
+ 'cellEditFeature',
1173
+ 'cellMenuFeature',
1174
+ 'cellTooltipFeature',
1175
+ 'chartsFeature',
1176
+ 'columnAutoWidthFeature',
1177
+ 'columnDragToolbarFeature',
1178
+ 'columnPickerFeature',
1179
+ 'columnRenameFeature',
1180
+ 'columnReorderFeature',
1181
+ 'columnResizeFeature',
1182
+ 'excelExporterFeature',
1183
+ 'fileDropFeature',
1184
+ 'fillHandleFeature',
1185
+ 'filterFeature',
1186
+ 'filterBarFeature',
1187
+ 'groupFeature',
1188
+ 'groupSummaryFeature',
1189
+ 'headerMenuFeature',
1190
+ 'lockRowsFeature',
1191
+ 'mergeCellsFeature',
1192
+ 'pdfExportFeature',
1193
+ 'pinColumnsFeature',
1194
+ 'printFeature',
1195
+ 'quickFindFeature',
1196
+ 'regionResizeFeature',
1197
+ 'rowCopyPasteFeature',
1198
+ 'rowEditFeature',
1199
+ 'rowExpanderFeature',
1200
+ 'rowReorderFeature',
1201
+ 'rowResizeFeature',
1202
+ 'searchFeature',
1203
+ 'sortFeature',
1204
+ 'splitFeature',
1205
+ 'stickyCellsFeature',
1206
+ 'stripeFeature',
1207
+ 'summaryFeature',
1208
+ 'treeFeature',
1209
+ 'treeGroupFeature'
1210
+ ];
1211
+
1212
+ private static bryntumConfigs: string[] = BryntumGridComponent.bryntumFeatureNames.concat([
1213
+ 'adopt',
1214
+ 'alignSelf',
1215
+ 'animateFilterRemovals',
1216
+ 'animateRemovingRows',
1217
+ 'animateTreeNodeToggle',
1218
+ 'appendTo',
1219
+ 'ariaDescription',
1220
+ 'ariaLabel',
1221
+ 'autoHeight',
1222
+ 'bbar',
1223
+ 'bodyCls',
1224
+ 'bubbleEvents',
1225
+ 'callOnFunctions',
1226
+ 'catchEventHandlerExceptions',
1227
+ 'cellEllipsis',
1228
+ 'cls',
1229
+ 'collapsed',
1230
+ 'collapsible',
1231
+ 'color',
1232
+ 'column',
1233
+ 'columnLines',
1234
+ 'columns',
1235
+ 'config',
1236
+ 'contentElementCls',
1237
+ 'contextMenuTriggerEvent',
1238
+ 'data',
1239
+ 'dataField',
1240
+ 'dataset',
1241
+ 'defaultRegion',
1242
+ 'destroyStore',
1243
+ 'detectCSSCompatibilityIssues',
1244
+ 'disabled',
1245
+ 'disableGridColumnIdWarning',
1246
+ 'disableGridRowModelWarning',
1247
+ 'dock',
1248
+ 'drawer',
1249
+ 'elementAttributes',
1250
+ 'emptyText',
1251
+ 'enableSticky',
1252
+ 'enableTextSelection',
1253
+ 'enableUndoRedoKeys',
1254
+ 'extraData',
1255
+ 'fillLastColumn',
1256
+ 'fixedRowHeight',
1257
+ 'flex',
1258
+ 'footer',
1259
+ 'formulaProviders',
1260
+ 'fullRowRefresh',
1261
+ 'getRowHeight',
1262
+ 'header',
1263
+ 'height',
1264
+ 'hidden',
1265
+ 'hideFooters',
1266
+ 'hideHeaders',
1267
+ 'hideHorizontalScrollbar',
1268
+ 'hoverCls',
1269
+ 'icon',
1270
+ 'id',
1271
+ 'ignoreParentReadOnly',
1272
+ 'inputFieldAlign',
1273
+ 'insertBefore',
1274
+ 'insertFirst',
1275
+ 'keyMap',
1276
+ 'labelPosition',
1277
+ 'listeners',
1278
+ 'loadMask',
1279
+ 'loadMaskDefaults',
1280
+ 'loadMaskError',
1281
+ 'localizable',
1282
+ 'longPressTime',
1283
+ 'margin',
1284
+ 'maskDefaults',
1285
+ 'masked',
1286
+ 'maxHeight',
1287
+ 'maxWidth',
1288
+ 'minHeight',
1289
+ 'minWidth',
1290
+ 'monitorResize',
1291
+ 'owner',
1292
+ 'plugins',
1293
+ 'preserveFocusOnDatasetChange',
1294
+ 'preserveScroll',
1295
+ 'preserveScrollOnDatasetChange',
1296
+ 'preventTooltipOnTouch',
1297
+ 'readOnly',
1298
+ 'relayStoreEvents',
1299
+ 'rendition',
1300
+ 'resizable',
1301
+ 'resizeToFitIncludesHeader',
1302
+ 'responsiveLevels',
1303
+ 'ripple',
1304
+ 'rootElement',
1305
+ 'rowHeight',
1306
+ 'rowLines',
1307
+ 'rtl',
1308
+ 'scrollable',
1309
+ 'scrollerClass',
1310
+ 'scrollManager',
1311
+ 'selectionMode',
1312
+ 'showDirty',
1313
+ 'span',
1314
+ 'stateful',
1315
+ 'statefulEvents',
1316
+ 'stateId',
1317
+ 'stateProvider',
1318
+ 'stateSettings',
1319
+ 'store',
1320
+ 'strips',
1321
+ 'subGridConfigs',
1322
+ 'syncMask',
1323
+ 'tab',
1324
+ 'tabBarItems',
1325
+ 'tbar',
1326
+ 'title',
1327
+ 'tools',
1328
+ 'transition',
1329
+ 'transitionDuration',
1330
+ 'type',
1331
+ 'ui',
1332
+ 'weight',
1333
+ 'width'
1334
+ ]);
1335
+
1336
+ private static bryntumConfigsOnly: string[] = [
1337
+ 'adopt',
1338
+ 'animateFilterRemovals',
1339
+ 'animateRemovingRows',
1340
+ 'ariaDescription',
1341
+ 'ariaLabel',
1342
+ 'autoHeight',
1343
+ 'bbar',
1344
+ 'bodyCls',
1345
+ 'bubbleEvents',
1346
+ 'collapsible',
1347
+ 'color',
1348
+ 'config',
1349
+ 'contentElementCls',
1350
+ 'contextMenuTriggerEvent',
1351
+ 'dataField',
1352
+ 'defaultRegion',
1353
+ 'destroyStore',
1354
+ 'detectCSSCompatibilityIssues',
1355
+ 'disableGridColumnIdWarning',
1356
+ 'disableGridRowModelWarning',
1357
+ 'dock',
1358
+ 'drawer',
1359
+ 'elementAttributes',
1360
+ 'enableSticky',
1361
+ 'enableTextSelection',
1362
+ 'fillLastColumn',
1363
+ 'fixedRowHeight',
1364
+ 'footer',
1365
+ 'formulaProviders',
1366
+ 'fullRowRefresh',
1367
+ 'getRowHeight',
1368
+ 'header',
1369
+ 'hideHorizontalScrollbar',
1370
+ 'hoverCls',
1371
+ 'icon',
1372
+ 'ignoreParentReadOnly',
1373
+ 'listeners',
1374
+ 'loadMask',
1375
+ 'loadMaskDefaults',
1376
+ 'loadMaskError',
1377
+ 'localizable',
1378
+ 'maskDefaults',
1379
+ 'masked',
1380
+ 'monitorResize',
1381
+ 'owner',
1382
+ 'plugins',
1383
+ 'preserveFocusOnDatasetChange',
1384
+ 'preserveScrollOnDatasetChange',
1385
+ 'preventTooltipOnTouch',
1386
+ 'relayStoreEvents',
1387
+ 'resizable',
1388
+ 'resizeToFitIncludesHeader',
1389
+ 'responsiveLevels',
1390
+ 'ripple',
1391
+ 'rootElement',
1392
+ 'scrollerClass',
1393
+ 'scrollManager',
1394
+ 'showDirty',
1395
+ 'stateful',
1396
+ 'statefulEvents',
1397
+ 'stateId',
1398
+ 'stateProvider',
1399
+ 'strips',
1400
+ 'subGridConfigs',
1401
+ 'syncMask',
1402
+ 'tab',
1403
+ 'tabBarItems',
1404
+ 'tbar',
1405
+ 'type',
1406
+ 'ui',
1407
+ 'weight'
1408
+ ];
1409
+
1410
+ private static bryntumProps: string[] = BryntumGridComponent.bryntumFeatureNames.concat([
1411
+ 'alignSelf',
1412
+ 'animateTreeNodeToggle',
1413
+ 'appendTo',
1414
+ 'callOnFunctions',
1415
+ 'catchEventHandlerExceptions',
1416
+ 'cellEllipsis',
1417
+ 'cls',
1418
+ 'collapsed',
1419
+ 'column',
1420
+ 'columnLines',
1421
+ 'columns',
1422
+ 'data',
1423
+ 'dataset',
1424
+ 'disabled',
1425
+ 'emptyText',
1426
+ 'enableUndoRedoKeys',
1427
+ 'extraData',
1428
+ 'flex',
1429
+ 'focusVisible',
1430
+ 'hasChanges',
1431
+ 'height',
1432
+ 'hidden',
1433
+ 'hideFooters',
1434
+ 'hideHeaders',
1435
+ 'id',
1436
+ 'inputFieldAlign',
1437
+ 'insertBefore',
1438
+ 'insertFirst',
1439
+ 'keyMap',
1440
+ 'labelPosition',
1441
+ 'longPressTime',
1442
+ 'margin',
1443
+ 'maxHeight',
1444
+ 'maxWidth',
1445
+ 'minHeight',
1446
+ 'minWidth',
1447
+ 'originalStore',
1448
+ 'parent',
1449
+ 'preserveScroll',
1450
+ 'readOnly',
1451
+ 'rendition',
1452
+ 'rowHeight',
1453
+ 'rowLines',
1454
+ 'rtl',
1455
+ 'scrollable',
1456
+ 'selectedCell',
1457
+ 'selectedCells',
1458
+ 'selectedRecord',
1459
+ 'selectedRecords',
1460
+ 'selectedRows',
1461
+ 'selectionMode',
1462
+ 'span',
1463
+ 'state',
1464
+ 'stateSettings',
1465
+ 'store',
1466
+ 'title',
1467
+ 'tools',
1468
+ 'tooltip',
1469
+ 'transition',
1470
+ 'transitionDuration',
1471
+ 'width'
1472
+ ]);
1473
+
1474
+ private elementRef: ElementRef;
1475
+ public instance!: Grid;
1476
+
1477
+ private bryntumConfig = {
1478
+ adopt : undefined,
1479
+ appendTo : undefined,
1480
+ href : undefined,
1481
+ angularComponent : this,
1482
+ features : {},
1483
+ listeners : {}
1484
+ };
1485
+
1486
+ constructor(element: ElementRef) {
1487
+ this.elementRef = element;
1488
+ }
1489
+
1490
+ // Configs only
1491
+ @Input() adopt ! : HTMLElement|string;
1492
+ @Input() animateFilterRemovals ! : boolean;
1493
+ @Input() animateRemovingRows ! : boolean;
1494
+ @Input() ariaDescription ! : string;
1495
+ @Input() ariaLabel ! : string;
1496
+ @Input() autoHeight ! : boolean;
1497
+ @Input() bbar ! : (ContainerItemConfig|string)[]|ToolbarConfig|PagingToolbarConfig|null;
1498
+ @Input() bodyCls ! : string|object;
1499
+ @Input() bubbleEvents ! : object;
1500
+ @Input() collapsible ! : boolean|PanelCollapserConfig|PanelCollapserOverlayConfig;
1501
+ @Input() color ! : string;
1502
+ @Input() config ! : object;
1503
+ @Input() contentElementCls ! : string|object;
1504
+ @Input() contextMenuTriggerEvent ! : 'contextmenu'|'click'|'dblclick';
1505
+ @Input() dataField ! : string;
1506
+ @Input() defaultRegion ! : string;
1507
+ @Input() destroyStore ! : boolean;
1508
+ @Input() detectCSSCompatibilityIssues ! : boolean;
1509
+ @Input() disableGridColumnIdWarning ! : boolean;
1510
+ @Input() disableGridRowModelWarning ! : boolean;
1511
+ @Input() dock ! : 'top'|'bottom'|'left'|'right'|'start'|'end'|'header'|'pre-header'|object;
1512
+ @Input() drawer ! : boolean|{side?: 'start'|'left'|'end'|'right'|'top'|'bottom', size?: string|number, inline?: boolean, autoClose: { mousedown?: boolean|string, focusout?: boolean|string, mouseout?: string }, autoCloseDelay?: number};
1513
+ @Input() elementAttributes ! : Record<string, string|null>;
1514
+ @Input() enableSticky ! : boolean;
1515
+ @Input() enableTextSelection ! : boolean;
1516
+ @Input() fillLastColumn ! : boolean;
1517
+ @Input() fixedRowHeight ! : boolean;
1518
+ @Input() footer ! : {
1519
+ dock?: 'top'|'right'|'bottom'|'left'|'start'|'end'
1520
+ html?: string
1521
+ cls?: string
1522
+ }|string;
1523
+ @Input() formulaProviders ! : Record<string, FormulaProviderConfig>;
1524
+ @Input() fullRowRefresh ! : boolean;
1525
+ @Input() getRowHeight ! : (getRowHeight: { record: Model }) => number;
1526
+ @Input() header ! : string|boolean|PanelHeader;
1527
+ @Input() hideHorizontalScrollbar ! : boolean;
1528
+ @Input() hoverCls ! : string;
1529
+ @Input() icon ! : string|DomConfig;
1530
+ @Input() ignoreParentReadOnly ! : boolean;
1531
+ @Input() listeners ! : GridListeners;
1532
+ @Input() loadMask ! : string|MaskConfig|null;
1533
+ @Input() loadMaskDefaults ! : MaskConfig;
1534
+ @Input() loadMaskError ! : MaskConfig|Mask|boolean;
1535
+ @Input() localizable ! : boolean;
1536
+ @Input() maskDefaults ! : MaskConfig;
1537
+ @Input() masked ! : boolean|string|MaskConfig;
1538
+ @Input() monitorResize ! : boolean;
1539
+ @Input() owner ! : Widget|any;
1540
+ @Input() plugins ! : Function[];
1541
+ @Input() preserveFocusOnDatasetChange ! : boolean;
1542
+ @Input() preserveScrollOnDatasetChange ! : boolean;
1543
+ @Input() preventTooltipOnTouch ! : boolean;
1544
+ @Input() relayStoreEvents ! : boolean;
1545
+ @Input() resizable ! : boolean|{
1546
+ minWidth?: number
1547
+ maxWidth?: number
1548
+ minHeight?: number
1549
+ maxHeight?: number
1550
+ handles?: object
1551
+ };
1552
+ @Input() resizeToFitIncludesHeader ! : boolean;
1553
+ @Input() responsiveLevels ! : Record<string, number|string|ResponsiveLevelConfig>;
1554
+ @Input() ripple ! : boolean|{
1555
+ delegate?: string
1556
+ color?: string
1557
+ radius?: number
1558
+ clip?: string
1559
+ };
1560
+ @Input() rootElement ! : ShadowRoot|HTMLElement;
1561
+ @Input() scrollerClass ! : typeof Scroller;
1562
+ @Input() scrollManager ! : ScrollManagerConfig|ScrollManager;
1563
+ @Input() showDirty ! : boolean|{
1564
+ duringEdit?: boolean
1565
+ newRecord?: boolean
1566
+ };
1567
+ @Input() stateful ! : boolean|object|string[];
1568
+ @Input() statefulEvents ! : object|string[];
1569
+ @Input() stateId ! : string;
1570
+ @Input() stateProvider ! : StateProvider;
1571
+ @Input() strips ! : Record<string, ContainerItemConfig>;
1572
+ @Input() subGridConfigs ! : Record<string, SubGridConfig>;
1573
+ @Input() syncMask ! : string|MaskConfig|null;
1574
+ @Input() tab ! : boolean|TabConfig;
1575
+ @Input() tabBarItems ! : ToolbarItems[]|Widget[];
1576
+ @Input() tbar ! : (ContainerItemConfig|string)[]|ToolbarConfig|PagingToolbarConfig|null;
1577
+ @Input() type ! : 'grid';
1578
+ @Input() ui ! : 'plain'|'toolbar'|string|object;
1579
+ @Input() weight ! : number;
1580
+
1581
+ // Configs and properties
1582
+ @Input() alignSelf ! : string;
1583
+ @Input() animateTreeNodeToggle ! : boolean;
1584
+ @Input() appendTo ! : HTMLElement|string;
1585
+ @Input() callOnFunctions ! : boolean;
1586
+ @Input() catchEventHandlerExceptions ! : boolean;
1587
+ @Input() cellEllipsis ! : boolean;
1588
+ @Input() cls ! : string|object;
1589
+ @Input() collapsed ! : boolean;
1590
+ @Input() column ! : number;
1591
+ @Input() columnLines ! : boolean;
1592
+ @Input() columns ! : ColumnStore|GridColumnConfig[]|ColumnStoreConfig;
1593
+ @Input() data ! : object[]|Model[]|ModelConfig[];
1594
+ @Input() dataset ! : object|Record<string, string>;
1595
+ @Input() disabled ! : boolean|'inert';
1596
+ @Input() emptyText ! : string|EmptyTextDomConfig;
1597
+ @Input() enableUndoRedoKeys ! : boolean;
1598
+ @Input() extraData ! : any;
1599
+ @Input() flex ! : number|string;
1600
+ @Input() height ! : number|string;
1601
+ @Input() hidden ! : boolean;
1602
+ @Input() hideFooters ! : boolean;
1603
+ @Input() hideHeaders ! : boolean;
1604
+ @Input() id ! : string;
1605
+ @Input() inputFieldAlign ! : 'start'|'end';
1606
+ @Input() insertBefore ! : HTMLElement|string;
1607
+ @Input() insertFirst ! : HTMLElement|string;
1608
+ @Input() keyMap ! : Record<string, KeyMapConfig>;
1609
+ @Input() labelPosition ! : 'before'|'above'|'align-before'|'auto'|null;
1610
+ @Input() longPressTime ! : number;
1611
+ @Input() margin ! : number|string;
1612
+ @Input() maxHeight ! : string|number;
1613
+ @Input() maxWidth ! : string|number;
1614
+ @Input() minHeight ! : string|number;
1615
+ @Input() minWidth ! : string|number;
1616
+ @Input() preserveScroll ! : PreserveScrollOptions|boolean;
1617
+ @Input() readOnly ! : boolean;
1618
+ @Input() rendition ! : string|Record<string, string>|null;
1619
+ @Input() rowHeight ! : number;
1620
+ @Input() rowLines ! : boolean;
1621
+ @Input() rtl ! : boolean;
1622
+ @Input() scrollable ! : Scroller|boolean|ScrollerConfig;
1623
+ @Input() selectionMode ! : GridSelectionMode;
1624
+ @Input() span ! : number;
1625
+ @Input() stateSettings ! : {
1626
+ restoreUnconfiguredColumns?: boolean
1627
+ };
1628
+ @Input() store ! : Store|StoreConfig|AjaxStore|AjaxStoreConfig;
1629
+ @Input() title ! : string;
1630
+ @Input() tools ! : Record<string, Tool|ToolConfig>|null|Record<string, Tool>|Record<string, ToolConfig>;
1631
+ @Input() transition ! : {
1632
+ insertRecord?: boolean
1633
+ removeRecord?: boolean
1634
+ toggleColumn?: boolean
1635
+ expandCollapseColumn?: boolean
1636
+ toggleRegion?: boolean
1637
+ toggleTreeNode?: boolean
1638
+ toggleGroup?: boolean
1639
+ filterRemoval?: boolean
1640
+ };
1641
+ @Input() transitionDuration ! : number;
1642
+ @Input() width ! : number|string;
1643
+
1644
+ // Properties only
1645
+ @Input() focusVisible ! : boolean;
1646
+ @Input() hasChanges ! : boolean;
1647
+ @Input() originalStore ! : Store;
1648
+ @Input() parent ! : Widget;
1649
+ @Input() selectedCell ! : GridLocation|GridLocationConfig;
1650
+ @Input() selectedCells ! : GridLocation[]|GridLocationConfig[];
1651
+ @Input() selectedRecord ! : Model;
1652
+ @Input() selectedRecords ! : Model[]|number[];
1653
+ @Input() selectedRows ! : Model[]|number[];
1654
+ @Input() state ! : GridStateInfo;
1655
+ @Input() tooltip ! : string|TooltipConfig;
1656
+
1657
+ // Features
1658
+ @Input() aiFilterFeature ! : object|boolean|string|AIFilter|AIFilterConfig;
1659
+ @Input() cellCopyPasteFeature ! : object|boolean|string|CellCopyPaste|CellCopyPasteConfig;
1660
+ @Input() cellEditFeature ! : object|boolean|string|CellEdit|CellEditConfig;
1661
+ @Input() cellMenuFeature ! : object|boolean|string|CellMenu|CellMenuConfig;
1662
+ @Input() cellTooltipFeature ! : object|boolean|string|CellTooltip|CellTooltipConfig;
1663
+ @Input() chartsFeature ! : object|boolean|string|Charts|ChartsConfig;
1664
+ @Input() columnAutoWidthFeature ! : object|boolean|string|ColumnAutoWidth|ColumnAutoWidthConfig;
1665
+ @Input() columnDragToolbarFeature ! : object|boolean|string|ColumnDragToolbar|ColumnDragToolbarConfig;
1666
+ @Input() columnPickerFeature ! : object|boolean|string|ColumnPicker|ColumnPickerConfig;
1667
+ @Input() columnRenameFeature ! : object|boolean|string|ColumnRename|ColumnRenameConfig;
1668
+ @Input() columnReorderFeature ! : object|boolean|string|ColumnReorder|ColumnReorderConfig;
1669
+ @Input() columnResizeFeature ! : object|boolean|string|ColumnResize|ColumnResizeConfig;
1670
+ @Input() excelExporterFeature ! : object|boolean|string|ExcelExporter|ExcelExporterConfig;
1671
+ @Input() fileDropFeature ! : object|boolean|string|FileDrop|FileDropConfig;
1672
+ @Input() fillHandleFeature ! : object|boolean|string|FillHandle|FillHandleConfig;
1673
+ @Input() filterFeature ! : object|boolean|string|Filter|FilterConfig;
1674
+ @Input() filterBarFeature ! : object|boolean|string|FilterBar|FilterBarConfig;
1675
+ @Input() groupFeature ! : object|boolean|string|Group|GroupConfig;
1676
+ @Input() groupSummaryFeature ! : object|boolean|string|GroupSummary|GroupSummaryConfig;
1677
+ @Input() headerMenuFeature ! : object|boolean|string|HeaderMenu|HeaderMenuConfig;
1678
+ @Input() lockRowsFeature ! : object|boolean|string|LockRows|LockRowsConfig;
1679
+ @Input() mergeCellsFeature ! : object|boolean|string|MergeCells|MergeCellsConfig;
1680
+ @Input() pdfExportFeature ! : object|boolean|string|PdfExport|PdfExportConfig;
1681
+ @Input() pinColumnsFeature ! : object|boolean|string|PinColumns|PinColumnsConfig;
1682
+ @Input() printFeature ! : object|boolean|string|Print|PrintConfig;
1683
+ @Input() quickFindFeature ! : object|boolean|string|QuickFind|QuickFindConfig;
1684
+ @Input() regionResizeFeature ! : object|boolean|string|RegionResize|RegionResizeConfig;
1685
+ @Input() rowCopyPasteFeature ! : object|boolean|string|RowCopyPaste|RowCopyPasteConfig;
1686
+ @Input() rowEditFeature ! : object|boolean|string|RowEdit|RowEditConfig;
1687
+ @Input() rowExpanderFeature ! : object|boolean|string|RowExpander|RowExpanderConfig;
1688
+ @Input() rowReorderFeature ! : object|boolean|string|RowReorder|RowReorderConfig;
1689
+ @Input() rowResizeFeature ! : object|boolean|string|RowResize|RowResizeConfig;
1690
+ @Input() searchFeature ! : object|boolean|string|Search|SearchConfig;
1691
+ @Input() sortFeature ! : object|boolean|string|Sort|SortConfig;
1692
+ @Input() splitFeature ! : object|boolean|string|Split|SplitConfig;
1693
+ @Input() stickyCellsFeature ! : object|boolean|string|StickyCells|StickyCellsConfig;
1694
+ @Input() stripeFeature ! : object|boolean|string|Stripe|StripeConfig;
1695
+ @Input() summaryFeature ! : object|boolean|string|Summary|SummaryConfig;
1696
+ @Input() treeFeature ! : object|boolean|string|Tree|TreeConfig;
1697
+ @Input() treeGroupFeature ! : object|boolean|string|TreeGroup|TreeGroupConfig;
1698
+
1699
+ // Events emitters
1700
+ /**
1701
+ * Fires on the owning Grid before the cell editing is canceled, return `false` to prevent cancellation.
1702
+ * @param {object} event Event object
1703
+ * @param {Grid.view.Grid} event.source Owner grid
1704
+ * @param {Grid.util.GridLocation} event.editorContext Editing context
1705
+ */
1706
+ @Output() onBeforeCancelCellEdit: any = new EventEmitter<((event: { source: Grid, editorContext: GridLocation }) => Promise<boolean>|boolean|void)|string>();
1707
+ /**
1708
+ * 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.
1709
+ * ...
1710
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#event-beforeCancelRowEdit)
1711
+ * @param {object} event Event object
1712
+ * @param {Grid.view.Grid} event.grid Target grid
1713
+ * @param {RowEditorContext} event.editorContext Editing context
1714
+ */
1715
+ @Output() onBeforeCancelRowEdit: any = new EventEmitter<((event: { grid: Grid, editorContext: RowEditorContext }) => Promise<boolean>|boolean|void)|string>();
1716
+ /**
1717
+ * Fires on the owning Grid before editing starts, return `false` to prevent editing
1718
+ * @param {object} event Event object
1719
+ * @param {Grid.view.Grid} event.source Owner grid
1720
+ * @param {CellEditorContext} event.editorContext Editing context
1721
+ */
1722
+ @Output() onBeforeCellEditStart: any = new EventEmitter<((event: { source: Grid, editorContext: CellEditorContext }) => Promise<boolean>|boolean|void)|string>();
1723
+ /**
1724
+ * Fires on the owning Grid before deleting a range of selected cell values by pressing `Backspace` or `Del`
1725
+ * buttons while [autoEdit](https://bryntum.com/products/grid/docs/api/Grid/feature/CellEdit#config-autoEdit) is set to `true`. Return `false` to prevent editing.
1726
+ * @param {object} event Event object
1727
+ * @param {Grid.view.Grid} event.source Owner grid
1728
+ * @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).
1729
+ */
1730
+ @Output() onBeforeCellRangeDelete: any = new EventEmitter<((event: { source: Grid, gridSelection: (GridLocation|Model)[] }) => Promise<boolean>|boolean|void)|string>();
1731
+ /**
1732
+ * Fires for each selected record on the owning Grid before editing a range of selected cell values
1733
+ * @param {object} event Event object
1734
+ * @param {Core.data.Model} event.record Current selected record from the range
1735
+ * @param {string} event.field The field being changed
1736
+ * @param {any} event.value The value being set
1737
+ */
1738
+ @Output() onBeforeCellRangeEdit: any = new EventEmitter<((event: { record: Model, field: string, value: any }) => Promise<boolean>|boolean|void)|string>();
1739
+ /**
1740
+ * This event is fired prior to starting a column drag gesture. The drag is canceled if a listener returns `false`.
1741
+ * @param {object} event Event object
1742
+ * @param {Grid.view.Grid} event.source The grid instance.
1743
+ * @param {Grid.column.Column} event.column The dragged column.
1744
+ * @param {Event} event.event The browser event.
1745
+ */
1746
+ @Output() onBeforeColumnDragStart: any = new EventEmitter<((event: { source: Grid, column: Column, event: Event }) => Promise<boolean>|boolean|void)|string>();
1747
+ /**
1748
+ * This event is fired when a column is dropped, and you can return false from a listener to abort the operation.
1749
+ * @param {object} event Event object
1750
+ * @param {Grid.view.Grid} event.source The grid instance.
1751
+ * @param {Grid.column.Column} event.column The dragged column.
1752
+ * @param {Grid.column.Column} event.insertBefore The column before which the dragged column will be inserted.
1753
+ * @param {Grid.column.Column} event.newParent The new parent column.
1754
+ * @param {Event} event.event The browser event.
1755
+ * @param {string} event.region The region where the column was dropped.
1756
+ */
1757
+ @Output() onBeforeColumnDropFinalize: any = new EventEmitter<((event: { source: Grid, column: Column, insertBefore: Column, newParent: Column, event: Event, region: string }) => Promise<boolean>|boolean|void)|string>();
1758
+ /**
1759
+ * This event is fired prior to starting a column resize gesture. The resize is canceled if a listener returns
1760
+ * `false`.
1761
+ * @param {object} event Event object
1762
+ * @param {Grid.view.Grid} event.source The grid instance
1763
+ * @param {Grid.column.Column} event.column The column
1764
+ * @param {Event} event.domEvent The browser event
1765
+ */
1766
+ @Output() onBeforeColumnResize: any = new EventEmitter<((event: { source: Grid, column: Column, domEvent: Event }) => Promise<boolean>|boolean|void)|string>();
1767
+ /**
1768
+ * Fires on the owning Grid before a copy action is performed, return `false` to prevent the action
1769
+ * @param {object} event Event object
1770
+ * @param {Grid.view.Grid} event.source Owner grid
1771
+ * @param {Grid.util.GridLocation[]} event.cells The cells about to be copied or cut
1772
+ * @param {string} event.data The string data about to be copied or cut
1773
+ * @param {boolean} event.isCut `true` if this is a cut action
1774
+ * @param {string} event.entityName 'cell' to distinguish this event from other beforeCopy events
1775
+ */
1776
+ @Output() onBeforeCopy: any = new EventEmitter<((event: { source: Grid, cells: GridLocation[], data: string, isCut: boolean, entityName: string }) => Promise<boolean>|boolean|void)|string>();
1777
+ /**
1778
+ * Fires on the owning Grid before CSV export starts. Return `false` to cancel the export.
1779
+ * @param {object} event Event object
1780
+ * @param {ExportConfig} event.config Export config
1781
+ * @param {Grid.column.Column[]} event.columns An array of columns to export
1782
+ * @param {Core.data.Model[]} event.rows An array of records to export
1783
+ * @param {string} event.lineDelimiter The CSV delimiter to separate lines
1784
+ * @param {string} event.columnDelimiter The CSV delimiter to separate values on one line
1785
+ */
1786
+ @Output() onBeforeCSVExport: any = new EventEmitter<((event: { config: ExportConfig, columns: Column[], rows: Model[], lineDelimiter: string, columnDelimiter: string }) => Promise<boolean>|boolean|void)|string>();
1787
+ /**
1788
+ * Fires before an object is destroyed.
1789
+ * @param {object} event Event object
1790
+ * @param {Core.Base} event.source The Object that is being destroyed.
1791
+ */
1792
+ @Output() onBeforeDestroy: any = new EventEmitter<((event: { source: Base }) => void)|string>();
1793
+ /**
1794
+ * Fires on the owning Grid before Excel export starts. Return `false` to cancel the export.
1795
+ * @param {object} event Event object
1796
+ * @param {ExportConfig} event.config Export config
1797
+ * @param {XLSColumn[]} event.columns An array of columns to export
1798
+ * @param {any[][]} event.rows An array of records to export
1799
+ */
1800
+ @Output() onBeforeExcelExport: any = new EventEmitter<((event: { config: ExportConfig, columns: XLSColumn[], rows: any[] }) => Promise<boolean>|boolean|void)|string>();
1801
+ /**
1802
+ * Fired before dragging of the FillHandle starts, return `false` to prevent the drag operation.
1803
+ * @param {object} event Event object
1804
+ * @param {Grid.util.GridLocation} event.cell Information about the column / record
1805
+ * @param {MouseEvent} event.domEvent The raw DOM event
1806
+ */
1807
+ @Output() onBeforeFillHandleDragStart: any = new EventEmitter<((event: { cell: GridLocation, domEvent: MouseEvent }) => Promise<boolean>|boolean|void)|string>();
1808
+ /**
1809
+ * 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.
1810
+ * @param {object} event Event object
1811
+ * @param {Grid.view.Grid} event.grid Target grid
1812
+ * @param {CellEditorContext} event.editorContext Editing context
1813
+ */
1814
+ @Output() onBeforeFinishCellEdit: any = new EventEmitter<((event: { grid: Grid, editorContext: CellEditorContext }) => void)|string>();
1815
+ /**
1816
+ * Fires on the owning Grid before the row editing is finished, return false to signal that the value is invalid and editing should not be finalized.
1817
+ * ...
1818
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#event-beforeFinishRowEdit)
1819
+ * @param {object} event Event object
1820
+ * @param {Grid.view.Grid} event.grid Target grid
1821
+ * @param {RowEditorContext} event.editorContext Editing context
1822
+ */
1823
+ @Output() onBeforeFinishRowEdit: any = new EventEmitter<((event: { grid: Grid, editorContext: RowEditorContext }) => Promise<boolean>|boolean|void)|string>();
1824
+ /**
1825
+ * Triggered before a widget is hidden. Return `false` to prevent the action.
1826
+ * @param {object} event Event object
1827
+ * @param {Core.widget.Widget} event.source The widget being hidden.
1828
+ */
1829
+ @Output() onBeforeHide: any = new EventEmitter<((event: { source: Widget }) => Promise<boolean>|boolean|void)|string>();
1830
+ /**
1831
+ * Fires on the owning Grid before a paste action is performed, return `false` to prevent the action
1832
+ * @param {object} event Event object
1833
+ * @param {Grid.view.Grid} event.source Owner grid
1834
+ * @param {string} event.clipboardData The clipboardData about to be pasted
1835
+ * @param {Grid.util.GridLocation} event.targetCell The cell from which the paste will be started
1836
+ * @param {string} event.entityName 'cell' to distinguish this event from other beforePaste events
1837
+ * @param {string} event.text The raw text from clipboard
1838
+ */
1839
+ @Output() onBeforePaste: any = new EventEmitter<((event: { source: Grid, clipboardData: string, targetCell: GridLocation, entityName: string, text: string }) => Promise<boolean>|boolean|void)|string>();
1840
+ /**
1841
+ * Fires on the owning Grid before export started. Return `false` to cancel the export.
1842
+ * @param {object} event Event object
1843
+ * @param {PdfExportConfig} event.config Export config
1844
+ */
1845
+ @Output() onBeforePdfExport: any = new EventEmitter<((event: { config: PdfExportConfig }) => Promise<boolean>|boolean|void)|string>();
1846
+ /**
1847
+ * Fires before a row is rendered.
1848
+ * @param {object} event Event object
1849
+ * @param {Grid.view.Grid} event.source The firing Grid instance.
1850
+ * @param {Grid.row.Row} event.row The row about to be rendered.
1851
+ * @param {Core.data.Model} event.record The record for the row.
1852
+ * @param {number} event.recordIndex The zero-based index of the record.
1853
+ */
1854
+ @Output() onBeforeRenderRow: any = new EventEmitter<((event: { source: Grid, row: Row, record: Model, recordIndex: number }) => void)|string>();
1855
+ /**
1856
+ * Grid rows are about to be rendered
1857
+ * @param {object} event Event object
1858
+ * @param {Grid.view.Grid} event.source This grid.
1859
+ */
1860
+ @Output() onBeforeRenderRows: any = new EventEmitter<((event: { source: Grid }) => void)|string>();
1861
+ /**
1862
+ * This event fires before row collapse is started.
1863
+ * ...
1864
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#event-beforeRowCollapse)
1865
+ * @param {object} event Event object
1866
+ * @param {Core.data.Model} event.record Record
1867
+ */
1868
+ @Output() onBeforeRowCollapse: any = new EventEmitter<((event: { record: Model }) => Promise<boolean>|boolean|void)|string>();
1869
+ /**
1870
+ * This event fires before row expand is started.
1871
+ * ...
1872
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#event-beforeRowExpand)
1873
+ * @param {object} event Event object
1874
+ * @param {Core.data.Model} event.record Record
1875
+ */
1876
+ @Output() onBeforeRowExpand: any = new EventEmitter<((event: { record: Model }) => Promise<boolean>|boolean|void)|string>();
1877
+ /**
1878
+ * Fires before the selection changes. Returning `false` from a listener prevents the change
1879
+ * @param {object} event Event object
1880
+ * @param {string} event.action `'select'`/`'deselect'`
1881
+ * @param {'row','cell'} event.mode `'row'`/`'cell'`
1882
+ * @param {Grid.view.Grid} event.source
1883
+ * @param {Core.data.Model[]} event.deselected The records to be deselected in this operation.
1884
+ * @param {Core.data.Model[]} event.selected The records to be selected in this operation.
1885
+ * @param {Core.data.Model[]} event.selection The records in the current selection, before applying `selected` and `deselected`
1886
+ * @param {Grid.util.GridLocation[]} event.deselectedCells The cells to be deselected in this operation.
1887
+ * @param {Grid.util.GridLocation[]} event.selectedCells The cells to be selected in this operation.
1888
+ * @param {Grid.util.GridLocation[]} event.cellSelection The cells in the current selection, before applying `selectedCells` and `deselectedCells`
1889
+ */
1890
+ @Output() onBeforeSelectionChange: any = new EventEmitter<((event: { action: string, mode: 'row'|'cell', source: Grid, deselected: Model[], selected: Model[], selection: Model[], deselectedCells: GridLocation[], selectedCells: GridLocation[], cellSelection: GridLocation[] }) => Promise<boolean>|boolean|void)|string>();
1891
+ /**
1892
+ * Fired before this container will load record values into its child fields. This is useful if you
1893
+ * want to modify the UI before data is loaded (e.g. set some input field to be readonly)
1894
+ * @param {object} event Event object
1895
+ * @param {Core.widget.Container} event.source The container
1896
+ * @param {Core.data.Model} event.record The record
1897
+ */
1898
+ @Output() onBeforeSetRecord: any = new EventEmitter<((event: { source: Container, record: Model }) => void)|string>();
1899
+ /**
1900
+ * Triggered before a widget is shown. Return `false` to prevent the action.
1901
+ * @param {object} event Event object
1902
+ * @param {Core.widget.Widget,any} event.source The widget being shown
1903
+ */
1904
+ @Output() onBeforeShow: any = new EventEmitter<((event: { source: Widget|any }) => Promise<boolean>|boolean|void)|string>();
1905
+ /**
1906
+ * Fires on the owning Grid before editing starts, return `false` to prevent editing
1907
+ * @param {object} event Event object
1908
+ * @param {Grid.view.Grid} event.source Owner grid
1909
+ * @param {RowEditorContext} event.editorContext Editing context
1910
+ */
1911
+ @Output() onBeforeStartRowEdit: any = new EventEmitter<((event: { source: Grid, editorContext: RowEditorContext }) => Promise<boolean>|boolean|void)|string>();
1912
+ /**
1913
+ * Fired before state is applied to the source. Allows editing the state object or preventing the operation.
1914
+ * @param {object} event Event object
1915
+ * @param {GridStateInfo} event.state State object config
1916
+ */
1917
+ @Output() onBeforeStateApply: any = new EventEmitter<((event: { state: GridStateInfo }) => Promise<boolean>|boolean|void)|string>();
1918
+ /**
1919
+ * Fired before state is saved by the StateProvider. Allows editing the state object or preventing the operation.
1920
+ * @param {object} event Event object
1921
+ * @param {GridStateInfo} event.state State object config
1922
+ */
1923
+ @Output() onBeforeStateSave: any = new EventEmitter<((event: { state: GridStateInfo }) => Promise<boolean>|boolean|void)|string>();
1924
+ /**
1925
+ * Fired when a group is going to be expanded or collapsed using the UI.
1926
+ * Returning `false` from a listener prevents the operation
1927
+ * @param {object} event Event object
1928
+ * @param {Core.data.Model} event.groupRecord [DEPRECATED] Use `groupRecords` param instead
1929
+ * @param {Core.data.Model[]} event.groupRecords The group records being toggled
1930
+ * @param {boolean} event.collapse Collapsed (true) or expanded (false)
1931
+ * @param {Event} event.domEvent The user interaction event (eg a `click` event) if the toggle request was instigated by user interaction.
1932
+ */
1933
+ @Output() onBeforeToggleGroup: any = new EventEmitter<((event: { groupRecord: Model, groupRecords: Model[], collapse: boolean, domEvent: Event }) => Promise<boolean>|boolean|void)|string>();
1934
+ /**
1935
+ * Fired before a parent node record toggles its collapsed state.
1936
+ * @param {object} event Event object
1937
+ * @param {Grid.view.Grid} event.source The firing Grid instance.
1938
+ * @param {Core.data.Model} event.record The record being toggled.
1939
+ * @param {boolean} event.collapse `true` if the node is being collapsed.
1940
+ */
1941
+ @Output() onBeforeToggleNode: any = new EventEmitter<((event: { source: Grid, record: Model, collapse: boolean }) => void)|string>();
1942
+ /**
1943
+ * Fires on the owning Grid when editing is cancelled
1944
+ * @param {object} event Event object
1945
+ * @param {Grid.view.Grid} event.source Owner grid
1946
+ * @param {Grid.util.GridLocation} event.editorContext Editing context
1947
+ * @param {Event} event.event Included if the cancellation was triggered by a DOM event
1948
+ */
1949
+ @Output() onCancelCellEdit: any = new EventEmitter<((event: { source: Grid, editorContext: GridLocation, event: Event }) => void)|string>();
1950
+ /**
1951
+ * Fires when any other event is fired from the object.
1952
+ * ...
1953
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#event-catchAll)
1954
+ * @param {object} event Event object
1955
+ * @param {{[key: string]: any, type: string}} event.event The Object that contains event details
1956
+ * @param {string} event.event.type The type of the event which is caught by the listener
1957
+ */
1958
+ @Output() onCatchAll: any = new EventEmitter<((event: {[key: string]: any, type: string}) => void)|string>();
1959
+ /**
1960
+ * Fired when user clicks in a grid cell
1961
+ * @param {object} event Event object
1962
+ * @param {Grid.view.Grid} event.grid The grid instance
1963
+ * @param {Core.data.Model} event.record The record representing the row
1964
+ * @param {Grid.column.Column} event.column The column to which the cell belongs
1965
+ * @param {HTMLElement} event.cellElement The cell HTML element
1966
+ * @param {HTMLElement} event.target The target element
1967
+ * @param {MouseEvent} event.event The native DOM event
1968
+ */
1969
+ @Output() onCellClick: any = new EventEmitter<((event: { grid: Grid, record: Model, column: Column, cellElement: HTMLElement, target: HTMLElement, event: MouseEvent }) => void)|string>();
1970
+ /**
1971
+ * Fired when user activates contextmenu in a grid cell
1972
+ * @param {object} event Event object
1973
+ * @param {Grid.view.Grid} event.grid The grid instance
1974
+ * @param {Core.data.Model} event.record The record representing the row
1975
+ * @param {Grid.column.Column} event.column The column to which the cell belongs
1976
+ * @param {HTMLElement} event.cellElement The cell HTML element
1977
+ * @param {HTMLElement} event.target The target element
1978
+ * @param {MouseEvent} event.event The native DOM event
1979
+ */
1980
+ @Output() onCellContextMenu: any = new EventEmitter<((event: { grid: Grid, record: Model, column: Column, cellElement: HTMLElement, target: HTMLElement, event: MouseEvent }) => void)|string>();
1981
+ /**
1982
+ * Fired when user double clicks a grid cell
1983
+ * @param {object} event Event object
1984
+ * @param {Grid.view.Grid} event.grid The grid instance
1985
+ * @param {Core.data.Model} event.record The record representing the row
1986
+ * @param {Grid.column.Column} event.column The column to which the cell belongs
1987
+ * @param {HTMLElement} event.cellElement The cell HTML element
1988
+ * @param {HTMLElement} event.target The target element
1989
+ * @param {MouseEvent} event.event The native DOM event
1990
+ */
1991
+ @Output() onCellDblClick: any = new EventEmitter<((event: { grid: Grid, record: Model, column: Column, cellElement: HTMLElement, target: HTMLElement, event: MouseEvent }) => void)|string>();
1992
+ /**
1993
+ * This event fires on the owning grid before the context menu is shown for a cell.
1994
+ * Allows manipulation of the items to show in the same way as in the [processItems](https://bryntum.com/products/grid/docs/api/Grid/feature/CellMenu#config-processItems).
1995
+ * ...
1996
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#event-cellMenuBeforeShow)
1997
+ * @param {object} event Event object
1998
+ * @param {Grid.view.Grid} event.source The grid
1999
+ * @param {Core.widget.Menu} event.menu The menu
2000
+ * @param {Record<string, MenuItemEntry>} event.items Menu item configs
2001
+ * @param {Grid.column.Column} event.column Column
2002
+ * @param {Core.data.Model} event.record Record
2003
+ */
2004
+ @Output() onCellMenuBeforeShow: any = new EventEmitter<((event: { source: Grid, menu: Menu, items: Record<string, MenuItemEntry>, column: Column, record: Model }) => Promise<boolean>|boolean|void)|string>();
2005
+ /**
2006
+ * This event fires on the owning grid when an item is selected in the cell context menu.
2007
+ * @param {object} event Event object
2008
+ * @param {Grid.view.Grid} event.source The grid
2009
+ * @param {Core.widget.Menu} event.menu The menu
2010
+ * @param {Core.widget.MenuItem} event.item Selected menu item
2011
+ * @param {Grid.column.Column} event.column Column
2012
+ * @param {Core.data.Model} event.record Record
2013
+ */
2014
+ @Output() onCellMenuItem: any = new EventEmitter<((event: { source: Grid, menu: Menu, item: MenuItem, column: Column, record: Model }) => void)|string>();
2015
+ /**
2016
+ * This event fires on the owning grid after the context menu is shown for a cell.
2017
+ * @param {object} event Event object
2018
+ * @param {Grid.view.Grid} event.source The grid
2019
+ * @param {Core.widget.Menu} event.menu The menu
2020
+ * @param {Record<string, MenuItemEntry>} event.items Menu item configs
2021
+ * @param {Grid.column.Column} event.column Column
2022
+ * @param {Core.data.Model} event.record Record
2023
+ */
2024
+ @Output() onCellMenuShow: any = new EventEmitter<((event: { source: Grid, menu: Menu, items: Record<string, MenuItemEntry>, column: Column, record: Model }) => void)|string>();
2025
+ /**
2026
+ * This event fires on the owning grid when a check item is toggled in the cell context menu.
2027
+ * @param {object} event Event object
2028
+ * @param {Grid.view.Grid} event.source The grid
2029
+ * @param {Core.widget.Menu} event.menu The menu
2030
+ * @param {Core.widget.MenuItem} event.item Selected menu item
2031
+ * @param {Grid.column.Column} event.column Column
2032
+ * @param {Core.data.Model} event.record Record
2033
+ * @param {boolean} event.checked Checked or not
2034
+ */
2035
+ @Output() onCellMenuToggleItem: any = new EventEmitter<((event: { source: Grid, menu: Menu, item: MenuItem, column: Column, record: Model, checked: boolean }) => void)|string>();
2036
+ /**
2037
+ * Fired when the mouse enters a cell
2038
+ * @param {object} event Event object
2039
+ * @param {Grid.view.Grid} event.source The grid instance
2040
+ * @param {Core.data.Model} event.record The record representing the hovered cell
2041
+ * @param {Grid.column.Column} event.column The column currently hovered
2042
+ * @param {HTMLElement} event.cellElement The cell HTML element
2043
+ * @param {MouseEvent} event.event The native DOM event
2044
+ */
2045
+ @Output() onCellMouseEnter: any = new EventEmitter<((event: { source: Grid, record: Model, column: Column, cellElement: HTMLElement, event: MouseEvent }) => void)|string>();
2046
+ /**
2047
+ * Fired when the mouse leaves a cell
2048
+ * @param {object} event Event object
2049
+ * @param {Grid.view.Grid} event.source The grid instance
2050
+ * @param {Core.data.Model} event.record The record representing the cell that the mouse left
2051
+ * @param {Grid.column.Column} event.column The column representing the cell that the mouse left
2052
+ * @param {HTMLElement} event.cellElement The cell HTML element that the mouse left
2053
+ * @param {MouseEvent} event.event The native DOM event
2054
+ */
2055
+ @Output() onCellMouseLeave: any = new EventEmitter<((event: { source: Grid, record: Model, column: Column, cellElement: HTMLElement, event: MouseEvent }) => void)|string>();
2056
+ /**
2057
+ * Fired when a user moves the mouse out of a grid cell
2058
+ * @param {object} event Event object
2059
+ * @param {Grid.view.Grid} event.grid The grid instance
2060
+ * @param {Core.data.Model} event.record The record representing the row
2061
+ * @param {Grid.column.Column} event.column The column to which the cell belongs
2062
+ * @param {HTMLElement} event.cellElement The cell HTML element
2063
+ * @param {HTMLElement} event.target The target element
2064
+ * @param {MouseEvent} event.event The native DOM event
2065
+ */
2066
+ @Output() onCellMouseOut: any = new EventEmitter<((event: { grid: Grid, record: Model, column: Column, cellElement: HTMLElement, target: HTMLElement, event: MouseEvent }) => void)|string>();
2067
+ /**
2068
+ * Fired when user moves the mouse over a grid cell
2069
+ * @param {object} event Event object
2070
+ * @param {Grid.view.Grid} event.grid The grid instance
2071
+ * @param {Core.data.Model} event.record The record representing the row
2072
+ * @param {Grid.column.Column} event.column The column to which the cell belongs
2073
+ * @param {HTMLElement} event.cellElement The cell HTML element
2074
+ * @param {HTMLElement} event.target The target element
2075
+ * @param {MouseEvent} event.event The native DOM event
2076
+ */
2077
+ @Output() onCellMouseOver: any = new EventEmitter<((event: { grid: Grid, record: Model, column: Column, cellElement: HTMLElement, target: HTMLElement, event: MouseEvent }) => void)|string>();
2078
+ /**
2079
+ * Fires when a Panel is collapsed using the [collapsible](https://bryntum.com/products/grid/docs/api/Core/widget/Panel#config-collapsible) setting.
2080
+ * @param {object} event Event object
2081
+ * @param {Core.widget.Panel} event.source This Panel.
2082
+ */
2083
+ @Output() onCollapse: any = new EventEmitter<((event: { source: Panel }) => void)|string>();
2084
+ /**
2085
+ * Fired before a parent node record is collapsed.
2086
+ * @param {object} event Event object
2087
+ * @param {Grid.view.Grid} event.source The firing Grid instance.
2088
+ * @param {Core.data.Model} event.record The record which has been collapsed.
2089
+ */
2090
+ @Output() onCollapseNode: any = new EventEmitter<((event: { source: Grid, record: Model }) => void)|string>();
2091
+ /**
2092
+ * This event is fired when a column is being dragged, and you can set the `valid` flag on the `context` object
2093
+ * to indicate whether the drop position is valid or not.
2094
+ * @param {object} event Event object
2095
+ * @param {Grid.view.Grid} event.source The grid instance.
2096
+ * @param {Grid.column.Column} event.column The dragged column.
2097
+ * @param {Grid.column.Column} event.insertBefore The column before which the dragged column will be inserted (if not last).
2098
+ * @param {Event} event.event The browser event.
2099
+ * @param {object} event.context
2100
+ * @param {boolean} event.context.valid Set this to `true` or `false` to indicate whether the drop position is valid.
2101
+ */
2102
+ @Output() onColumnDrag: any = new EventEmitter<((event: { source: Grid, column: Column, insertBefore: Column, event: Event, context: { valid: boolean } }) => void)|string>();
2103
+ /**
2104
+ * This event is fired when a column drag gesture has started.
2105
+ * @param {object} event Event object
2106
+ * @param {Grid.view.Grid} event.source The grid instance.
2107
+ * @param {Grid.column.Column} event.column The dragged column.
2108
+ * @param {Event} event.event The browser event.
2109
+ */
2110
+ @Output() onColumnDragStart: any = new EventEmitter<((event: { source: Grid, column: Column, event: Event }) => void)|string>();
2111
+ /**
2112
+ * This event is always fired after a column is dropped. The `valid` param is `true` if the operation was not
2113
+ * vetoed and the column was moved in the column store.
2114
+ * @param {object} event Event object
2115
+ * @param {Grid.view.Grid} event.source The grid instance.
2116
+ * @param {Grid.column.Column} event.column The dragged column.
2117
+ * @param {Grid.column.Column} event.insertBefore The column before which the dragged column will be inserted.
2118
+ * @param {Grid.column.Column} event.newParent The new parent column.
2119
+ * @param {boolean} event.valid `true` if the operation was not vetoed.
2120
+ * @param {Event} event.event The browser event.
2121
+ * @param {string} event.region The region where the column was dropped.
2122
+ */
2123
+ @Output() onColumnDrop: any = new EventEmitter<((event: { source: Grid, column: Column, insertBefore: Column, newParent: Column, valid: boolean, event: Event, region: string }) => Promise<boolean>|boolean|void)|string>();
2124
+ /**
2125
+ * This event is fired after a resize gesture is completed.
2126
+ * @param {object} event Event object
2127
+ * @param {Grid.view.Grid} event.source The grid instance
2128
+ * @param {Grid.column.Column} event.column The resized column
2129
+ * @param {Event} event.domEvent The browser event
2130
+ */
2131
+ @Output() onColumnResize: any = new EventEmitter<((event: { source: Grid, column: Column, domEvent: Event }) => void)|string>();
2132
+ /**
2133
+ * This event is fired when a column resize gesture starts.
2134
+ * @param {object} event Event object
2135
+ * @param {Grid.view.Grid} event.source The grid instance
2136
+ * @param {Grid.column.Column} event.column The column
2137
+ * @param {Event} event.domEvent The browser event
2138
+ */
2139
+ @Output() onColumnResizeStart: any = new EventEmitter<((event: { source: Grid, column: Column, domEvent: Event }) => void)|string>();
2140
+ /**
2141
+ * This event fires on the owning widget when an item is selected in the context menu.
2142
+ * @param {object} event Event object
2143
+ * @param {Core.widget.Widget} event.source The owning widget
2144
+ * @param {Core.widget.Menu} event.menu The menu
2145
+ * @param {Core.widget.MenuItem} event.item Selected menu item
2146
+ */
2147
+ @Output() onContextMenuItem: any = new EventEmitter<((event: { source: Widget, menu: Menu, item: MenuItem }) => void)|string>();
2148
+ /**
2149
+ * This event fires on the owning widget when a check item is toggled in the context menu.
2150
+ * @param {object} event Event object
2151
+ * @param {Core.widget.Widget} event.source The owning widget
2152
+ * @param {Core.widget.Menu} event.menu The menu
2153
+ * @param {Core.widget.MenuItem} event.item Selected menu item
2154
+ * @param {boolean} event.checked Checked or not
2155
+ */
2156
+ @Output() onContextMenuToggleItem: any = new EventEmitter<((event: { source: Widget, menu: Menu, item: MenuItem, checked: boolean }) => void)|string>();
2157
+ /**
2158
+ * Fires on the owning Grid after a copy action is performed.
2159
+ * @param {object} event Event object
2160
+ * @param {Grid.view.Grid} event.source Owner grid
2161
+ * @param {Grid.util.GridLocation[]} event.cells The cells about to be copied or cut
2162
+ * @param {string} event.copiedDataString The concatenated data string that was copied or cut
2163
+ * @param {boolean} event.isCut `true` if this was a cut action
2164
+ * @param {string} event.entityName 'cell' to distinguish this event from other copy events
2165
+ */
2166
+ @Output() onCopy: any = new EventEmitter<((event: { source: Grid, cells: GridLocation[], copiedDataString: string, isCut: boolean, entityName: string }) => void)|string>();
2167
+ /**
2168
+ * Fired when data in the store changes.
2169
+ * ...
2170
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#event-dataChange)
2171
+ * @param {object} event Event object
2172
+ * @param {Grid.view.Grid} event.source Owning grid
2173
+ * @param {Core.data.Store} event.store The originating store
2174
+ * @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'`
2175
+ * @param {Core.data.Model} event.record Changed record, for actions that affects exactly one record (`'update'`)
2176
+ * @param {Core.data.Model[]} event.records Changed records, passed for all actions except `'removeAll'`
2177
+ * @param {object} event.changes Passed for the `'update'` action, info on which record fields changed
2178
+ */
2179
+ @Output() onDataChange: any = new EventEmitter<((event: { source: Grid, store: Store, action: 'remove'|'removeAll'|'add'|'clearchanges'|'filter'|'update'|'dataset'|'replace', record: Model, records: Model[], changes: object }) => void)|string>();
2180
+ /**
2181
+ * Fires when an object is destroyed.
2182
+ * @param {object} event Event object
2183
+ * @param {Core.Base} event.source The Object that is being destroyed.
2184
+ */
2185
+ @Output() onDestroy: any = new EventEmitter<((event: { source: Base }) => void)|string>();
2186
+ /**
2187
+ * Fires when a field is mutated and the state of the [hasChanges](https://bryntum.com/products/grid/docs/api/Core/widget/Container#property-hasChanges) property changes
2188
+ * @param {object} event Event object
2189
+ * @param {Core.widget.Container} event.source The container.
2190
+ * @param {boolean} event.dirty The dirty state of the Container - `true` if there are any fields which have been changed since initial load.
2191
+ */
2192
+ @Output() onDirtyStateChange: any = new EventEmitter<((event: { source: Container, dirty: boolean }) => void)|string>();
2193
+ /**
2194
+ * Fires while drag selecting. UI will update with current range, but the cells will not be selected until
2195
+ * mouse up. This event can be listened for to perform actions while drag selecting.
2196
+ * @param {object} event Event object
2197
+ * @param {Grid.view.Grid} event.source
2198
+ * @param {GridLocationConfig[],Grid.util.GridLocation[]} event.selectedCells The cells that is currently being dragged over
2199
+ * @param {Core.data.Model[]} event.selectedRecords The records that is currently being dragged over
2200
+ */
2201
+ @Output() onDragSelecting: any = new EventEmitter<((event: { source: Grid, selectedCells: GridLocationConfig[]|GridLocation[], selectedRecords: Model[] }) => void)|string>();
2202
+ /**
2203
+ * Triggered when a widget's [element](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#property-element) is available.
2204
+ * @param {object} event Event object
2205
+ * @param {HTMLElement} event.element The Widget's element.
2206
+ */
2207
+ @Output() onElementCreated: any = new EventEmitter<((event: { element: HTMLElement }) => void)|string>();
2208
+ /**
2209
+ * Fires when a Panel is expanded using the [collapsible](https://bryntum.com/products/grid/docs/api/Core/widget/Panel#config-collapsible) setting.
2210
+ * @param {object} event Event object
2211
+ * @param {Core.widget.Panel} event.source This Panel.
2212
+ */
2213
+ @Output() onExpand: any = new EventEmitter<((event: { source: Panel }) => void)|string>();
2214
+ /**
2215
+ * Fired after a parent node record is expanded.
2216
+ * @param {object} event Event object
2217
+ * @param {Grid.view.Grid} event.source The firing Grid instance.
2218
+ * @param {Core.data.Model} event.record The record which has been expanded.
2219
+ */
2220
+ @Output() onExpandNode: any = new EventEmitter<((event: { source: Grid, record: Model }) => void)|string>();
2221
+ /**
2222
+ * Fired when a file is dropped on the widget element
2223
+ * @param {object} event Event object
2224
+ * @param {Grid.view.Grid} event.source The owning Grid instance
2225
+ * @param {DataTransferItem} event.file The dropped file descriptor
2226
+ * @param {DragEvent} event.domEvent The native DragEvent
2227
+ */
2228
+ @Output() onFileDrop: any = new EventEmitter<((event: { source: Grid, file: DataTransferItem, domEvent: DragEvent }) => void)|string>();
2229
+ /**
2230
+ * Fired before the FillHandle dragging is finalized and values are applied to cells, return `false` to prevent the
2231
+ * drag operation from applying data changes.
2232
+ * @param {object} event Event object
2233
+ * @param {Grid.util.GridLocation} event.from The from cell
2234
+ * @param {Grid.util.GridLocation} event.to The to cell
2235
+ * @param {MouseEvent} event.domEvent The raw DOM event
2236
+ */
2237
+ @Output() onFillHandleBeforeDragFinalize: any = new EventEmitter<((event: { from: GridLocation, to: GridLocation, domEvent: MouseEvent }) => Promise<boolean>|boolean|void)|string>();
2238
+ /**
2239
+ * Fired while dragging the FillHandle.
2240
+ * @param {object} event Event object
2241
+ * @param {Grid.util.GridLocation} event.from The from cell
2242
+ * @param {Grid.util.GridLocation} event.to The to cell
2243
+ * @param {MouseEvent} event.domEvent The raw DOM event
2244
+ */
2245
+ @Output() onFillHandleDrag: any = new EventEmitter<((event: { from: GridLocation, to: GridLocation, domEvent: MouseEvent }) => void)|string>();
2246
+ /**
2247
+ * Fired when a FillHandle drag operation is aborted.
2248
+ */
2249
+ @Output() onFillHandleDragAbort: any = new EventEmitter<(() => void)|string>();
2250
+ /**
2251
+ * Fired after a FillHandle drag operation.
2252
+ * @param {object} event Event object
2253
+ * @param {Grid.util.GridLocation} event.from The from cell
2254
+ * @param {Grid.util.GridLocation} event.to The to cell
2255
+ * @param {MouseEvent} event.domEvent The raw DOM event
2256
+ */
2257
+ @Output() onFillHandleDragEnd: any = new EventEmitter<((event: { from: GridLocation, to: GridLocation, domEvent: MouseEvent }) => void)|string>();
2258
+ /**
2259
+ * Fired when dragging of the FillHandle starts.
2260
+ * @param {object} event Event object
2261
+ * @param {Grid.util.GridLocation} event.cell Information about the column / record
2262
+ * @param {MouseEvent} event.domEvent The raw DOM event
2263
+ */
2264
+ @Output() onFillHandleDragStart: any = new EventEmitter<((event: { cell: GridLocation, domEvent: MouseEvent }) => Promise<boolean>|boolean|void)|string>();
2265
+ /**
2266
+ * Fires on the owning Grid when cell editing is finished
2267
+ * @param {object} event Event object
2268
+ * @param {Grid.view.Grid} event.grid Target grid
2269
+ * @param {CellEditorContext} event.editorContext Editing context
2270
+ */
2271
+ @Output() onFinishCellEdit: any = new EventEmitter<((event: { grid: Grid, editorContext: CellEditorContext }) => void)|string>();
2272
+ /**
2273
+ * Fires on the owning Grid before the row editing is finished, return false to signal that the value is invalid and editing should not be finalized.
2274
+ * ...
2275
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#event-finishRowEdit)
2276
+ * @param {object} event Event object
2277
+ * @param {Grid.view.Grid} event.grid Target grid
2278
+ * @param {RowEditorContext} event.editorContext Editing context
2279
+ */
2280
+ @Output() onFinishRowEdit: any = new EventEmitter<((event: { grid: Grid, editorContext: RowEditorContext }) => Promise<boolean>|boolean|void)|string>();
2281
+ /**
2282
+ * Fired when focus enters this Widget.
2283
+ * @param {object} event Event object
2284
+ * @param {Core.widget.Widget} event.source This Widget
2285
+ * @param {HTMLElement} event.fromElement The element which lost focus.
2286
+ * @param {HTMLElement} event.toElement The element which gained focus.
2287
+ * @param {Core.widget.Widget} event.fromWidget The widget which lost focus.
2288
+ * @param {Core.widget.Widget} event.toWidget The widget which gained focus.
2289
+ * @param {boolean} event.backwards `true` if the `toElement` is before the `fromElement` in document order.
2290
+ */
2291
+ @Output() onFocusIn: any = new EventEmitter<((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string>();
2292
+ /**
2293
+ * Fired when focus exits this Widget's ownership tree. This is different from a `blur` event.
2294
+ * focus moving from within this Widget's ownership tree, even if there are floating widgets
2295
+ * will not trigger this event. This is when focus exits this widget completely.
2296
+ * @param {object} event Event object
2297
+ * @param {Core.widget.Widget} event.source This Widget
2298
+ * @param {HTMLElement} event.fromElement The element which lost focus.
2299
+ * @param {HTMLElement} event.toElement The element which gained focus.
2300
+ * @param {Core.widget.Widget} event.fromWidget The widget which lost focus.
2301
+ * @param {Core.widget.Widget} event.toWidget The widget which gained focus.
2302
+ * @param {boolean} event.backwards `true` if the `toElement` is before the `fromElement` in document order.
2303
+ */
2304
+ @Output() onFocusOut: any = new EventEmitter<((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string>();
2305
+ /**
2306
+ * Fired before dragging starts, return false to prevent the drag operation.
2307
+ * @param {object} event Event object
2308
+ * @param {Grid.view.GridBase} event.source
2309
+ * @param {object} event.context
2310
+ * @param {Core.data.Model[]} event.context.records The dragged row records
2311
+ * @param {MouseEvent,TouchEvent} event.event
2312
+ */
2313
+ @Output() onGridRowBeforeDragStart: any = new EventEmitter<((event: { source: GridBase, context: { records: Model[] }, event: MouseEvent|TouchEvent }) => Promise<boolean>|boolean|void)|string>();
2314
+ /**
2315
+ * Fired before the row drop operation is finalized. You can return false to abort the drop operation, or a
2316
+ * Promise yielding `true` / `false` which allows for asynchronous abort (e.g. first show user a confirmation dialog).
2317
+ * @param {object} event Event object
2318
+ * @param {Grid.view.GridBase} event.source
2319
+ * @param {object} event.context
2320
+ * @param {boolean} event.context.valid Set this to true or false to indicate whether the drop position is valid
2321
+ * @param {Core.data.Model} event.context.insertBefore The record to insert before (`null` if inserting at last position of a parent node)
2322
+ * @param {Core.data.Model} event.context.parent The parent record of the current drop position (only applicable for trees)
2323
+ * @param {Core.data.Model[]} event.context.records The dragged row records
2324
+ * @param {RecordPositionContext[]} event.context.oldPositionContext An array of objects with information about the previous tree position. Objects contain the `record`, and its original `parentIndex` and `parentId` values
2325
+ * @param {MouseEvent} event.event
2326
+ */
2327
+ @Output() onGridRowBeforeDropFinalize: any = new EventEmitter<((event: { source: GridBase, context: { valid: boolean, insertBefore: Model, parent: Model, records: Model[], oldPositionContext: RecordPositionContext[] }, event: MouseEvent }) => Promise<boolean>|boolean|void)|string>();
2328
+ /**
2329
+ * Fired while the row is being dragged, in the listener function you have access to `context.insertBefore` a grid /
2330
+ * tree record, and additionally `context.parent` (a TreeNode) for trees. You can signal that the drop position is
2331
+ * valid or invalid by setting `context.valid = false;`
2332
+ * @param {object} event Event object
2333
+ * @param {Grid.view.GridBase} event.source
2334
+ * @param {object} event.context
2335
+ * @param {boolean} event.context.valid Set this to true or false to indicate whether the drop position is valid.
2336
+ * @param {Core.data.Model} event.context.insertBefore The record to insert before (`null` if inserting at last position of a parent node)
2337
+ * @param {Core.data.Model} event.context.parent The parent record of the current drop position (only applicable for trees)
2338
+ * @param {Core.data.Model[]} event.context.records The dragged row records
2339
+ * @param {MouseEvent} event.event
2340
+ */
2341
+ @Output() onGridRowDrag: any = new EventEmitter<((event: { source: GridBase, context: { valid: boolean, insertBefore: Model, parent: Model, records: Model[] }, event: MouseEvent }) => void)|string>();
2342
+ /**
2343
+ * Fired when a row drag operation is aborted
2344
+ * @param {object} event Event object
2345
+ * @param {Grid.view.GridBase} event.source
2346
+ * @param {object} event.context
2347
+ * @param {Core.data.Model[]} event.context.records The dragged row records
2348
+ * @param {MouseEvent} event.event
2349
+ */
2350
+ @Output() onGridRowDragAbort: any = new EventEmitter<((event: { source: GridBase, context: { records: Model[] }, event: MouseEvent }) => void)|string>();
2351
+ /**
2352
+ * Fired when dragging starts.
2353
+ * @param {object} event Event object
2354
+ * @param {Grid.view.GridBase} event.source
2355
+ * @param {object} event.context
2356
+ * @param {Core.data.Model[]} event.context.records The dragged row records
2357
+ * @param {MouseEvent,TouchEvent} event.event
2358
+ */
2359
+ @Output() onGridRowDragStart: any = new EventEmitter<((event: { source: GridBase, context: { records: Model[] }, event: MouseEvent|TouchEvent }) => void)|string>();
2360
+ /**
2361
+ * Fired after the row drop operation has completed, regardless of validity
2362
+ * @param {object} event Event object
2363
+ * @param {Grid.view.GridBase} event.source
2364
+ * @param {object} event.context
2365
+ * @param {boolean} event.context.valid true or false depending on whether the drop position was valid
2366
+ * @param {Core.data.Model} event.context.insertBefore The record to insert before (`null` if inserting at last position of a parent node)
2367
+ * @param {Core.data.Model} event.context.parent The parent record of the current drop position (only applicable for trees)
2368
+ * @param {Core.data.Model[]} event.context.records The dragged row records
2369
+ * @param {RecordPositionContext[]} event.context.oldPositionContext An array of objects with information about the previous tree position. Objects contain the record, and its original `parentIndex` and `parentId` values
2370
+ * @param {MouseEvent} event.event
2371
+ */
2372
+ @Output() onGridRowDrop: any = new EventEmitter<((event: { source: GridBase, context: { valid: boolean, insertBefore: Model, parent: Model, records: Model[], oldPositionContext: RecordPositionContext[] }, event: MouseEvent }) => void)|string>();
2373
+ /**
2374
+ * Fired when a grid header is clicked on.
2375
+ * ...
2376
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#event-headerClick)
2377
+ * @param {object} event Event object
2378
+ * @param {Event} event.domEvent The triggering DOM event.
2379
+ * @param {Grid.column.Column} event.column The column clicked on.
2380
+ */
2381
+ @Output() onHeaderClick: any = new EventEmitter<((event: { domEvent: Event, column: Column }) => Promise<boolean>|boolean|void)|string>();
2382
+ /**
2383
+ * This event fires on the owning Grid before the context menu is shown for a header.
2384
+ * 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).
2385
+ * ...
2386
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#event-headerMenuBeforeShow)
2387
+ * @param {object} event Event object
2388
+ * @param {Grid.view.Grid} event.source The grid
2389
+ * @param {Core.widget.Menu} event.menu The menu
2390
+ * @param {Record<string, MenuItemEntry>} event.items Menu item configs
2391
+ * @param {Grid.column.Column} event.column Column
2392
+ */
2393
+ @Output() onHeaderMenuBeforeShow: any = new EventEmitter<((event: { source: Grid, menu: Menu, items: Record<string, MenuItemEntry>, column: Column }) => Promise<boolean>|boolean|void)|string>();
2394
+ /**
2395
+ * This event fires on the owning Grid when an item is selected in the header context menu.
2396
+ * @param {object} event Event object
2397
+ * @param {Grid.view.Grid} event.source The grid
2398
+ * @param {Core.widget.Menu} event.menu The menu
2399
+ * @param {Core.widget.MenuItem} event.item Selected menu item
2400
+ * @param {Grid.column.Column} event.column Column
2401
+ */
2402
+ @Output() onHeaderMenuItem: any = new EventEmitter<((event: { source: Grid, menu: Menu, item: MenuItem, column: Column }) => void)|string>();
2403
+ /**
2404
+ * This event fires on the owning Grid after the context menu is shown for a header
2405
+ * @param {object} event Event object
2406
+ * @param {Grid.view.Grid} event.source The grid
2407
+ * @param {Core.widget.Menu} event.menu The menu
2408
+ * @param {Record<string, MenuItemEntry>} event.items Menu item configs
2409
+ * @param {Grid.column.Column} event.column Column
2410
+ */
2411
+ @Output() onHeaderMenuShow: any = new EventEmitter<((event: { source: Grid, menu: Menu, items: Record<string, MenuItemEntry>, column: Column }) => void)|string>();
2412
+ /**
2413
+ * This event fires on the owning Grid when a check item is toggled in the header context menu.
2414
+ * @param {object} event Event object
2415
+ * @param {Grid.view.Grid} event.source The grid
2416
+ * @param {Core.widget.Menu} event.menu The menu
2417
+ * @param {Core.widget.MenuItem} event.item Selected menu item
2418
+ * @param {Grid.column.Column} event.column Column
2419
+ * @param {boolean} event.checked Checked or not
2420
+ */
2421
+ @Output() onHeaderMenuToggleItem: any = new EventEmitter<((event: { source: Grid, menu: Menu, item: MenuItem, column: Column, checked: boolean }) => void)|string>();
2422
+ /**
2423
+ * Triggered after a widget was hidden
2424
+ * @param {object} event Event object
2425
+ * @param {Core.widget.Widget} event.source The widget
2426
+ */
2427
+ @Output() onHide: any = new EventEmitter<((event: { source: Widget }) => void)|string>();
2428
+ /**
2429
+ * Fires when row locking is enabled.
2430
+ * @param {object} event Event object
2431
+ * @param {Grid.view.GridBase} event.clone The created clone
2432
+ */
2433
+ @Output() onLockRows: any = new EventEmitter<((event: { clone: GridBase }) => void)|string>();
2434
+ /**
2435
+ * Mouse moved out from element in grid
2436
+ * @param {object} event Event object
2437
+ * @param {MouseEvent} event.event The native browser event
2438
+ */
2439
+ @Output() onMouseOut: any = new EventEmitter<((event: { event: MouseEvent }) => void)|string>();
2440
+ /**
2441
+ * Mouse moved in over element in grid
2442
+ * @param {object} event Event object
2443
+ * @param {MouseEvent} event.event The native browser event
2444
+ */
2445
+ @Output() onMouseOver: any = new EventEmitter<((event: { event: MouseEvent }) => void)|string>();
2446
+ /**
2447
+ * Triggered when a widget which had been in a non-visible state for any reason
2448
+ * achieves visibility.
2449
+ * ...
2450
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#event-paint)
2451
+ * @param {object} event Event object
2452
+ * @param {Core.widget.Widget} event.source The widget being painted.
2453
+ * @param {boolean} event.firstPaint `true` if this is the first paint.
2454
+ */
2455
+ @Output() onPaint: any = new EventEmitter<((event: { source: Widget, firstPaint: boolean }) => void)|string>();
2456
+ /**
2457
+ * Fires on the owning Grid after a paste action is performed.
2458
+ * @param {object} event Event object
2459
+ * @param {Grid.view.Grid} event.source Owner grid
2460
+ * @param {string} event.clipboardData The clipboardData that was pasted
2461
+ * @param {Core.data.Model[]} event.modifiedRecords The records which have been modified due to the paste action
2462
+ * @param {Grid.util.GridLocation} event.targetCell The cell from which the paste will be started
2463
+ * @param {string} event.entityName 'cell' to distinguish this event from other paste events
2464
+ */
2465
+ @Output() onPaste: any = new EventEmitter<((event: { source: Grid, clipboardData: string, modifiedRecords: Model[], targetCell: GridLocation, entityName: string }) => void)|string>();
2466
+ /**
2467
+ * Fires on the owning Grid when export has finished
2468
+ * @param {object} event Event object
2469
+ * @param {Response} event.response Optional response, if received
2470
+ * @param {Error} event.error Optional error, if exception occurred
2471
+ */
2472
+ @Output() onPdfExport: any = new EventEmitter<((event: { response?: any, error?: Error }) => void)|string>();
2473
+ /**
2474
+ * Fired when a Widget's read only state is toggled
2475
+ * @param {object} event Event object
2476
+ * @param {boolean} event.readOnly Read only or not
2477
+ */
2478
+ @Output() onReadOnly: any = new EventEmitter<((event: { readOnly: boolean }) => void)|string>();
2479
+ /**
2480
+ * This event is fired after a widget's elements have been synchronized due to a direct or indirect call
2481
+ * to [recompose](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#function-recompose), if this results in some change to the widget's rendered DOM elements.
2482
+ */
2483
+ @Output() onRecompose: any = new EventEmitter<(() => void)|string>();
2484
+ /**
2485
+ * Fires after a row is rendered.
2486
+ * @param {object} event Event object
2487
+ * @param {Grid.view.Grid} event.source The firing Grid instance.
2488
+ * @param {Grid.row.Row} event.row The row that has been rendered.
2489
+ * @param {Core.data.Model} event.record The record for the row.
2490
+ * @param {number} event.recordIndex The zero-based index of the record.
2491
+ */
2492
+ @Output() onRenderRow: any = new EventEmitter<((event: { source: Grid, row: Row, record: Model, recordIndex: number }) => void)|string>();
2493
+ /**
2494
+ * Grid rows have been rendered
2495
+ * @param {object} event Event object
2496
+ * @param {Grid.view.Grid} event.source This grid.
2497
+ */
2498
+ @Output() onRenderRows: any = new EventEmitter<((event: { source: Grid }) => void)|string>();
2499
+ /**
2500
+ * 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`*.
2501
+ * @param {object} event Event object
2502
+ * @param {Core.widget.Widget} event.source This Widget
2503
+ * @param {number} event.width The new width
2504
+ * @param {number} event.height The new height
2505
+ * @param {number} event.oldWidth The old width
2506
+ * @param {number} event.oldHeight The old height
2507
+ */
2508
+ @Output() onResize: any = new EventEmitter<((event: { source: Widget, width: number, height: number, oldWidth: number, oldHeight: number }) => void)|string>();
2509
+ /**
2510
+ * Grid resize lead to a new responsive level being applied
2511
+ * @param {object} event Event object
2512
+ * @param {Grid.view.Grid} event.grid Grid that was resized
2513
+ * @param {string} event.level New responsive level (small, large, etc)
2514
+ * @param {number} event.width New width in px
2515
+ * @param {string} event.oldLevel Old responsive level
2516
+ * @param {number} event.oldWidth Old width in px
2517
+ */
2518
+ @Output() onResponsive: any = new EventEmitter<((event: { grid: Grid, level: string, width: number, oldLevel: string, oldWidth: number }) => void)|string>();
2519
+ /**
2520
+ * This event fires when a row has finished collapsing.
2521
+ * @param {object} event Event object
2522
+ * @param {Core.data.Model} event.record Record
2523
+ */
2524
+ @Output() onRowCollapse: any = new EventEmitter<((event: { record: Model }) => void)|string>();
2525
+ /**
2526
+ * This event fires when a row expand has finished expanding.
2527
+ * ...
2528
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#event-rowExpand)
2529
+ * @param {object} event Event object
2530
+ * @param {Core.data.Model} event.record Record
2531
+ * @param {object} event.expandedElements An object with the Grid region name as property and the expanded body element as value
2532
+ * @param {Core.widget.Widget} event.widget In case of expanding a Widget, this will be a reference to the instance created by the actual expansion. If there is multiple Grid regions, use the `widgets` param instead.
2533
+ * @param {object} event.widgets In case of expanding a Widget, this will be an object with the Grid region name as property and the reference to the widget instance created by the actual expansion
2534
+ */
2535
+ @Output() onRowExpand: any = new EventEmitter<((event: { record: Model, expandedElements: object, widget: Widget, widgets: object }) => void)|string>();
2536
+ /**
2537
+ * Fired when the mouse enters a row
2538
+ * @param {object} event Event object
2539
+ * @param {Grid.view.Grid} event.source The grid instance
2540
+ * @param {Core.data.Model} event.record The record representing the hovered row
2541
+ * @param {Grid.column.Column} event.column The column currently hovered
2542
+ * @param {HTMLElement} event.cellElement The cell HTML element
2543
+ * @param {MouseEvent} event.event The native DOM event
2544
+ */
2545
+ @Output() onRowMouseEnter: any = new EventEmitter<((event: { source: Grid, record: Model, column: Column, cellElement: HTMLElement, event: MouseEvent }) => void)|string>();
2546
+ /**
2547
+ * Fired when the mouse leaves a row
2548
+ * @param {object} event Event object
2549
+ * @param {Grid.view.Grid} event.source The grid instance
2550
+ * @param {Core.data.Model} event.record The record representing the row that the mouse left
2551
+ * @param {HTMLElement} event.cellElement The cell HTML element that the mouse left
2552
+ * @param {MouseEvent} event.event The native DOM event
2553
+ */
2554
+ @Output() onRowMouseLeave: any = new EventEmitter<((event: { source: Grid, record: Model, cellElement: HTMLElement, event: MouseEvent }) => void)|string>();
2555
+ /**
2556
+ * Grid has scrolled vertically
2557
+ * @param {object} event Event object
2558
+ * @param {Grid.view.Grid} event.source The firing Grid instance.
2559
+ * @param {number} event.scrollTop The vertical scroll position.
2560
+ */
2561
+ @Output() onScroll: any = new EventEmitter<((event: { source: Grid, scrollTop: number }) => void)|string>();
2562
+ /**
2563
+ * The selection has been changed.
2564
+ * @param {object} event Event object
2565
+ * @param {'select','deselect'} event.action `'select'`/`'deselect'`
2566
+ * @param {'row','cell'} event.mode `'row'`/`'cell'`
2567
+ * @param {Grid.view.Grid} event.source
2568
+ * @param {Core.data.Model[]} event.deselected The records deselected in this operation.
2569
+ * @param {Core.data.Model[]} event.selected The records selected in this operation.
2570
+ * @param {Core.data.Model[]} event.selection The records in the new selection.
2571
+ * @param {Grid.util.GridLocation[]} event.deselectedCells The cells deselected in this operation.
2572
+ * @param {Grid.util.GridLocation[]} event.selectedCells The cells selected in this operation.
2573
+ * @param {Grid.util.GridLocation[]} event.cellSelection The cells in the new selection.
2574
+ */
2575
+ @Output() onSelectionChange: any = new EventEmitter<((event: { action: 'select'|'deselect', mode: 'row'|'cell', source: Grid, deselected: Model[], selected: Model[], selection: Model[], deselectedCells: GridLocation[], selectedCells: GridLocation[], cellSelection: GridLocation[] }) => void)|string>();
2576
+ /**
2577
+ * The selectionMode configuration has been changed.
2578
+ * @param {object} event Event object
2579
+ * @param {object} event.selectionMode The new [selectionMode](https://bryntum.com/products/grid/docs/api/Grid/view/mixin/GridSelection#config-selectionMode)
2580
+ */
2581
+ @Output() onSelectionModeChange: any = new EventEmitter<((event: { selectionMode: object }) => void)|string>();
2582
+ /**
2583
+ * Triggered after a widget is shown.
2584
+ * @param {object} event Event object
2585
+ * @param {Core.widget.Widget} event.source The widget
2586
+ */
2587
+ @Output() onShow: any = new EventEmitter<((event: { source: Widget }) => void)|string>();
2588
+ /**
2589
+ * Fires when splitting the Grid.
2590
+ * @param {object} event Event object
2591
+ * @param {Grid.view.GridBase[]} event.subViews The sub views created by the split
2592
+ * @param {object} event.options The options passed to the split call
2593
+ * @param {'horizontal','vertical','both'} event.options.direction The direction of the split
2594
+ * @param {Grid.column.Column} event.options.atColumn The column to split at
2595
+ * @param {Core.data.Model} event.options.atRecord The record to split at
2596
+ */
2597
+ @Output() onSplit: any = new EventEmitter<((event: { subViews: GridBase[], options: { direction: 'horizontal'|'vertical'|'both', atColumn: Column, atRecord: Model } }) => void)|string>();
2598
+ /**
2599
+ * Fired by the Grid when the collapse icon is clicked. Return `false` to prevent the default collapse action,
2600
+ * if you want to implement your own behavior.
2601
+ * @param {object} event Event object
2602
+ * @param {Grid.view.Grid} event.source The Grid instance.
2603
+ * @param {Grid.view.SubGrid} event.subGrid The subgrid
2604
+ * @param {Event} event.domEvent The native DOM event
2605
+ */
2606
+ @Output() onSplitterCollapseClick: any = new EventEmitter<((event: { source: Grid, subGrid: SubGrid, domEvent: Event }) => Promise<boolean>|boolean|void)|string>();
2607
+ /**
2608
+ * Fired by the Grid after a sub-grid has been resized using the splitter
2609
+ * @param {object} event Event object
2610
+ * @param {Grid.view.Grid} event.source The Grid instance.
2611
+ * @param {Grid.view.SubGrid} event.subGrid The resized subgrid
2612
+ * @param {Event} event.domEvent The native DOM event
2613
+ */
2614
+ @Output() onSplitterDragEnd: any = new EventEmitter<((event: { source: Grid, subGrid: SubGrid, domEvent: Event }) => void)|string>();
2615
+ /**
2616
+ * Fired by the Grid when a sub-grid resize gesture starts
2617
+ * @param {object} event Event object
2618
+ * @param {Grid.view.Grid} event.source The Grid instance.
2619
+ * @param {Grid.view.SubGrid} event.subGrid The subgrid about to be resized
2620
+ * @param {Event} event.domEvent The native DOM event
2621
+ */
2622
+ @Output() onSplitterDragStart: any = new EventEmitter<((event: { source: Grid, subGrid: SubGrid, domEvent: Event }) => void)|string>();
2623
+ /**
2624
+ * Fired by the Grid when the expand icon is clicked. Return `false` to prevent the default expand action,
2625
+ * if you want to implement your own behavior.
2626
+ * @param {object} event Event object
2627
+ * @param {Grid.view.Grid} event.source The Grid instance.
2628
+ * @param {Grid.view.SubGrid} event.subGrid The subgrid
2629
+ * @param {Event} event.domEvent The native DOM event
2630
+ */
2631
+ @Output() onSplitterExpandClick: any = new EventEmitter<((event: { source: Grid, subGrid: SubGrid, domEvent: Event }) => Promise<boolean>|boolean|void)|string>();
2632
+ /**
2633
+ * Fires on the owning Grid when editing starts
2634
+ * @param {object} event Event object
2635
+ * @param {Grid.view.Grid} event.source Owner grid
2636
+ * @param {CellEditorContext} event.editorContext Editing context
2637
+ */
2638
+ @Output() onStartCellEdit: any = new EventEmitter<((event: { source: Grid, editorContext: CellEditorContext }) => void)|string>();
2639
+ /**
2640
+ * Fires on the owning Grid when editing starts
2641
+ * @param {object} event Event object
2642
+ * @param {Grid.view.Grid} event.source Owner grid
2643
+ * @param {RowEditorContext} event.editorContext Editing context
2644
+ */
2645
+ @Output() onStartRowEdit: any = new EventEmitter<((event: { source: Grid, editorContext: RowEditorContext }) => void)|string>();
2646
+ /**
2647
+ * Fires after a sub grid is collapsed.
2648
+ * @param {object} event Event object
2649
+ * @param {Grid.view.Grid} event.source The firing Grid instance
2650
+ * @param {Grid.view.SubGrid} event.subGrid The sub grid instance
2651
+ */
2652
+ @Output() onSubGridCollapse: any = new EventEmitter<((event: { source: Grid, subGrid: SubGrid }) => void)|string>();
2653
+ /**
2654
+ * Fires after a sub grid is expanded.
2655
+ * @param {object} event Event object
2656
+ * @param {Grid.view.Grid} event.source The firing Grid instance
2657
+ * @param {Grid.view.SubGrid} event.subGrid The sub grid instance
2658
+ */
2659
+ @Output() onSubGridExpand: any = new EventEmitter<((event: { source: Grid, subGrid: SubGrid }) => void)|string>();
2660
+ /**
2661
+ * Fired when one or more groups are expanded or collapsed
2662
+ * @param {object} event Event object
2663
+ * @param {Core.data.Model} event.groupRecord [DEPRECATED] Use `groupRecords` param instead
2664
+ * @param {Core.data.Model[]} event.groupRecords The group records being toggled
2665
+ * @param {boolean} event.collapse Collapsed (true) or expanded (false)
2666
+ * @param {boolean} event.allRecords True if this event is part of toggling all groups
2667
+ */
2668
+ @Output() onToggleGroup: any = new EventEmitter<((event: { groupRecord: Model, groupRecords: Model[], collapse: boolean, allRecords?: boolean }) => void)|string>();
2669
+ /**
2670
+ * Fired after a parent node record toggles its collapsed state.
2671
+ * @param {object} event Event object
2672
+ * @param {Core.data.Model} event.record The record being toggled.
2673
+ * @param {boolean} event.collapse `true` if the node is being collapsed.
2674
+ */
2675
+ @Output() onToggleNode: any = new EventEmitter<((event: { record: Model, collapse: boolean }) => void)|string>();
2676
+ /**
2677
+ * A header [tool](https://bryntum.com/products/grid/docs/api/Core/widget/Panel#config-tools) has been clicked.
2678
+ * @param {object} event Event object
2679
+ * @param {Core.widget.Tool} event.source This Panel.
2680
+ * @param {Core.widget.Tool} event.tool The tool which is being clicked.
2681
+ */
2682
+ @Output() onToolClick: any = new EventEmitter<((event: { source: Tool, tool: Tool }) => void)|string>();
2683
+ /**
2684
+ * Fires when row locking is disabled.
2685
+ * @param {object} event Event object
2686
+ * @param {Grid.view.GridBase} event.clone The locked clone that will be destroyed
2687
+ */
2688
+ @Output() onUnlockRows: any = new EventEmitter<((event: { clone: GridBase }) => void)|string>();
2689
+ /**
2690
+ * Fires when un-splitting the Grid.
2691
+ */
2692
+ @Output() onUnsplit: any = new EventEmitter<(() => void)|string>();
2693
+
2694
+ /**
2695
+ * Create and append the underlying widget
2696
+ */
2697
+ ngOnInit(): void {
2698
+ const
2699
+ me = this,
2700
+ {
2701
+ elementRef,
2702
+ bryntumConfig
2703
+ } = me,
2704
+ {
2705
+ instanceClass,
2706
+ instanceName,
2707
+ bryntumConfigs,
2708
+ bryntumEvents
2709
+ } = BryntumGridComponent;
2710
+
2711
+ bryntumConfigs.filter(prop => prop in this).forEach(prop => {
2712
+ // @ts-ignore
2713
+ WrapperHelper.applyPropValue(bryntumConfig, prop, this[prop]);
2714
+ if (['features', 'config'].includes(prop)) {
2715
+ WrapperHelper.devWarningConfigProp(instanceName, prop);
2716
+ }
2717
+ });
2718
+ // @ts-ignore
2719
+ bryntumEvents.filter(event => this[event] && this[event].observers.length > 0).forEach(event => {
2720
+ const
2721
+ uncapitalize = (str: string) => str.charAt(0).toLowerCase() + str.slice(1),
2722
+ eventName = (str: string) => uncapitalize(str.slice(2));
2723
+
2724
+ // @ts-ignore
2725
+ bryntumConfig.listeners[eventName(event)] = e => {
2726
+ // @ts-ignore
2727
+ me[event].emit(e);
2728
+ // EventEmitter does not return values in the normal way, work around it by setting `returnValue` flag
2729
+ // in Angular listeners
2730
+ return e.returnValue;
2731
+ };
2732
+ });
2733
+
2734
+ // If component has no container specified in config then use adopt to Wrapper's element
2735
+ const
2736
+ containerParam = [
2737
+ 'adopt',
2738
+ 'appendTo',
2739
+ 'insertAfter',
2740
+ 'insertBefore'
2741
+ // @ts-ignore
2742
+ ].find(prop => bryntumConfig[prop]);
2743
+ if (!containerParam) {
2744
+ if (instanceName === 'Button' || elementRef.nativeElement.getRootNode() instanceof ShadowRoot) {
2745
+ // Button should always be <a> or <button> inside owner element
2746
+ bryntumConfig.appendTo = elementRef.nativeElement;
2747
+ }
2748
+ else {
2749
+ bryntumConfig.adopt = elementRef.nativeElement;
2750
+ }
2751
+ }
2752
+ else {
2753
+ WrapperHelper.devWarningContainer(instanceName, containerParam);
2754
+ }
2755
+
2756
+ // @ts-ignore
2757
+ me.instance = instanceName === 'Widget' ? Widget.create(bryntumConfig) : new instanceClass(bryntumConfig);
2758
+
2759
+ // Backwards compatibility for gridInstance, schedulerInstance etc.
2760
+ // @ts-ignore
2761
+ me[StringHelper.uncapitalize(instanceName) + 'Instance'] = me.instance;
2762
+ //
2763
+ }
2764
+
2765
+ /**
2766
+ * Watch for changes
2767
+ * @param changes
2768
+ */
2769
+ ngOnChanges(changes: SimpleChanges): void {
2770
+ const
2771
+ { instance } = this,
2772
+ { instanceName } = BryntumGridComponent;
2773
+ if (!instance) {
2774
+ return;
2775
+ }
2776
+ // Iterate over all changes
2777
+ Object.entries(changes).forEach(([prop, change]) => {
2778
+ const
2779
+ newValue = (change as SimpleChange).currentValue,
2780
+ { instance } = this,
2781
+ { bryntumConfigsOnly, bryntumProps } = BryntumGridComponent;
2782
+ if (bryntumProps.includes(prop)) {
2783
+ WrapperHelper.applyPropValue(instance, prop, newValue, false);
2784
+ if (bryntumConfigsOnly.includes(prop)) {
2785
+ WrapperHelper.devWarningUpdateProp(instanceName, prop);
2786
+ }
2787
+ }
2788
+ });
2789
+ }
2790
+
2791
+ /**
2792
+ * Destroy the component
2793
+ */
2794
+ ngOnDestroy(): void {
2795
+ // @ts-ignore
2796
+ if (this.instance && this.instance.destroy) {
2797
+ this.instance.destroy();
2798
+ }
2799
+ }
2800
+ }