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