@bryntum/taskboard-react-thin 7.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/README.md +52 -0
  2. package/lib/BryntumColumnCombo.d.ts +268 -0
  3. package/lib/BryntumColumnCombo.js +203 -0
  4. package/lib/BryntumColumnCombo.js.map +1 -0
  5. package/lib/BryntumColumnFilterField.d.ts +234 -0
  6. package/lib/BryntumColumnFilterField.js +170 -0
  7. package/lib/BryntumColumnFilterField.js.map +1 -0
  8. package/lib/BryntumColumnPickerButton.d.ts +208 -0
  9. package/lib/BryntumColumnPickerButton.js +149 -0
  10. package/lib/BryntumColumnPickerButton.js.map +1 -0
  11. package/lib/BryntumColumnScrollButton.d.ts +208 -0
  12. package/lib/BryntumColumnScrollButton.js +149 -0
  13. package/lib/BryntumColumnScrollButton.js.map +1 -0
  14. package/lib/BryntumProjectCombo.d.ts +269 -0
  15. package/lib/BryntumProjectCombo.js +204 -0
  16. package/lib/BryntumProjectCombo.js.map +1 -0
  17. package/lib/BryntumResourcesCombo.d.ts +268 -0
  18. package/lib/BryntumResourcesCombo.js +203 -0
  19. package/lib/BryntumResourcesCombo.js.map +1 -0
  20. package/lib/BryntumSwimlaneCombo.d.ts +268 -0
  21. package/lib/BryntumSwimlaneCombo.js +203 -0
  22. package/lib/BryntumSwimlaneCombo.js.map +1 -0
  23. package/lib/BryntumSwimlaneFilterField.d.ts +236 -0
  24. package/lib/BryntumSwimlaneFilterField.js +172 -0
  25. package/lib/BryntumSwimlaneFilterField.js.map +1 -0
  26. package/lib/BryntumSwimlanePickerButton.d.ts +208 -0
  27. package/lib/BryntumSwimlanePickerButton.js +149 -0
  28. package/lib/BryntumSwimlanePickerButton.js.map +1 -0
  29. package/lib/BryntumSwimlaneScrollButton.d.ts +208 -0
  30. package/lib/BryntumSwimlaneScrollButton.js +149 -0
  31. package/lib/BryntumSwimlaneScrollButton.js.map +1 -0
  32. package/lib/BryntumTagCombo.d.ts +269 -0
  33. package/lib/BryntumTagCombo.js +204 -0
  34. package/lib/BryntumTagCombo.js.map +1 -0
  35. package/lib/BryntumTaskBoard.d.ts +610 -0
  36. package/lib/BryntumTaskBoard.js +287 -0
  37. package/lib/BryntumTaskBoard.js.map +1 -0
  38. package/lib/BryntumTaskBoardBase.d.ts +609 -0
  39. package/lib/BryntumTaskBoardBase.js +286 -0
  40. package/lib/BryntumTaskBoardBase.js.map +1 -0
  41. package/lib/BryntumTaskBoardFieldFilterPicker.d.ts +201 -0
  42. package/lib/BryntumTaskBoardFieldFilterPicker.js +159 -0
  43. package/lib/BryntumTaskBoardFieldFilterPicker.js.map +1 -0
  44. package/lib/BryntumTaskBoardFieldFilterPickerGroup.d.ts +209 -0
  45. package/lib/BryntumTaskBoardFieldFilterPickerGroup.js +165 -0
  46. package/lib/BryntumTaskBoardFieldFilterPickerGroup.js.map +1 -0
  47. package/lib/BryntumTaskBoardProjectModel.d.ts +218 -0
  48. package/lib/BryntumTaskBoardProjectModel.js +139 -0
  49. package/lib/BryntumTaskBoardProjectModel.js.map +1 -0
  50. package/lib/BryntumTaskColorCombo.d.ts +232 -0
  51. package/lib/BryntumTaskColorCombo.js +169 -0
  52. package/lib/BryntumTaskColorCombo.js.map +1 -0
  53. package/lib/BryntumTaskFilterField.d.ts +236 -0
  54. package/lib/BryntumTaskFilterField.js +172 -0
  55. package/lib/BryntumTaskFilterField.js.map +1 -0
  56. package/lib/BryntumTodoListField.d.ts +230 -0
  57. package/lib/BryntumTodoListField.js +165 -0
  58. package/lib/BryntumTodoListField.js.map +1 -0
  59. package/lib/BryntumUndoRedo.d.ts +188 -0
  60. package/lib/BryntumUndoRedo.js +150 -0
  61. package/lib/BryntumUndoRedo.js.map +1 -0
  62. package/lib/BryntumZoomSlider.d.ts +186 -0
  63. package/lib/BryntumZoomSlider.js +143 -0
  64. package/lib/BryntumZoomSlider.js.map +1 -0
  65. package/lib/WrapperHelper.d.ts +26 -0
  66. package/lib/WrapperHelper.js +569 -0
  67. package/lib/WrapperHelper.js.map +1 -0
  68. package/lib/index.d.ts +21 -0
  69. package/lib/index.js +22 -0
  70. package/lib/index.js.map +1 -0
  71. package/license.pdf +0 -0
  72. package/licenses.md +310 -0
  73. package/package.json +25 -0
  74. package/src/BryntumColumnCombo.tsx +1240 -0
  75. package/src/BryntumColumnFilterField.tsx +1019 -0
  76. package/src/BryntumColumnPickerButton.tsx +896 -0
  77. package/src/BryntumColumnScrollButton.tsx +896 -0
  78. package/src/BryntumProjectCombo.tsx +1241 -0
  79. package/src/BryntumResourcesCombo.tsx +1239 -0
  80. package/src/BryntumSwimlaneCombo.tsx +1239 -0
  81. package/src/BryntumSwimlaneFilterField.tsx +1032 -0
  82. package/src/BryntumSwimlanePickerButton.tsx +896 -0
  83. package/src/BryntumSwimlaneScrollButton.tsx +896 -0
  84. package/src/BryntumTagCombo.tsx +1244 -0
  85. package/src/BryntumTaskBoard.tsx +2021 -0
  86. package/src/BryntumTaskBoardBase.tsx +2019 -0
  87. package/src/BryntumTaskBoardFieldFilterPicker.tsx +930 -0
  88. package/src/BryntumTaskBoardFieldFilterPickerGroup.tsx +983 -0
  89. package/src/BryntumTaskBoardProjectModel.tsx +779 -0
  90. package/src/BryntumTaskColorCombo.tsx +996 -0
  91. package/src/BryntumTaskFilterField.tsx +1032 -0
  92. package/src/BryntumTodoListField.tsx +986 -0
  93. package/src/BryntumUndoRedo.tsx +871 -0
  94. package/src/BryntumZoomSlider.tsx +824 -0
  95. package/src/WrapperHelper.tsx +1125 -0
  96. package/src/index.ts +25 -0
@@ -0,0 +1,2021 @@
1
+ /**
2
+ * React wrapper for Bryntum TaskBoard
3
+ */
4
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
5
+ import React, { RefObject } from 'react';
6
+ import { AlignSpec, Base, BryntumScrollOptions, Container, DomConfig, KeyMapConfig, Mask, MaskConfig, Menu, MenuItem, MenuItemEntry, Model, PagingToolbarConfig, Panel, PanelCollapserConfig, PanelCollapserOverlayConfig, PanelHeader, Rectangle, ScrollManagerConfig, Scroller, ScrollerConfig, StateProvider, Store, StoreConfig, TabConfig, Tool, ToolConfig, ToolbarConfig, ToolbarItems, Widget } from '@bryntum/core-thin';
7
+ import { AssignmentModel, AssignmentModelConfig, CardSize, ColumnDrag, ColumnDragConfig, ColumnFilter, ColumnFilterConfig, ColumnHeaderMenu, ColumnHeaderMenuConfig, ColumnLock, ColumnLockConfig, ColumnModel, ColumnModelConfig, ColumnRename, ColumnRenameConfig, ColumnResize, ColumnResizeConfig, ColumnSort, ColumnSortConfig, ColumnToolbars, ColumnToolbarsConfig, TaskBoardContainerItemConfig, FilterBar, FilterBarConfig, ProjectModel, ProjectModelConfig, ResourceModel, ResourceModelConfig, SimpleTaskEdit, SimpleTaskEditConfig, SwimlaneDrag, SwimlaneDragConfig, SwimlaneModel, SwimlaneModelConfig, TaskBoard, TaskBoardListeners, TaskDrag, TaskDragConfig, TaskDragSelect, TaskDragSelectConfig, TaskEdit, TaskEditConfig, TaskEditor, TaskItemOptions, TaskMenu, TaskMenuConfig, TaskModel, TaskModelConfig, TaskTooltip, TaskTooltipConfig } from '@bryntum/taskboard-thin';
8
+
9
+ import { createWidget, shouldComponentUpdate, processWidgetContent } from './WrapperHelper.js';
10
+
11
+ export type BryntumTaskBoardProps = {
12
+ // Configs
13
+ /**
14
+ * The name of the event that should activate a task and trigger editing (if an editing feature is active).
15
+ * Available options are: 'taskClick', 'taskDblClick' or null (disable)
16
+ */
17
+ activateTaskEvent? : 'taskClick'|'taskDblClick'|null
18
+ /**
19
+ * Element (or element id) to adopt as this Widget's encapsulating element. The widget's
20
+ * content will be placed inside this element.
21
+ * ...
22
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-adopt)
23
+ */
24
+ adopt? : HTMLElement|string
25
+ /**
26
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
27
+ * ...
28
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-align)
29
+ */
30
+ align? : AlignSpec|string
31
+ /**
32
+ * When this widget is a child of a [Container](https://bryntum.com/products/taskboard/docs/api/Core/widget/Container), it will by default be participating in a
33
+ * flexbox layout. This config allows you to set this widget's
34
+ * [align-self](https://developer.mozilla.org/en-US/docs/Web/CSS/align-self) style.
35
+ */
36
+ alignSelf? : string
37
+ /**
38
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating) and being shown through [showBy](#Core/widget/Widget#function-showBy).*
39
+ * `true` to show a connector arrow pointing to the align target.
40
+ */
41
+ anchor? : boolean
42
+ /**
43
+ * Element (or the id of an element) to append this widget's element to. Can be configured, or set once at
44
+ * runtime. To access the element of a rendered widget, see [element](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#property-element).
45
+ */
46
+ appendTo? : HTMLElement|string
47
+ /**
48
+ * A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject
49
+ * into an element which will be linked using the `aria-describedby` attribute.
50
+ * ...
51
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-ariaDescription)
52
+ */
53
+ ariaDescription? : string
54
+ /**
55
+ * A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject as
56
+ * the `aria-label` attribute.
57
+ * ...
58
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-ariaLabel)
59
+ */
60
+ ariaLabel? : string
61
+ /**
62
+ * Inline [assignments](https://bryntum.com/products/scheduler/docs#Scheduler/model/AssignmentModel), will be loaded into an internally created
63
+ * [AssignmentStore](https://bryntum.com/products/scheduler/docs#Scheduler/data/AssignmentStore) as a part of a [project](https://bryntum.com/products/taskboard/docs/api/TaskBoard/model/ProjectModel).
64
+ */
65
+ assignments? : AssignmentModel[]|object[]|AssignmentModelConfig[]
66
+ /**
67
+ * Set to `true` to auto generate columns when [columns](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/mixin/TaskBoardColumns#config-columns) is undefined.
68
+ * ...
69
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-autoGenerateColumns)
70
+ */
71
+ autoGenerateColumns? : boolean
72
+ /**
73
+ * Set to `true` to auto generate swimlanes when [swimlanes](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/mixin/TaskBoardSwimlanes#config-swimlanes) is undefined.
74
+ * ...
75
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-autoGenerateSwimlanes)
76
+ */
77
+ autoGenerateSwimlanes? : boolean
78
+ /**
79
+ * A Config object representing the configuration of a [Toolbar](https://bryntum.com/products/taskboard/docs/api/Core/widget/Toolbar),
80
+ * 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/taskboard/docs/api/Core/widget/Panel#config-strips).
81
+ * ...
82
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-bbar)
83
+ */
84
+ bbar? : (TaskBoardContainerItemConfig|string)[]|ToolbarConfig|PagingToolbarConfig|null
85
+ /**
86
+ * Custom CSS classes to add to the panel's body element.
87
+ * ...
88
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-bodyCls)
89
+ */
90
+ bodyCls? : string|object
91
+ /**
92
+ * Items to add to each card's body.
93
+ * ...
94
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-bodyItems)
95
+ */
96
+ bodyItems? : Record<string, TaskItemOptions>
97
+ /**
98
+ * An object where property names with a truthy value indicate which events should bubble up the ownership
99
+ * hierarchy when triggered.
100
+ * ...
101
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-bubbleEvents)
102
+ */
103
+ bubbleEvents? : object
104
+ /**
105
+ * Set to `false` to not call onXXX method names (e.g. `onShow`, `onClick`), as an easy way to listen for events.
106
+ * ...
107
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-callOnFunctions)
108
+ */
109
+ callOnFunctions? : boolean
110
+ /**
111
+ * An array of [CardSize](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/mixin/ResponsiveCards#typedef-CardSize) objects to use as responsive levels based on card widths.
112
+ * ...
113
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-cardSizes)
114
+ */
115
+ cardSizes? : CardSize
116
+ /**
117
+ * By default, if an event handler throws an exception, the error propagates up the stack and the
118
+ * application state is undefined. Code which follows the event handler will *not* be executed.
119
+ * ...
120
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-catchEventHandlerExceptions)
121
+ */
122
+ catchEventHandlerExceptions? : boolean
123
+ /**
124
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
125
+ * Set to `true` to centre the Widget in browser viewport space.
126
+ */
127
+ centered? : boolean
128
+ /**
129
+ * Columns hold their tasks in stores chained off the project's task store. Filters applied to the project store
130
+ * are by default not applied to the column stores; they are only affected by their own filters. By configuring
131
+ * `chainFilters : true`, the filters from the project store will also be taken into account when filtering the
132
+ * columns.
133
+ * ...
134
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-chainFilters)
135
+ */
136
+ chainFilters? : boolean
137
+ /**
138
+ * Custom CSS classes to add to element.
139
+ * May be specified as a space separated string, or as an object in which property names
140
+ * with truthy values are used as the class names:
141
+ * ...
142
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-cls)
143
+ */
144
+ cls? : string|object
145
+ /**
146
+ * Controls whether the panel is collapsed (the body of the panel is hidden while only the header is
147
+ * visible). Only valid if the panel is [collapsible](https://bryntum.com/products/taskboard/docs/api/Core/widget/Panel#config-collapsible).
148
+ */
149
+ collapsed? : boolean
150
+ /**
151
+ * Specify `true` to hide the column title instead of rotating it on collapse.
152
+ * ...
153
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-collapseTitle)
154
+ */
155
+ collapseTitle? : boolean
156
+ /**
157
+ * This config enables collapsibility for the panel. See [collapsed](https://bryntum.com/products/taskboard/docs/api/Core/widget/Panel#config-collapsed).
158
+ * ...
159
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-collapsible)
160
+ */
161
+ collapsible? : boolean|PanelCollapserConfig|PanelCollapserOverlayConfig
162
+ /**
163
+ * Applies the specified color to the widget, by setting the `--b-primary` CSS variable in the widgets
164
+ * `style` block.
165
+ * ...
166
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-color)
167
+ */
168
+ color? : string
169
+ /**
170
+ * Programmatic control over which column to start in when used in a grid layout.
171
+ */
172
+ column? : number
173
+ /**
174
+ * Field on a task record used to determine which column the task belongs to.
175
+ * ...
176
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-columnField)
177
+ */
178
+ columnField? : string
179
+ /**
180
+ * Store containing the TaskBoard columns. A tasks [columnField](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/mixin/TaskBoardColumns#config-columnField) is matched against the `id` of a
181
+ * column to determine in which column it is displayed.
182
+ * ...
183
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-columns)
184
+ */
185
+ columns? : ColumnModel[]|ColumnModelConfig[]|string[]|Store|string|StoreConfig
186
+ /**
187
+ * A function which renders the text, HTML, or `DomConfig` object to show as the column title. If you provide a
188
+ * `DomConfig` object, it will replace the title element and you are responsible for styling it + laying it out.
189
+ * ...
190
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-columnTitleRenderer)
191
+ * @param {object} renderData
192
+ * @param {TaskBoard.model.ColumnModel} columnRecord The column instance
193
+ * @returns {string,DomConfig}
194
+ */
195
+ columnTitleRenderer? : (renderData: object, columnRecord: ColumnModel) => string|DomConfig
196
+ config? : object
197
+ /**
198
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating) or [positioned](#Core/widget/Widget#config-positioned).*
199
+ * Element, Widget or Rectangle to which this Widget is constrained.
200
+ */
201
+ constrainTo? : HTMLElement|Widget|Rectangle
202
+ /**
203
+ * Initial CSS variables to set.
204
+ * ...
205
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-css)
206
+ */
207
+ css? : Record<string, string>
208
+ /**
209
+ * CSS variable prefix, appended to the keys used in [css](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoardBase#config-css).
210
+ * ...
211
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-cssVarPrefix)
212
+ */
213
+ cssVarPrefix? : string
214
+ /**
215
+ * When this Widget configuration is used in the Grid's RowExpander feature's `widget` config, provide the
216
+ * field on the expanded record to use for populating this widget's store (if applicable)
217
+ */
218
+ dataField? : string
219
+ /**
220
+ * Object to apply to elements dataset (each key will be used as a data-attribute on the element)
221
+ */
222
+ dataset? : Record<string, string>
223
+ /**
224
+ * Check for CSS compatibility issues when upgrading to v7. Performs the following checks:
225
+ * ...
226
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-detectCSSCompatibilityIssues)
227
+ */
228
+ detectCSSCompatibilityIssues? : boolean
229
+ /**
230
+ * Disable or enable the widget. It is similar to [readOnly](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-readOnly) except a disabled widget
231
+ * cannot be focused, uses a different rendition (usually greyish) and does not allow selecting its value.
232
+ * ...
233
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-disabled)
234
+ */
235
+ disabled? : boolean|'inert'
236
+ /**
237
+ * Controls the placement of this widget when it is added to a [panel's ](https://bryntum.com/products/taskboard/docs/api/Core/widget/Panel)
238
+ * [strips collection](https://bryntum.com/products/taskboard/docs/api/Core/widget/Panel#config-strips). Typical values for this config are `'top'`,
239
+ * `'bottom'`, `'left'`, or `'right'`, which cause the widget to be placed on that side of the panel's
240
+ * body. Such widgets are called "edge strips".
241
+ * ...
242
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-dock)
243
+ */
244
+ dock? : 'top'|'bottom'|'left'|'right'|'start'|'end'|'header'|'pre-header'|object
245
+ /**
246
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
247
+ * Set to `true` to be able to drag a widget freely on the page. Or set to an object with a ´handleSelector´
248
+ * property which controls when a drag should start.
249
+ * ...
250
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-draggable)
251
+ */
252
+ draggable? : boolean|{
253
+ handleSelector?: string
254
+ }
255
+ /**
256
+ * Make this Panel a docked drawer which slides out from one side of the browser viewport by default.
257
+ * ...
258
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-drawer)
259
+ * @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.
260
+ * @param {string,number} size The size of the drawer in its collapsible axis.
261
+ * @param {boolean} inline If using the [appendTo](https://bryntum.com/products/taskboard/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.
262
+ * @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.
263
+ * @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.
264
+ * @param {boolean,string} autoClose.focusout If focus moves outside of the drawer, the drawer will automatically be hidden.
265
+ * @param {string} autoClose.mouseout Hides the drawer when the mouse leaves the drawer after the `autoCloseDelay` period.
266
+ * @param {number} autoCloseDelay When using `mouseout`, this is the delay in milliseconds
267
+ */
268
+ 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}
269
+ /**
270
+ * Whether to draw cards on scroll, or only when scrolling ends.
271
+ * ...
272
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-drawOnScroll)
273
+ */
274
+ drawOnScroll? : boolean
275
+ /**
276
+ * An object specifying attributes to assign to the root element of this widget.
277
+ * Set `null` value to attribute to remove it.
278
+ * ...
279
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-elementAttributes)
280
+ */
281
+ elementAttributes? : Record<string, string|null>
282
+ extraData? : any
283
+ /**
284
+ * When this widget is a child of a [Container](https://bryntum.com/products/taskboard/docs/api/Core/widget/Container), it will by default be participating in a
285
+ * flexbox layout. This config allows you to set this widget's
286
+ * [flex](https://developer.mozilla.org/en-US/docs/Web/CSS/flex) style.
287
+ * This may be configured as a single number or a `&lt;flex-grow&gt; &lt;flex-shrink&gt; &lt;flex-basis&gt;` format string.
288
+ * numeric-only values are interpreted as the `flex-grow` value.
289
+ */
290
+ flex? : number|string
291
+ /**
292
+ * Set to `true` to move the widget out of the document flow and position it
293
+ * absolutely in browser viewport space.
294
+ */
295
+ floating? : boolean
296
+ /**
297
+ * Config object of a footer. May contain a `dock`, `html` and a `cls` property. A footer is not a widget,
298
+ * but rather plain HTML that follows the last element of the panel's body and [strips](https://bryntum.com/products/taskboard/docs/api/Core/widget/Panel#config-strips).
299
+ * ...
300
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-footer)
301
+ */
302
+ footer? : {
303
+ dock?: 'top'|'right'|'bottom'|'left'|'start'|'end'
304
+ html?: string
305
+ cls?: string
306
+ }|string
307
+ /**
308
+ * Items to add to each card's footer.
309
+ * ...
310
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-footerItems)
311
+ */
312
+ footerItems? : Record<string, TaskItemOptions>
313
+ /**
314
+ * The function is called for each task as part of the render loop, and is expected to return the height in
315
+ * pixels for the task. Using this function is only recommended when using partial virtualized rendering, see
316
+ * the [virtualize](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/mixin/TaskBoardVirtualization#config-virtualize) setting.
317
+ * ...
318
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-getTaskHeight)
319
+ * @param {TaskBoard.model.TaskModel} taskRecord The task record
320
+ * @returns {number} The height of the task in pixels
321
+ */
322
+ getTaskHeight? : (taskRecord: TaskModel) => number
323
+ /**
324
+ * A config [object](https://bryntum.com/products/taskboard/docs/api/Core/widget/Panel#typedef-PanelHeader) for the panel's header or a string in place of a `title`.
325
+ * ...
326
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-header)
327
+ */
328
+ header? : string|boolean|PanelHeader
329
+ /**
330
+ * Items to add to each card's header.
331
+ * ...
332
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-headerItems)
333
+ */
334
+ headerItems? : Record<string, TaskItemOptions>
335
+ /**
336
+ * Widget's height, used to set element `style.height`. Either specify a valid height string or a number,
337
+ * which will get 'px' appended. We recommend using CSS as the primary way to control height, but in some
338
+ * cases this config is convenient.
339
+ */
340
+ height? : string|number
341
+ /**
342
+ * Configure with true to make widget initially hidden.
343
+ */
344
+ hidden? : boolean
345
+ /**
346
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
347
+ * ...
348
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-hideAnimation)
349
+ */
350
+ hideAnimation? : boolean|object
351
+ /**
352
+ * By default, the header text is HTML-encoded. Set this flag to `false` disable this and allow html
353
+ * elements in the column headers. Can also be specified on a single
354
+ * [column](https://bryntum.com/products/taskboard/docs/api/TaskBoard/model/ColumnModel#field-htmlEncodeHeaderText).
355
+ */
356
+ htmlEncodeHeaderText? : boolean
357
+ /**
358
+ * An icon to show before the [title](https://bryntum.com/products/taskboard/docs/api/Core/widget/Panel#config-title). Either pass a CSS class as a string, or pass a
359
+ * [DomConfig](https://bryntum.com/products/taskboard/docs/api/Core/helper/DomHelper#typedef-DomConfig) object describing an element to represent the icon.
360
+ */
361
+ icon? : string|DomConfig
362
+ /**
363
+ * Widget id, if not specified one will be generated. Also used for lookups through Widget.getById
364
+ */
365
+ id? : string
366
+ /**
367
+ * Determines if the widgets read-only state should be controlled by its parent.
368
+ * ...
369
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-ignoreParentReadOnly)
370
+ */
371
+ ignoreParentReadOnly? : boolean
372
+ /**
373
+ * Convenience setting to align input fields of child widgets. By default, the Field input element is
374
+ * placed immediately following the `label`. If you prefer to have all input fields aligned to the
375
+ * right, set this config to `'end'`.
376
+ * ...
377
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-inputFieldAlign)
378
+ */
379
+ inputFieldAlign? : 'start'|'end'
380
+ /**
381
+ * Element (or element id) to insert this widget before. If provided, [appendTo](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-appendTo) config is ignored.
382
+ */
383
+ insertBefore? : HTMLElement|string
384
+ /**
385
+ * Element (or element id) to append this widget element to, as a first child. If provided, [appendTo](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-appendTo) config is ignored.
386
+ */
387
+ insertFirst? : HTMLElement|string
388
+ /**
389
+ * A template method (empty by default) allowing you to control if a task can be selected or not.
390
+ * ...
391
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-isTaskSelectable)
392
+ * @param {TaskBoard.model.TaskModel} taskRecord The task record
393
+ * @returns {boolean} `true` if the task can be selected, otherwise `false`
394
+ */
395
+ isTaskSelectable? : (taskRecord: TaskModel) => boolean
396
+ /**
397
+ * See [Keyboard shortcuts](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#keyboard-shortcuts) for details
398
+ */
399
+ keyMap? : Record<string, KeyMapConfig>
400
+ /**
401
+ * Convenience setting to use same label placement on all child widgets.
402
+ * ...
403
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-labelPosition)
404
+ */
405
+ labelPosition? : 'before'|'above'|'align-before'|'auto'|null
406
+ /**
407
+ * The listener set for this object.
408
+ * ...
409
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-listeners)
410
+ */
411
+ listeners? : TaskBoardListeners
412
+ /**
413
+ * A [Mask](https://bryntum.com/products/taskboard/docs/api/Core/widget/Mask) config object, or a message to be shown when a store is performing a remote
414
+ * operation, or Crud Manager is loading data from the sever. Set to `null` to disable default load mask.
415
+ */
416
+ loadMask? : string|MaskConfig|null
417
+ /**
418
+ * A [Mask](https://bryntum.com/products/taskboard/docs/api/Core/widget/Mask) config object to adjust the [maskDefaults](#Core/widget/Widget#config-maskDefaults)
419
+ * when data is loading. The message and optional configuration from the
420
+ * [loadMask](https://bryntum.com/products/taskboard/docs/api/Core/mixin/LoadMaskable#config-loadMask) config take priority over these options, just as they do
421
+ * for `maskDefaults`, respectively.
422
+ * ...
423
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-loadMaskDefaults)
424
+ */
425
+ loadMaskDefaults? : MaskConfig
426
+ /**
427
+ * A [Mask](https://bryntum.com/products/taskboard/docs/api/Core/widget/Mask) config object to adjust the [maskDefaults](#Core/widget/Widget#config-maskDefaults)
428
+ * when an error occurs loading data.
429
+ * ...
430
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-loadMaskError)
431
+ */
432
+ loadMaskError? : MaskConfig|Mask|boolean
433
+ /**
434
+ * A class translations of which are used for translating this entity.
435
+ * This is often used when translations of an item are defined on its container class.
436
+ * For example:
437
+ * ...
438
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-localeClass)
439
+ */
440
+ localeClass? : typeof Base
441
+ /**
442
+ * Set to `false` to disable localization of this object.
443
+ */
444
+ localizable? : boolean
445
+ /**
446
+ * List of properties which values should be translated automatically upon a locale applying.
447
+ * In case there is a need to localize not typical value (not a String value or a field with re-defined setter/getter),
448
+ * you could use 'localeKey' meta configuration.
449
+ * Example:
450
+ * ...
451
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-localizableProperties)
452
+ */
453
+ localizableProperties? : string[]
454
+ /**
455
+ * Widget's margin. This may be configured as a single number or a `TRBL` format string.
456
+ * numeric-only values are interpreted as pixels.
457
+ */
458
+ margin? : number|string
459
+ /**
460
+ * This config object contains the defaults for the [Mask](https://bryntum.com/products/taskboard/docs/api/Core/widget/Mask) created for the
461
+ * [masked](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-masked) config. Any properties specified in the `masked` config will override these
462
+ * values.
463
+ */
464
+ maskDefaults? : MaskConfig
465
+ /**
466
+ * Set to `true` to apply the default mask to the widget. Alternatively, this can be the mask message or a
467
+ * [Mask](https://bryntum.com/products/taskboard/docs/api/Core/widget/Mask) config object.
468
+ */
469
+ masked? : boolean|string|MaskConfig
470
+ /**
471
+ * The element's maxHeight. Can be either a String or a Number (which will have 'px' appended). Note that
472
+ * like [height](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-height), *reading* the value will return the numeric value in pixels.
473
+ */
474
+ maxHeight? : string|number
475
+ /**
476
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
477
+ * ...
478
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-maximizeOnMobile)
479
+ */
480
+ maximizeOnMobile? : number|string
481
+ /**
482
+ * The elements maxWidth. Can be either a String or a Number (which will have 'px' appended). Note that
483
+ * like [width](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-width), *reading* the value will return the numeric value in pixels.
484
+ */
485
+ maxWidth? : string|number
486
+ /**
487
+ * The element's minHeight. Can be either a String or a Number (which will have 'px' appended). Note that
488
+ * like [height](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-height), *reading* the value will return the numeric value in pixels.
489
+ */
490
+ minHeight? : string|number
491
+ /**
492
+ * The elements minWidth. Can be either a String or a Number (which will have 'px' appended). Note that
493
+ * like [width](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-width), *reading* the value will return the numeric value in pixels.
494
+ */
495
+ minWidth? : string|number
496
+ /**
497
+ * Default values to apply to task records created by task boards features (such as the column header menu and
498
+ * the column toolbar)
499
+ */
500
+ newTaskDefaults? : TaskModelConfig
501
+ /**
502
+ * The owning Widget of this Widget. If this Widget is directly contained (that is, it is one of the
503
+ * [items](https://bryntum.com/products/taskboard/docs/api/Core/widget/Container#property-items) of a Container), this config will be ignored. In this case
504
+ * the owner is <strong>always</strong> the encapsulating Container.
505
+ * ...
506
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-owner)
507
+ */
508
+ owner? : Widget|any
509
+ /**
510
+ * Specify plugins (an array of classes) in config
511
+ */
512
+ plugins? : Function[]
513
+ /**
514
+ * Set to `true` when a widget is rendered into another widget's [contentElement](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#property-contentElement), but must
515
+ * not participate in the standard layout of that widget, and must be positioned relatively to that
516
+ * widget's [contentElement](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#property-contentElement).
517
+ * ...
518
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-positioned)
519
+ */
520
+ positioned? : boolean
521
+ /**
522
+ * A function called on each render before adding items to a tasks card, allowing runtime manipulation of them.
523
+ * ...
524
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-processItems)
525
+ * @param {object} context
526
+ * @param {Record<string, TaskItemOptions>} context.headerItems Item config objects for the task header, keyed by ref
527
+ * @param {Record<string, TaskItemOptions>} context.bodyItems Item config objects for the task body, keyed by ref
528
+ * @param {Record<string, TaskItemOptions>} context.footerItems Item config objects for the task footer, keyed by ref
529
+ * @param {TaskBoard.model.TaskModel} context.taskRecord Record representing task to be rendered
530
+ * @returns {boolean,void} Returning `false` from this function prevents the menu being shown
531
+ */
532
+ processItems? : (context: { headerItems: Record<string, TaskItemOptions>, bodyItems: Record<string, TaskItemOptions>, footerItems: Record<string, TaskItemOptions>, taskRecord: TaskModel }) => boolean|void
533
+ /**
534
+ * A [project config object](https://bryntum.com/products/taskboard/docs/api/TaskBoard/model/ProjectModel#configs) or an instance that holds all stores and
535
+ * data used by the TaskBoard.
536
+ * ...
537
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-project)
538
+ */
539
+ project? : ProjectModel|ProjectModelConfig|RefObject<any>
540
+ /**
541
+ * Whether this widget is read-only. This is only valid if the widget is an input
542
+ * field, <strong>or contains input fields at any depth</strong>.
543
+ * ...
544
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-readOnly)
545
+ */
546
+ readOnly? : boolean
547
+ /**
548
+ * [Record](https://bryntum.com/products/taskboard/docs/api/Core/data/Model) whose values will be used to populate fields in the container.
549
+ * ...
550
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-record)
551
+ */
552
+ record? : Model
553
+ relayStoreEvents? : boolean
554
+ /**
555
+ * Either a default `rendition` to apply to all child widgets, or a map of renditions keyed by child widget
556
+ * `type`.
557
+ * ...
558
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-rendition)
559
+ */
560
+ rendition? : string|Record<string, string>|null
561
+ /**
562
+ * Path to load resource images from. Used by the for example the resource picker in the task editor and by the
563
+ * ResourceAvatars task item. Set this to display miniature images for each resource using their `image` field.
564
+ * ...
565
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-resourceImagePath)
566
+ */
567
+ resourceImagePath? : string
568
+ /**
569
+ * Inline [resources](https://bryntum.com/products/scheduler/docs#Scheduler/model/ResourceModel), will be loaded into an internally created
570
+ * [ResourceStore](https://bryntum.com/products/scheduler/docs#Scheduler/data/ResourceStore) as a part of a [project](https://bryntum.com/products/taskboard/docs/api/TaskBoard/model/ProjectModel).
571
+ */
572
+ resources? : ResourceModel[]|object[]|ResourceModelConfig[]
573
+ /**
574
+ * Specifies the various responsive state objects keyed by their name. Each key (except `'*'`, see below) in
575
+ * this object is a state name (see [responsiveState](https://bryntum.com/products/taskboard/docs/api/Core/widget/mixin/Responsive#config-responsiveState)) and its corresponding value is the
576
+ * associated [ResponsiveState](https://bryntum.com/products/taskboard/docs/api/Core/widget/mixin/Responsive#typedef-ResponsiveState) object.
577
+ * ...
578
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-responsive)
579
+ */
580
+ responsive? : object
581
+ /**
582
+ * Set to `true` to mark this instance as the default [responsiveTarget](https://bryntum.com/products/taskboard/docs/api/Core/widget/mixin/Responsive#config-responsiveTarget) for descendants that do
583
+ * not specify an explicit [responsiveTarget](https://bryntum.com/products/taskboard/docs/api/Core/widget/mixin/Responsive#config-responsiveTarget) of their own.
584
+ */
585
+ responsiveRoot? : boolean
586
+ /**
587
+ * The name of the active state of the [responsive](https://bryntum.com/products/taskboard/docs/api/Core/widget/mixin/Responsive#config-responsive) config. This is assigned internally
588
+ * and should not be assigned directly.
589
+ */
590
+ responsiveState? : string
591
+ /**
592
+ * The widget whose size and other properties drive this object's responsive behavior. If this config is not
593
+ * specified, the closest ancestor that specified [responsiveRoot=true](https://bryntum.com/products/taskboard/docs/api/Core/widget/mixin/Responsive#config-responsiveRoot) will be
594
+ * used. If there is no such ancestor, then the instance using this mixin is used.
595
+ * ...
596
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-responsiveTarget)
597
+ */
598
+ responsiveTarget? : string|Widget
599
+ /**
600
+ * 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`
601
+ */
602
+ rootElement? : ShadowRoot|HTMLElement
603
+ /**
604
+ * This may be configured as `true` to make the widget's element use the `direction:rtl` style.
605
+ * ...
606
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-rtl)
607
+ */
608
+ rtl? : boolean
609
+ /**
610
+ * Specifies whether (and optionally in which axes) a Widget may scroll. `true` means this widget may scroll
611
+ * in both axes. May be an object containing boolean `overflowX` and `overflowY` properties which are
612
+ * applied to CSS style properties `overflowX` and `overflowY`. If they are boolean, they are translated to
613
+ * CSS overflow properties thus:
614
+ * ...
615
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-scrollable)
616
+ */
617
+ scrollable? : boolean|ScrollerConfig|Scroller
618
+ /**
619
+ * Defines what to do if document is scrolled while Widget is visible (only relevant when floating is set to `true`).
620
+ * Valid values: ´null´: do nothing, ´hide´: hide the widget or ´realign´: realign to the target if possible.
621
+ */
622
+ scrollAction? : 'hide'|'realign'|null
623
+ /**
624
+ * Configuration values for the [ScrollManager](https://bryntum.com/products/taskboard/docs/api/Core/util/ScrollManager) class. It is used to manage column/body
625
+ * scrolling during task, column or swimlane drag.
626
+ * ...
627
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-scrollManager)
628
+ */
629
+ scrollManager? : ScrollManagerConfig
630
+ /**
631
+ * Default scroll options, see the options for [scrollIntoView](https://bryntum.com/products/taskboard/docs/api/Core/helper/util/Scroller#function-scrollIntoView)
632
+ * ...
633
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-scrollOptions)
634
+ */
635
+ scrollOptions? : BryntumScrollOptions
636
+ /**
637
+ * Selected tasks.
638
+ */
639
+ selectedTasks? : TaskModel[]
640
+ /**
641
+ * Configure with `true` to change the default behaviour of keyboard navigation from moving focus to selecting
642
+ * tasks:
643
+ * ...
644
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-selectOnNavigation)
645
+ */
646
+ selectOnNavigation? : boolean|string
647
+ /**
648
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
649
+ * ...
650
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-showAnimation)
651
+ */
652
+ showAnimation? : boolean|object
653
+ /**
654
+ * Show an icon to expand/collapse columns and swimlanes in their headers.
655
+ * ...
656
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-showCollapseInHeader)
657
+ */
658
+ showCollapseInHeader? : boolean
659
+ /**
660
+ * By default, a tooltip showing `Expand XX`/`Collapse XX` is shown when hovering the expand/collapse icon for
661
+ * a column or swimlane. To disable the tooltip, set this to `false`.
662
+ */
663
+ showCollapseTooltip? : boolean
664
+ /**
665
+ * Show task count for a column in its header, appended after the title
666
+ * ...
667
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-showCountInHeader)
668
+ */
669
+ showCountInHeader? : boolean
670
+ /**
671
+ * Programmatic control over how many columns to span when used in a grid layout.
672
+ */
673
+ span? : number
674
+ /**
675
+ * This value can be one of the following:
676
+ * ...
677
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-stateful)
678
+ */
679
+ stateful? : boolean|object|string[]
680
+ /**
681
+ * The events that, when fired by this component, should trigger it to save its state by calling
682
+ * [saveState](https://bryntum.com/products/taskboard/docs/api/Core/mixin/State#function-saveState).
683
+ * ...
684
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-statefulEvents)
685
+ */
686
+ statefulEvents? : object|string[]
687
+ /**
688
+ * The key to use when saving this object's state in the [stateProvider](https://bryntum.com/products/taskboard/docs/api/Core/mixin/State#config-stateProvider). If this config is
689
+ * not assigned, and [stateful](https://bryntum.com/products/taskboard/docs/api/Core/mixin/State#config-stateful) is not set to `false`, the [id](#Core/widget/Widget#config-id)
690
+ * (if explicitly specified) will be used as the `stateId`.
691
+ * ...
692
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-stateId)
693
+ */
694
+ stateId? : string
695
+ /**
696
+ * The `StateProvider` to use to save and restore this object's [state](https://bryntum.com/products/taskboard/docs/api/Core/mixin/State#property-state). By default, `state`
697
+ * will be saved using the [default state provider](https://bryntum.com/products/taskboard/docs/api/Core/state/StateProvider#property-instance-static).
698
+ * ...
699
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-stateProvider)
700
+ */
701
+ stateProvider? : StateProvider
702
+ /**
703
+ * Makes column and swimlane headers sticky
704
+ * ...
705
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-stickyHeaders)
706
+ */
707
+ stickyHeaders? : boolean
708
+ /**
709
+ * Setting this will cause cards to expand to share the available width if there are fewer than
710
+ * [tasksPerRow](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoardBase#config-tasksPerRow).
711
+ * ...
712
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-stretchCards)
713
+ */
714
+ stretchCards? : boolean
715
+ /**
716
+ * Specify `true` to match fields by their `name` property only when assigning a [record](https://bryntum.com/products/taskboard/docs/api/Core/widget/Container#config-record),
717
+ * without falling back to `ref`.
718
+ */
719
+ strictRecordMapping? : boolean
720
+ /**
721
+ * An object containing widgets keyed by name. By default (when no `type` is given), strips are
722
+ * [toolbars](https://bryntum.com/products/taskboard/docs/api/Core/widget/Toolbar). If you want to pass an array, you can use
723
+ * the toolbar's [items](https://bryntum.com/products/taskboard/docs/api/Core/widget/Container#config-items).
724
+ * ...
725
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-strips)
726
+ */
727
+ strips? : Record<string, TaskBoardContainerItemConfig>
728
+ /**
729
+ * Field on a task record used to determine which swimlane the task belongs to.
730
+ * ...
731
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-swimlaneField)
732
+ */
733
+ swimlaneField? : string
734
+ /**
735
+ * An empty function by default, but provided so that you can override it. This function is called each time
736
+ * a swimlane is rendered into the task board. It allows you to manipulate the DOM config object used for the
737
+ * swimlane before it is synced to DOM, thus giving you control over styling and contents.
738
+ * ...
739
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-swimlaneRenderer)
740
+ * @param {object} detail An object containing the information needed to render a swimlane.
741
+ * @param {TaskBoard.model.SwimlaneModel} detail.swimlaneRecord The swimlane.
742
+ * @param {DomConfig} detail.swimlaneConfig DOM config object for the swimlane
743
+ * @returns {void}
744
+ */
745
+ swimlaneRenderer? : (detail: { swimlaneRecord: SwimlaneModel, swimlaneConfig: DomConfig }) => void
746
+ /**
747
+ * Store containing the TaskBoard swimlanes. A tasks [swimlaneField](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/mixin/TaskBoardSwimlanes#config-swimlaneField) is matched against the `id`
748
+ * of a swimlane to determine in which swimlane it is displayed.
749
+ * ...
750
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-swimlanes)
751
+ */
752
+ swimlanes? : SwimlaneModel[]|SwimlaneModelConfig[]|Store|string|StoreConfig
753
+ /**
754
+ * TaskBoard does not use a sync mask by default. If you want one, see
755
+ * [syncMask](https://bryntum.com/products/taskboard/docs/api/Core/mixin/LoadMaskable#config-syncMask) for configuration options.
756
+ */
757
+ syncMask? : string|object|null
758
+ /**
759
+ * A configuration for the [tab](https://bryntum.com/products/taskboard/docs/api/Core/widget/Tab) created for this widget when it is placed in a
760
+ * [TabPanel](https://bryntum.com/products/taskboard/docs/api/Core/widget/TabPanel). For example, this config can be used to control the icon of the `tab` for
761
+ * this widget:
762
+ * ...
763
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-tab)
764
+ */
765
+ tab? : boolean|TabConfig
766
+ /**
767
+ * When this container is used as a tab in a TabPanel, these items are added to the
768
+ * [TabBar](https://bryntum.com/products/taskboard/docs/api/Core/widget/TabBar) when this container is the active tab.
769
+ * ...
770
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-tabBarItems)
771
+ */
772
+ tabBarItems? : ToolbarItems[]|Widget[]
773
+ /**
774
+ * An empty function by default, but provided so that you can override it. This function is called each time
775
+ * a task is rendered into the task board. It allows you to manipulate the DOM config object used for the card
776
+ * before it is synced to DOM, thus giving you control over styling and contents.
777
+ * ...
778
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-taskRenderer)
779
+ * @param {object} detail An object containing the information needed to render a task.
780
+ * @param {TaskBoard.model.TaskModel} detail.taskRecord The task record.
781
+ * @param {TaskBoard.model.ColumnModel} detail.columnRecord The column the task will be displayed in.
782
+ * @param {TaskBoard.model.SwimlaneModel} detail.swimlaneRecord The swimlane the task will be displayed in.
783
+ * @param {DomConfig} detail.cardConfig DOM config object for the cards element
784
+ * @returns {void}
785
+ */
786
+ taskRenderer? : (detail: { taskRecord: TaskModel, columnRecord: ColumnModel, swimlaneRecord: SwimlaneModel, cardConfig: DomConfig }) => void
787
+ /**
788
+ * Inline [tasks](https://bryntum.com/products/taskboard/docs/api/TaskBoard/model/TaskModel), will be loaded into an internally created
789
+ * [TaskStore](https://bryntum.com/products/taskboard/docs/api/TaskBoard/store/TaskStore) as a part of a [project](#TaskBoard/model/ProjectModel).
790
+ */
791
+ tasks? : TaskModel[]|object[]|TaskModelConfig[]
792
+ /**
793
+ * Allows sorting tasks in the UI independent of how they are sorted in the task store.
794
+ * ...
795
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-taskSorterFn)
796
+ * @param {TaskBoard.model.TaskModel} first The first task to compare
797
+ * @param {TaskBoard.model.TaskModel} second The second task to compare
798
+ * @returns {number} Return `1` if first task is greater than second task, `-1` if the opposite is true or `0` if they are equal
799
+ */
800
+ taskSorterFn? : boolean|((first: TaskModel, second: TaskModel) => number)
801
+ /**
802
+ * Controls how many cards are rendered to a row in each column. Can be controlled on a per column basis by
803
+ * setting [tasksPerRow](https://bryntum.com/products/taskboard/docs/api/TaskBoard/model/ColumnModel#field-tasksPerRow)
804
+ * ...
805
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-tasksPerRow)
806
+ */
807
+ tasksPerRow? : number
808
+ /**
809
+ * A Config object representing the configuration of a [Toolbar](https://bryntum.com/products/taskboard/docs/api/Core/widget/Toolbar),
810
+ * or array of config objects representing the child items of a Toolbar.
811
+ * This creates a toolbar docked to the top of the panel immediately below the header.
812
+ * ...
813
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-tbar)
814
+ */
815
+ tbar? : (TaskBoardContainerItemConfig|string)[]|ToolbarConfig|PagingToolbarConfig|null
816
+ /**
817
+ * A title to display in the header or owning TabPanel. Causes creation and docking of a header
818
+ * to the top if no header is configured.
819
+ * ...
820
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-title)
821
+ */
822
+ title? : string
823
+ /**
824
+ * The [tools](https://bryntum.com/products/taskboard/docs/api/Core/widget/Tool) to add either before or after the `title` in the Panel header. Each
825
+ * property name is the reference by which an instantiated tool may be retrieved from the live
826
+ * `[tools](https://bryntum.com/products/taskboard/docs/api/Core/widget/mixin/Toolable#property-tools)` property.
827
+ * ...
828
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-tools)
829
+ */
830
+ tools? : Record<string, ToolConfig>|null
831
+ type? : 'taskboard'
832
+ /**
833
+ * Custom CSS class name suffixes to apply to the elements rendered by this widget. This may be specified
834
+ * as a space separated string, an array of strings, or as an object in which property names with truthy
835
+ * values are used as the class names.
836
+ * ...
837
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-ui)
838
+ */
839
+ ui? : 'plain'|'toolbar'|string|object
840
+ /**
841
+ * Experimental, animate actions that cannot be animated using CSS transitions. Currently includes:
842
+ * ...
843
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-useDomTransition)
844
+ */
845
+ useDomTransition? : boolean
846
+ /**
847
+ * By turning on this setting you enable partial virtualized rendering for the board, which reduces initial
848
+ * rendering time and makes interaction less sluggish when using thousands of tasks. The tradeoff is that
849
+ * scrolling in most cases will be slower.
850
+ * ...
851
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-virtualize)
852
+ */
853
+ virtualize? : boolean
854
+ /**
855
+ * A widgets weight determines its position among siblings when added to a [Container](https://bryntum.com/products/taskboard/docs/api/Core/widget/Container).
856
+ * Higher weights go further down.
857
+ */
858
+ weight? : number
859
+ /**
860
+ * Widget's width, used to set element `style.width`. Either specify a valid width string or a number, which
861
+ * will get 'px' appended. We recommend using CSS as the primary way to control width, but in some cases
862
+ * this config is convenient.
863
+ */
864
+ width? : string|number
865
+ /**
866
+ * The x position for the widget.
867
+ * ...
868
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-x)
869
+ */
870
+ x? : number
871
+ /**
872
+ * The y position for the widget.
873
+ * ...
874
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-y)
875
+ */
876
+ y? : number
877
+
878
+ // Events
879
+ /**
880
+ * Triggered when a task is "activated" by pressing `Enter` or double clicking it.
881
+ * ...
882
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-activateTask)
883
+ * @param {object} event Event object
884
+ * @param {TaskBoard.view.TaskBoard} event.source This TaskBoard
885
+ * @param {TaskBoard.model.TaskModel} event.taskRecord Task record
886
+ * @param {MouseEvent} event.event Browser event
887
+ */
888
+ onActivateTask? : ((event: { source: TaskBoard, taskRecord: TaskModel, event: MouseEvent }) => void)|string
889
+ /**
890
+ * Fires on the owning TaskBoard before column dragging starts. Return `false` to prevent the action
891
+ * @param {object} event Event object
892
+ * @param {TaskBoard.view.TaskBoard} event.source Owning TaskBoard
893
+ * @param {TaskBoard.model.ColumnModel} event.columnRecord Column to be dragged
894
+ */
895
+ onBeforeColumnDrag? : ((event: { source: TaskBoard, columnRecord: ColumnModel }) => Promise<boolean>|boolean|void)|string
896
+ /**
897
+ * Fires on the owning TaskBoard when dropping a column, before the operation completes. Handles async
898
+ * listeners, returning `false` from one will abort the operation
899
+ * ...
900
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-beforeColumnDrop)
901
+ * @param {object} event Event object
902
+ * @param {TaskBoard.view.TaskBoard} event.source Owning TaskBoard
903
+ * @param {TaskBoard.model.ColumnModel} event.columnRecord Dropped column
904
+ * @param {TaskBoard.model.ColumnModel} event.beforeColumn Dropped before this column
905
+ */
906
+ onBeforeColumnDrop? : ((event: { source: TaskBoard, columnRecord: ColumnModel, beforeColumn: ColumnModel }) => Promise<boolean>|boolean|void)|string
907
+ /**
908
+ * This event is fired prior to starting a column resize gesture. The resize is canceled if a listener returns
909
+ * `false`.
910
+ * @param {object} event Event object
911
+ * @param {TaskBoard.view.TaskBoard} event.source The TaskBoard instance
912
+ * @param {TaskBoard.model.ColumnModel} event.column The column
913
+ * @param {Event} event.domEvent The browser event
914
+ */
915
+ onBeforeColumnResize? : ((event: { source: TaskBoard, column: ColumnModel, domEvent: Event }) => Promise<boolean>|boolean|void)|string
916
+ /**
917
+ * Fires before an object is destroyed.
918
+ * @param {object} event Event object
919
+ * @param {Core.Base} event.source The Object that is being destroyed.
920
+ */
921
+ onBeforeDestroy? : ((event: { source: Base }) => void)|string
922
+ /**
923
+ * Triggered before a widget is hidden. Return `false` to prevent the action.
924
+ * @param {object} event Event object
925
+ * @param {Core.widget.Widget} event.source The widget being hidden.
926
+ */
927
+ onBeforeHide? : ((event: { source: Widget }) => Promise<boolean>|boolean|void)|string
928
+ /**
929
+ * Triggered before a new [responsiveState](https://bryntum.com/products/taskboard/docs/api/Core/widget/mixin/Responsive#config-responsiveState) is applied.
930
+ * @param {object} event Event object
931
+ * @param {Core.widget.Widget} event.source The widget whose `responsiveState` is to be changed
932
+ * @param {string} event.state The new value for the widget's `responsiveState`
933
+ * @param {string} event.oldState The previous value for the widget's `responsiveState`
934
+ */
935
+ onBeforeResponsiveStateChange? : ((event: { source: Widget, state: string, oldState: string }) => void)|string
936
+ /**
937
+ * Triggered before a widget is shown. Return `false` to prevent the action.
938
+ * @param {object} event Event object
939
+ * @param {Core.widget.Widget,any} event.source The widget being shown
940
+ */
941
+ onBeforeShow? : ((event: { source: Widget|any }) => Promise<boolean>|boolean|void)|string
942
+ /**
943
+ * Fires on the owning TaskBoard before displaying an inline editor. Returning `false` stops the editor from
944
+ * being shown.
945
+ * ...
946
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-beforeSimpleTaskEdit)
947
+ * @param {object} event Event object
948
+ * @param {TaskBoard.view.TaskBoard} event.source The task board
949
+ * @param {TaskBoard.feature.SimpleTaskEdit} event.simpleTaskEdit The simpleTaskEdit feature
950
+ * @param {TaskBoard.model.TaskModel} event.taskRecord The record about to be shown in the editor
951
+ * @param {string} event.field Field name being edited
952
+ */
953
+ onBeforeSimpleTaskEdit? : ((event: { source: TaskBoard, simpleTaskEdit: SimpleTaskEdit, taskRecord: TaskModel, field: string }) => Promise<boolean>|boolean|void)|string
954
+ /**
955
+ * Fired before state is applied to the source. Allows editing the state object or preventing the operation.
956
+ * @param {object} event Event object
957
+ * @param {any} event.state State object config
958
+ */
959
+ onBeforeStateApply? : ((event: { state: any }) => Promise<boolean>|boolean|void)|string
960
+ /**
961
+ * Fired before state is saved by the StateProvider. Allows editing the state object or preventing the operation.
962
+ * @param {object} event Event object
963
+ * @param {any} event.state State object config
964
+ */
965
+ onBeforeStateSave? : ((event: { state: any }) => Promise<boolean>|boolean|void)|string
966
+ /**
967
+ * Fires on the owning TaskBoard before task dragging starts. Return `false` to prevent the action
968
+ * @param {object} event Event object
969
+ * @param {TaskBoard.view.TaskBoard} event.source Owning TaskBoard
970
+ * @param {TaskBoard.model.TaskModel[]} event.taskRecords Tasks to be dragged
971
+ * @param {Event} event.domEvent The mouse event
972
+ */
973
+ onBeforeTaskDrag? : ((event: { source: TaskBoard, taskRecords: TaskModel[], domEvent: Event }) => Promise<boolean>|boolean|void)|string
974
+ /**
975
+ * Fires on the owning TaskBoard when tasks are dropped, before the operation completes. Handles async
976
+ * listeners, returning `false` from one will abort the operation
977
+ * ...
978
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-beforeTaskDrop)
979
+ * @param {object} event Event object
980
+ * @param {TaskBoard.view.TaskBoard} event.source Owning TaskBoard
981
+ * @param {TaskBoard.model.TaskModel[]} event.taskRecords Dropped tasks
982
+ * @param {TaskBoard.model.ColumnModel} event.targetColumn Dropped on this column
983
+ * @param {TaskBoard.model.SwimlaneModel} event.targetSwimlane Dropped in this swimlane (if used)
984
+ * @param {Event} event.domEvent The mouse event
985
+ */
986
+ onBeforeTaskDrop? : ((event: { source: TaskBoard, taskRecords: TaskModel[], targetColumn: ColumnModel, targetSwimlane: SwimlaneModel, domEvent: Event }) => Promise<boolean>|boolean|void)|string
987
+ /**
988
+ * Fires on the owning TaskBoard before a task is displayed in an editor.
989
+ * ...
990
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-beforeTaskEdit)
991
+ * @param {object} event Event object
992
+ * @param {TaskBoard.view.TaskBoard} event.source The owning TaskBoard
993
+ * @param {TaskBoard.model.TaskModel} event.taskRecord The record about to be shown in the task editor
994
+ */
995
+ onBeforeTaskEdit? : ((event: { source: TaskBoard, taskRecord: TaskModel }) => Promise<boolean>|boolean|void)|string
996
+ /**
997
+ * Fires on the owning TaskBoard when the editor for a task is available, but before it is populated with data
998
+ * and shown. Allows manipulating fields etc.
999
+ * ...
1000
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-beforeTaskEditShow)
1001
+ * @param {object} event Event object
1002
+ * @param {TaskBoard.view.TaskBoard} event.source The owning TaskBoard
1003
+ * @param {TaskBoard.model.TaskModel} event.taskRecord The record about to be shown in the task editor
1004
+ * @param {TaskBoard.widget.TaskEditor} event.editor The editor
1005
+ */
1006
+ onBeforeTaskEditShow? : ((event: { source: TaskBoard, taskRecord: TaskModel, editor: TaskEditor }) => void)|string
1007
+ /**
1008
+ * Triggered when one or more tasks are to be removed by a call to `removeTask()`.
1009
+ * ...
1010
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-beforeTaskRemove)
1011
+ * @param {object} event Event object
1012
+ * @param {TaskBoard.view.TaskBoard} event.source This TaskBoard
1013
+ * @param {TaskBoard.model.TaskModel[]} event.taskRecords Task records to be removed
1014
+ */
1015
+ onBeforeTaskRemove? : ((event: { source: TaskBoard, taskRecords: TaskModel[] }) => Promise<boolean>|boolean|void)|string
1016
+ /**
1017
+ * Fires when any other event is fired from the object.
1018
+ * ...
1019
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-catchAll)
1020
+ * @param {object} event Event object
1021
+ * @param {{[key: string]: any, type: string}} event.event The Object that contains event details
1022
+ * @param {string} event.event.type The type of the event which is caught by the listener
1023
+ */
1024
+ onCatchAll? : ((event: {[key: string]: any, type: string}) => void)|string
1025
+ /**
1026
+ * This event fires on the owning TaskBoard when an item is selected in the column header menu.
1027
+ * @param {object} event Event object
1028
+ * @param {TaskBoard.view.TaskBoard} event.source The grid
1029
+ * @param {Core.widget.Menu} event.menu The menu
1030
+ * @param {Core.widget.MenuItem} event.item Selected menu item
1031
+ * @param {TaskBoard.model.ColumnModel} event.columnRecord The column
1032
+ */
1033
+ onCellMenuItem? : ((event: { source: TaskBoard, menu: Menu, item: MenuItem, columnRecord: ColumnModel }) => void)|string
1034
+ /**
1035
+ * This event fires on the owning TaskBoard after the context menu is shown for a column header.
1036
+ * @param {object} event Event object
1037
+ * @param {TaskBoard.view.TaskBoard} event.source The grid
1038
+ * @param {Core.widget.Menu} event.menu The menu
1039
+ * @param {Record<string, MenuItemEntry>} event.items Menu item configs
1040
+ * @param {TaskBoard.model.ColumnModel} event.columnRecord The column
1041
+ */
1042
+ onCellMenuShow? : ((event: { source: TaskBoard, menu: Menu, items: Record<string, MenuItemEntry>, columnRecord: ColumnModel }) => void)|string
1043
+ /**
1044
+ * This event fires on the owning TaskBoard when a check item is toggled in the column header menu.
1045
+ * @param {object} event Event object
1046
+ * @param {TaskBoard.view.TaskBoard} event.source The grid
1047
+ * @param {Core.widget.Menu} event.menu The menu
1048
+ * @param {Core.widget.MenuItem} event.item Selected menu item
1049
+ * @param {TaskBoard.model.ColumnModel} event.columnRecord The column
1050
+ * @param {boolean} event.checked Checked or not
1051
+ */
1052
+ onCellMenuToggleItem? : ((event: { source: TaskBoard, menu: Menu, item: MenuItem, columnRecord: ColumnModel, checked: boolean }) => void)|string
1053
+ /**
1054
+ * Fires when a Panel is collapsed using the [collapsible](https://bryntum.com/products/taskboard/docs/api/Core/widget/Panel#config-collapsible) setting.
1055
+ * @param {object} event Event object
1056
+ * @param {Core.widget.Panel} event.source This Panel.
1057
+ */
1058
+ onCollapse? : ((event: { source: Panel }) => void)|string
1059
+ /**
1060
+ * Triggered when a column is collapsed.
1061
+ * @param {object} event Event object
1062
+ * @param {TaskBoard.view.TaskBoard} event.source This TaskBoard
1063
+ * @param {TaskBoard.model.ColumnModel} event.columnRecord Column record
1064
+ */
1065
+ onColumnCollapse? : ((event: { source: TaskBoard, columnRecord: ColumnModel }) => void)|string
1066
+ /**
1067
+ * Fires on the owning TaskBoard when a column is dragged, if the drag leads to a change compared to
1068
+ * the last columnDrag event.
1069
+ * ...
1070
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-columnDrag)
1071
+ * @param {object} event Event object
1072
+ * @param {TaskBoard.view.TaskBoard} event.source Owning TaskBoard
1073
+ * @param {TaskBoard.model.ColumnModel} event.columnRecord Column being dragged
1074
+ * @param {TaskBoard.model.ColumnModel} event.beforeColumn Insert before this column on drop, `null` if last
1075
+ */
1076
+ onColumnDrag? : ((event: { source: TaskBoard, columnRecord: ColumnModel, beforeColumn: ColumnModel }) => void)|string
1077
+ /**
1078
+ * Fires on the owning TaskBoard when a drag operation is aborted (invalid drop or aborted using ESC)
1079
+ * @param {object} event Event object
1080
+ * @param {TaskBoard.view.TaskBoard} event.source Owning TaskBoard
1081
+ * @param {TaskBoard.model.ColumnModel} event.columnRecord Dragged column
1082
+ */
1083
+ onColumnDragAbort? : ((event: { source: TaskBoard, columnRecord: ColumnModel }) => void)|string
1084
+ /**
1085
+ * Fires on the owning TaskBoard when a previously started drag operation ends, no matter the
1086
+ * outcome of it (whether valid, invalid or aborted)
1087
+ * @param {object} event Event object
1088
+ * @param {TaskBoard.view.TaskBoard} event.source Owning TaskBoard
1089
+ * @param {TaskBoard.model.ColumnModel} event.columnRecord Affected column
1090
+ */
1091
+ onColumnDragEnd? : ((event: { source: TaskBoard, columnRecord: ColumnModel }) => void)|string
1092
+ /**
1093
+ * Fires on the owning TaskBoard when column dragging starts
1094
+ * @param {object} event Event object
1095
+ * @param {TaskBoard.view.TaskBoard} event.source Owning TaskBoard
1096
+ * @param {TaskBoard.model.ColumnModel} event.columnRecord Column to be dragged
1097
+ */
1098
+ onColumnDragStart? : ((event: { source: TaskBoard, columnRecord: ColumnModel }) => void)|string
1099
+ /**
1100
+ * Fires on the owning TaskBoard when a column is successfully dropped (after the drop transition
1101
+ * has finished)
1102
+ * @param {object} event Event object
1103
+ * @param {TaskBoard.view.TaskBoard} event.source Owning TaskBoard
1104
+ * @param {TaskBoard.model.ColumnModel} event.columnRecord Dropped column
1105
+ * @param {TaskBoard.model.ColumnModel} event.beforeColumn Dropped before this column (`null` if last)
1106
+ * @param {TaskBoard.model.SwimlaneModel} event.targetSwimlane Dropped in this swimlane (if used)
1107
+ */
1108
+ onColumnDrop? : ((event: { source: TaskBoard, columnRecord: ColumnModel, beforeColumn: ColumnModel, targetSwimlane: SwimlaneModel }) => void)|string
1109
+ /**
1110
+ * Triggered when a column is expanded.
1111
+ * @param {object} event Event object
1112
+ * @param {TaskBoard.view.TaskBoard} event.source This TaskBoard
1113
+ * @param {TaskBoard.model.ColumnModel} event.columnRecord Column record
1114
+ */
1115
+ onColumnExpand? : ((event: { source: TaskBoard, columnRecord: ColumnModel }) => void)|string
1116
+ /**
1117
+ * Triggered when the column filter is hidden.
1118
+ * @param {object} event Event object
1119
+ * @param {TaskBoard.view.TaskBoard} event.source This TaskBoard
1120
+ * @param {TaskBoard.model.ColumnModel} event.columnRecord Column record
1121
+ */
1122
+ onColumnFilterHide? : ((event: { source: TaskBoard, columnRecord: ColumnModel }) => void)|string
1123
+ /**
1124
+ * Triggered when the column filter is displayed.
1125
+ * @param {object} event Event object
1126
+ * @param {TaskBoard.view.TaskBoard} event.source This TaskBoard
1127
+ * @param {TaskBoard.model.ColumnModel} event.columnRecord Column record
1128
+ */
1129
+ onColumnFilterShow? : ((event: { source: TaskBoard, columnRecord: ColumnModel }) => void)|string
1130
+ /**
1131
+ * Triggered when the column filter visibility is toggled.
1132
+ * @param {object} event Event object
1133
+ * @param {TaskBoard.view.TaskBoard} event.source This TaskBoard
1134
+ * @param {TaskBoard.model.ColumnModel} event.columnRecord Column record
1135
+ * @param {boolean} event.visible True if filter popup is visible, false otherwise
1136
+ */
1137
+ onColumnFilterToggle? : ((event: { source: TaskBoard, columnRecord: ColumnModel, visible: boolean }) => void)|string
1138
+ /**
1139
+ * Triggered when a column header is clicked.
1140
+ * ...
1141
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-columnHeaderClick)
1142
+ * @param {object} event Event object
1143
+ * @param {TaskBoard.view.TaskBoard} event.source This TaskBoard
1144
+ * @param {TaskBoard.model.ColumnModel} event.columnRecord Column record
1145
+ * @param {MouseEvent} event.event Browser event
1146
+ */
1147
+ onColumnHeaderClick? : ((event: { source: TaskBoard, columnRecord: ColumnModel, event: MouseEvent }) => void)|string
1148
+ /**
1149
+ * Triggered when a column header is right-clicked.
1150
+ * ...
1151
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-columnHeaderContextMenu)
1152
+ * @param {object} event Event object
1153
+ * @param {TaskBoard.view.TaskBoard} event.source This TaskBoard
1154
+ * @param {TaskBoard.model.ColumnModel} event.columnRecord Column record
1155
+ * @param {MouseEvent} event.event Browser event
1156
+ */
1157
+ onColumnHeaderContextMenu? : ((event: { source: TaskBoard, columnRecord: ColumnModel, event: MouseEvent }) => void)|string
1158
+ /**
1159
+ * Triggered when a column header is double-clicked.
1160
+ * ...
1161
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-columnHeaderDblClick)
1162
+ * @param {object} event Event object
1163
+ * @param {TaskBoard.view.TaskBoard} event.source This TaskBoard
1164
+ * @param {TaskBoard.model.ColumnModel} event.columnRecord Column record
1165
+ * @param {MouseEvent} event.event Browser event
1166
+ */
1167
+ onColumnHeaderDblClick? : ((event: { source: TaskBoard, columnRecord: ColumnModel, event: MouseEvent }) => void)|string
1168
+ /**
1169
+ * This event fires on the owning TaskBoard before the menu is shown for a column header.
1170
+ * Allows manipulation of the items to show in the same way as in the [processItems](https://bryntum.com/products/taskboard/docs/api/TaskBoard/feature/ColumnHeaderMenu#config-processItems).
1171
+ * ...
1172
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-columnHeaderMenuBeforeShow)
1173
+ * @param {object} event Event object
1174
+ * @param {TaskBoard.view.TaskBoard} event.source The grid
1175
+ * @param {Core.widget.Menu} event.menu The menu
1176
+ * @param {Record<string, MenuItemEntry>} event.items Menu item configs
1177
+ * @param {TaskBoard.model.ColumnModel} event.columnRecord The column
1178
+ */
1179
+ onColumnHeaderMenuBeforeShow? : ((event: { source: TaskBoard, menu: Menu, items: Record<string, MenuItemEntry>, columnRecord: ColumnModel }) => Promise<boolean>|boolean|void)|string
1180
+ /**
1181
+ * This event is fired after a resize gesture is completed.
1182
+ * @param {object} event Event object
1183
+ * @param {TaskBoard.view.TaskBoard} event.source The TaskBoard instance
1184
+ * @param {TaskBoard.model.ColumnModel} event.column The column
1185
+ * @param {Event} event.domEvent The browser event
1186
+ */
1187
+ onColumnResize? : ((event: { source: TaskBoard, column: ColumnModel, domEvent: Event }) => void)|string
1188
+ /**
1189
+ * This event is fired when a column resize gesture starts.
1190
+ * @param {object} event Event object
1191
+ * @param {TaskBoard.view.TaskBoard} event.source The TaskBoard instance
1192
+ * @param {TaskBoard.model.ColumnModel} event.column The column
1193
+ * @param {Event} event.domEvent The browser event
1194
+ */
1195
+ onColumnResizeStart? : ((event: { source: TaskBoard, column: ColumnModel, domEvent: Event }) => void)|string
1196
+ /**
1197
+ * Triggered when a column title element is clicked.
1198
+ * ...
1199
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-columnTitleClick)
1200
+ * @param {object} event Event object
1201
+ * @param {TaskBoard.view.TaskBoard} event.source This TaskBoard
1202
+ * @param {TaskBoard.model.ColumnModel} event.columnRecord Column record
1203
+ * @param {MouseEvent} event.event Browser event
1204
+ */
1205
+ onColumnTitleClick? : ((event: { source: TaskBoard, columnRecord: ColumnModel, event: MouseEvent }) => void)|string
1206
+ /**
1207
+ * Triggered when a column title element is right-clicked.
1208
+ * ...
1209
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-columnTitleContextMenu)
1210
+ * @param {object} event Event object
1211
+ * @param {TaskBoard.view.TaskBoard} event.source This TaskBoard
1212
+ * @param {TaskBoard.model.ColumnModel} event.columnRecord Column record
1213
+ * @param {MouseEvent} event.event Browser event
1214
+ */
1215
+ onColumnTitleContextMenu? : ((event: { source: TaskBoard, columnRecord: ColumnModel, event: MouseEvent }) => void)|string
1216
+ /**
1217
+ * Triggered when a column title element is double-clicked.
1218
+ * ...
1219
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-columnTitleDblClick)
1220
+ * @param {object} event Event object
1221
+ * @param {TaskBoard.view.TaskBoard} event.source This TaskBoard
1222
+ * @param {TaskBoard.model.ColumnModel} event.columnRecord Column record
1223
+ * @param {MouseEvent} event.event Browser event
1224
+ */
1225
+ onColumnTitleDblClick? : ((event: { source: TaskBoard, columnRecord: ColumnModel, event: MouseEvent }) => void)|string
1226
+ /**
1227
+ * Triggered when the column collapsed state is toggled.
1228
+ * @param {object} event Event object
1229
+ * @param {TaskBoard.view.TaskBoard} event.source This TaskBoard
1230
+ * @param {TaskBoard.model.ColumnModel} event.columnRecord Column record
1231
+ * @param {boolean} event.collapse `true` if the column is being collapsed.
1232
+ */
1233
+ onColumnToggle? : ((event: { source: TaskBoard, columnRecord: ColumnModel, collapse: boolean }) => void)|string
1234
+ /**
1235
+ * Fires when an object is destroyed.
1236
+ * @param {object} event Event object
1237
+ * @param {Core.Base} event.source The Object that is being destroyed.
1238
+ */
1239
+ onDestroy? : ((event: { source: Base }) => void)|string
1240
+ /**
1241
+ * Fires when a field is mutated and the state of the [hasChanges](https://bryntum.com/products/taskboard/docs/api/Core/widget/Container#property-hasChanges) property changes
1242
+ * @param {object} event Event object
1243
+ * @param {Core.widget.Container} event.source The container.
1244
+ * @param {boolean} event.dirty The dirty state of the Container - `true` if there are any fields which have been changed since initial load.
1245
+ */
1246
+ onDirtyStateChange? : ((event: { source: Container, dirty: boolean }) => void)|string
1247
+ /**
1248
+ * Triggered when a widget's [element](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#property-element) is available.
1249
+ * @param {object} event Event object
1250
+ * @param {HTMLElement} event.element The Widget's element.
1251
+ */
1252
+ onElementCreated? : ((event: { element: HTMLElement }) => void)|string
1253
+ /**
1254
+ * Fires when a Panel is expanded using the [collapsible](https://bryntum.com/products/taskboard/docs/api/Core/widget/Panel#config-collapsible) setting.
1255
+ * @param {object} event Event object
1256
+ * @param {Core.widget.Panel} event.source This Panel.
1257
+ */
1258
+ onExpand? : ((event: { source: Panel }) => void)|string
1259
+ /**
1260
+ * Fired when focus enters this Widget.
1261
+ * @param {object} event Event object
1262
+ * @param {Core.widget.Widget} event.source This Widget
1263
+ * @param {HTMLElement} event.fromElement The element which lost focus.
1264
+ * @param {HTMLElement} event.toElement The element which gained focus.
1265
+ * @param {Core.widget.Widget} event.fromWidget The widget which lost focus.
1266
+ * @param {Core.widget.Widget} event.toWidget The widget which gained focus.
1267
+ * @param {boolean} event.backwards `true` if the `toElement` is before the `fromElement` in document order.
1268
+ */
1269
+ onFocusIn? : ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string
1270
+ /**
1271
+ * Fired when focus exits this Widget's ownership tree. This is different from a `blur` event.
1272
+ * focus moving from within this Widget's ownership tree, even if there are floating widgets
1273
+ * will not trigger this event. This is when focus exits this widget completely.
1274
+ * @param {object} event Event object
1275
+ * @param {Core.widget.Widget} event.source This Widget
1276
+ * @param {HTMLElement} event.fromElement The element which lost focus.
1277
+ * @param {HTMLElement} event.toElement The element which gained focus.
1278
+ * @param {Core.widget.Widget} event.fromWidget The widget which lost focus.
1279
+ * @param {Core.widget.Widget} event.toWidget The widget which gained focus.
1280
+ * @param {boolean} event.backwards `true` if the `toElement` is before the `fromElement` in document order.
1281
+ */
1282
+ onFocusOut? : ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string
1283
+ /**
1284
+ * Triggered after a widget was hidden
1285
+ * @param {object} event Event object
1286
+ * @param {Core.widget.Widget} event.source The widget
1287
+ */
1288
+ onHide? : ((event: { source: Widget }) => void)|string
1289
+ /**
1290
+ * Triggered when a widget which had been in a non-visible state for any reason
1291
+ * achieves visibility.
1292
+ * ...
1293
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-paint)
1294
+ * @param {object} event Event object
1295
+ * @param {Core.widget.Widget} event.source The widget being painted.
1296
+ * @param {boolean} event.firstPaint `true` if this is the first paint.
1297
+ */
1298
+ onPaint? : ((event: { source: Widget, firstPaint: boolean }) => void)|string
1299
+ /**
1300
+ * Fired when a Widget's read only state is toggled
1301
+ * @param {object} event Event object
1302
+ * @param {boolean} event.readOnly Read only or not
1303
+ */
1304
+ onReadOnly? : ((event: { readOnly: boolean }) => void)|string
1305
+ /**
1306
+ * This event is fired after a widget's elements have been synchronized due to a direct or indirect call
1307
+ * to [recompose](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#function-recompose), if this results in some change to the widget's rendered DOM elements.
1308
+ */
1309
+ onRecompose? : (() => void)|string
1310
+ /**
1311
+ * Triggered when a tasks element is removed.
1312
+ * ...
1313
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-removeTaskElement)
1314
+ * @param {object} event Event object
1315
+ * @param {TaskBoard.view.TaskBoard} event.source TaskBoard instance
1316
+ * @param {string,number} event.taskId Id of the task (not the record itself since it might be removed)
1317
+ * @param {HTMLElement} event.element Tasks element
1318
+ */
1319
+ onRemoveTaskElement? : ((event: { source: TaskBoard, taskId: string|number, element: HTMLElement }) => void)|string
1320
+ /**
1321
+ * Triggered when a task is rendered.
1322
+ * ...
1323
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-renderTask)
1324
+ * @param {object} event Event object
1325
+ * @param {TaskBoard.view.TaskBoard} event.source TaskBoard instance
1326
+ * @param {TaskBoard.model.TaskModel} event.taskRecord Task being rendered
1327
+ * @param {boolean} event.isRefresh `true` if the element was updated, `false` if it was added
1328
+ * @param {HTMLElement} event.element Tasks element
1329
+ */
1330
+ onRenderTask? : ((event: { source: TaskBoard, taskRecord: TaskModel, isRefresh: boolean, element: HTMLElement }) => void)|string
1331
+ /**
1332
+ * Triggered when all tasks in the task board are rendered
1333
+ * @param {object} event Event object
1334
+ * @param {TaskBoard.view.TaskBoard} event.source TaskBoard instance
1335
+ * @param {TaskBoard.model.TaskModel[]} event.taskRecords Tasks being rendered
1336
+ */
1337
+ onRenderTasks? : ((event: { source: TaskBoard, taskRecords: TaskModel[] }) => void)|string
1338
+ /**
1339
+ * Fired when the encapsulating element of a Widget resizes *only when [monitorResize](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-monitorResize) is `true`*.
1340
+ * @param {object} event Event object
1341
+ * @param {Core.widget.Widget} event.source This Widget
1342
+ * @param {number} event.width The new width
1343
+ * @param {number} event.height The new height
1344
+ * @param {number} event.oldWidth The old width
1345
+ * @param {number} event.oldHeight The old height
1346
+ */
1347
+ onResize? : ((event: { source: Widget, width: number, height: number, oldWidth: number, oldHeight: number }) => void)|string
1348
+ /**
1349
+ * Triggered when a new [responsiveState](https://bryntum.com/products/taskboard/docs/api/Core/widget/mixin/Responsive#config-responsiveState) is applied.
1350
+ * @param {object} event Event object
1351
+ * @param {Core.widget.Widget} event.source The widget whose `responsiveState` has changed
1352
+ * @param {string} event.state The new value for the widget's `responsiveState`
1353
+ * @param {string} event.oldState The previous value for the widget's `responsiveState`
1354
+ */
1355
+ onResponsiveStateChange? : ((event: { source: Widget, state: string, oldState: string }) => void)|string
1356
+ /**
1357
+ * Triggered when task selection changes.
1358
+ * @param {object} event Event object
1359
+ * @param {TaskBoard.view.TaskBoard} event.source TaskBoard instance
1360
+ * @param {'select','deselect'} event.action Either 'select' or 'deselect', depending on operation
1361
+ * @param {TaskBoard.model.TaskModel[]} event.selection All currently selected tasks
1362
+ * @param {TaskBoard.model.TaskModel[]} event.select Tasks selected by the operation
1363
+ * @param {TaskBoard.model.TaskModel[]} event.deselect Tasks deselected by the operation
1364
+ */
1365
+ onSelectionChange? : ((event: { source: TaskBoard, action: 'select'|'deselect', selection: TaskModel[], select: TaskModel[], deselect: TaskModel[] }) => void)|string
1366
+ /**
1367
+ * Triggered after a widget is shown.
1368
+ * @param {object} event Event object
1369
+ * @param {Core.widget.Widget} event.source The widget
1370
+ */
1371
+ onShow? : ((event: { source: Widget }) => void)|string
1372
+ /**
1373
+ * Fires on the owning TaskBoard when inline editing of a field is cancelled (by pressing ESC).
1374
+ * ...
1375
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-simpleTaskEditCancel)
1376
+ * @param {object} event Event object
1377
+ * @param {TaskBoard.view.TaskBoard} event.source The task board
1378
+ * @param {TaskBoard.feature.SimpleTaskEdit} event.simpleTaskEdit The simpleTaskEdit feature
1379
+ * @param {TaskBoard.model.TaskModel} event.taskRecord Record that was edited
1380
+ * @param {string} event.field Field name being edited
1381
+ */
1382
+ onSimpleTaskEditCancel? : ((event: { source: TaskBoard, simpleTaskEdit: SimpleTaskEdit, taskRecord: TaskModel, field: string }) => Promise<boolean>|boolean|void)|string
1383
+ /**
1384
+ * Fires on the owning TaskBoard when inline editing of a field has successfully finished.
1385
+ * ...
1386
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-simpleTaskEditComplete)
1387
+ * @param {object} event Event object
1388
+ * @param {TaskBoard.view.TaskBoard} event.source The task board
1389
+ * @param {TaskBoard.feature.SimpleTaskEdit} event.simpleTaskEdit The simpleTaskEdit feature
1390
+ * @param {TaskBoard.model.TaskModel} event.taskRecord Record that was edited
1391
+ * @param {string} event.field Field name being edited
1392
+ */
1393
+ onSimpleTaskEditComplete? : ((event: { source: TaskBoard, simpleTaskEdit: SimpleTaskEdit, taskRecord: TaskModel, field: string }) => Promise<boolean>|boolean|void)|string
1394
+ /**
1395
+ * Triggered when a swimlane is collapsed.
1396
+ * @param {object} event Event object
1397
+ * @param {TaskBoard.view.TaskBoard} event.source This TaskBoard
1398
+ * @param {TaskBoard.model.SwimlaneModel} event.swimlaneRecord Swimlane record
1399
+ */
1400
+ onSwimlaneCollapse? : ((event: { source: TaskBoard, swimlaneRecord: SwimlaneModel }) => void)|string
1401
+ /**
1402
+ * Triggered when a swimlane is expanded.
1403
+ * @param {object} event Event object
1404
+ * @param {TaskBoard.view.TaskBoard} event.source This TaskBoard
1405
+ * @param {TaskBoard.model.SwimlaneModel} event.swimlaneRecord Swimlane record
1406
+ */
1407
+ onSwimlaneExpand? : ((event: { source: TaskBoard, swimlaneRecord: SwimlaneModel }) => void)|string
1408
+ /**
1409
+ * Triggered when a swimlane header is clicked.
1410
+ * ...
1411
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-swimlaneHeaderClick)
1412
+ * @param {object} event Event object
1413
+ * @param {TaskBoard.view.TaskBoard} event.source This TaskBoard
1414
+ * @param {TaskBoard.model.SwimlaneModel} event.swimlaneRecord Swimlane record
1415
+ * @param {MouseEvent} event.event Browser event
1416
+ */
1417
+ onSwimlaneHeaderClick? : ((event: { source: TaskBoard, swimlaneRecord: SwimlaneModel, event: MouseEvent }) => void)|string
1418
+ /**
1419
+ * Triggered when a swimlane header is right-clicked.
1420
+ * ...
1421
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-swimlaneHeaderContextMenu)
1422
+ * @param {object} event Event object
1423
+ * @param {TaskBoard.view.TaskBoard} event.source This TaskBoard
1424
+ * @param {TaskBoard.model.SwimlaneModel} event.swimlaneRecord Swimlane record
1425
+ * @param {MouseEvent} event.event Browser event
1426
+ */
1427
+ onSwimlaneHeaderContextMenu? : ((event: { source: TaskBoard, swimlaneRecord: SwimlaneModel, event: MouseEvent }) => void)|string
1428
+ /**
1429
+ * Triggered when a swimlane header is double-clicked.
1430
+ * ...
1431
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-swimlaneHeaderDblClick)
1432
+ * @param {object} event Event object
1433
+ * @param {TaskBoard.view.TaskBoard} event.source This TaskBoard
1434
+ * @param {TaskBoard.model.SwimlaneModel} event.swimlaneRecord Swimlane record
1435
+ * @param {MouseEvent} event.event Browser event
1436
+ */
1437
+ onSwimlaneHeaderDblClick? : ((event: { source: TaskBoard, swimlaneRecord: SwimlaneModel, event: MouseEvent }) => void)|string
1438
+ /**
1439
+ * Triggered when the swimlane collapsed state is toggled.
1440
+ * @param {object} event Event object
1441
+ * @param {TaskBoard.view.TaskBoard} event.source This TaskBoard
1442
+ * @param {TaskBoard.model.SwimlaneModel} event.swimlaneRecord Swimlane record
1443
+ * @param {boolean} event.collapse `true` if the column is being collapsed.
1444
+ */
1445
+ onSwimlaneToggle? : ((event: { source: TaskBoard, swimlaneRecord: SwimlaneModel, collapse: boolean }) => void)|string
1446
+ /**
1447
+ * Triggered when a card is clicked.
1448
+ * ...
1449
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-taskClick)
1450
+ * @param {object} event Event object
1451
+ * @param {TaskBoard.view.TaskBoard} event.source This TaskBoard
1452
+ * @param {TaskBoard.model.TaskModel} event.taskRecord Task record
1453
+ * @param {TaskBoard.model.ColumnModel} event.columnRecord Column record for the tasks column
1454
+ * @param {TaskBoard.model.SwimlaneModel} event.swimlaneRecord Swimlane record for the tasks swimlane (if used)
1455
+ * @param {MouseEvent} event.event Browser event
1456
+ */
1457
+ onTaskClick? : ((event: { source: TaskBoard, taskRecord: TaskModel, columnRecord: ColumnModel, swimlaneRecord: SwimlaneModel, event: MouseEvent }) => void)|string
1458
+ /**
1459
+ * Triggered when a card is double-clicked
1460
+ * ...
1461
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-taskDblClick)
1462
+ * @param {object} event Event object
1463
+ * @param {TaskBoard.view.TaskBoard} event.source This TaskBoard
1464
+ * @param {TaskBoard.model.TaskModel} event.taskRecord Task record
1465
+ * @param {TaskBoard.model.ColumnModel} event.columnRecord Column record for the tasks column
1466
+ * @param {TaskBoard.model.SwimlaneModel} event.swimlaneRecord Swimlane record for the tasks swimlane (if used)
1467
+ * @param {MouseEvent} event.event Browser event
1468
+ */
1469
+ onTaskDblClick? : ((event: { source: TaskBoard, taskRecord: TaskModel, columnRecord: ColumnModel, swimlaneRecord: SwimlaneModel, event: MouseEvent }) => void)|string
1470
+ /**
1471
+ * Fires on the owning TaskBoard when tasks are dragged, if the drag leads to any changes compared to
1472
+ * the last taskDrag event (moved to a new column or changed order within a column).
1473
+ * ...
1474
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-taskDrag)
1475
+ * @param {object} event Event object
1476
+ * @param {TaskBoard.view.TaskBoard} event.source Owning TaskBoard
1477
+ * @param {TaskBoard.model.TaskModel[]} event.taskRecords Dragged tasks
1478
+ * @param {TaskBoard.model.ColumnModel} event.targetColumn Currently over this column
1479
+ * @param {TaskBoard.model.SwimlaneModel} event.targetSwimlane Currently over this swimlane (if used)
1480
+ * @param {Event} event.domEvent The mouse event
1481
+ */
1482
+ onTaskDrag? : ((event: { source: TaskBoard, taskRecords: TaskModel[], targetColumn: ColumnModel, targetSwimlane: SwimlaneModel, domEvent: Event }) => void)|string
1483
+ /**
1484
+ * Fires on the owning TaskBoard when a drag operation is aborted (invalid drop or aborted using ESC)
1485
+ * @param {object} event Event object
1486
+ * @param {TaskBoard.view.TaskBoard} event.source Owning TaskBoard
1487
+ * @param {TaskBoard.model.TaskModel[]} event.taskRecords Dragged tasks
1488
+ */
1489
+ onTaskDragAbort? : ((event: { source: TaskBoard, taskRecords: TaskModel[] }) => void)|string
1490
+ /**
1491
+ * Fires on the owning TaskBoard when a previously started drag operation ends, no matter the
1492
+ * outcome of it (whether valid, invalid or aborted)
1493
+ * @param {object} event Event object
1494
+ * @param {TaskBoard.view.TaskBoard} event.source Owning TaskBoard
1495
+ * @param {TaskBoard.model.TaskModel[]} event.taskRecords Affected tasks
1496
+ * @param {Event} event.domEvent The mouse event
1497
+ */
1498
+ onTaskDragEnd? : ((event: { source: TaskBoard, taskRecords: TaskModel[], domEvent: Event }) => void)|string
1499
+ /**
1500
+ * Fires on the owning TaskBoard when task dragging starts
1501
+ * @param {object} event Event object
1502
+ * @param {TaskBoard.view.TaskBoard} event.source Owning TaskBoard
1503
+ * @param {TaskBoard.model.TaskModel[]} event.taskRecords Tasks to be dragged
1504
+ * @param {Event} event.domEvent The mouse event
1505
+ */
1506
+ onTaskDragStart? : ((event: { source: TaskBoard, taskRecords: TaskModel[], domEvent: Event }) => void)|string
1507
+ /**
1508
+ * Fires on the owning TaskBoard when tasks are successfully dropped (after the drop transition has
1509
+ * finished)
1510
+ * @param {object} event Event object
1511
+ * @param {TaskBoard.view.TaskBoard} event.source Owning TaskBoard
1512
+ * @param {TaskBoard.model.TaskModel[]} event.taskRecords Dropped tasks
1513
+ * @param {TaskBoard.model.ColumnModel} event.targetColumn Dropped on this column
1514
+ * @param {TaskBoard.model.SwimlaneModel} event.targetSwimlane Dropped in this swimlane (if used)
1515
+ * @param {Event} event.domEvent The mouse event
1516
+ */
1517
+ onTaskDrop? : ((event: { source: TaskBoard, taskRecords: TaskModel[], targetColumn: ColumnModel, targetSwimlane: SwimlaneModel, domEvent: Event }) => void)|string
1518
+ /**
1519
+ * This event fires on the owning TaskBoard before the context menu is shown for a task.
1520
+ * Allows manipulation of the items to show in the same way as in the [processItems](https://bryntum.com/products/taskboard/docs/api/TaskBoard/feature/TaskMenu#config-processItems).
1521
+ * ...
1522
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-taskMenuBeforeShow)
1523
+ * @param {object} event Event object
1524
+ * @param {TaskBoard.view.TaskBoard} event.source The grid
1525
+ * @param {Core.widget.Menu} event.menu The menu
1526
+ * @param {Record<string, MenuItemEntry>} event.items Menu item configs
1527
+ * @param {TaskBoard.model.TaskModel} event.taskRecord The task
1528
+ */
1529
+ onTaskMenuBeforeShow? : ((event: { source: TaskBoard, menu: Menu, items: Record<string, MenuItemEntry>, taskRecord: TaskModel }) => Promise<boolean>|boolean|void)|string
1530
+ /**
1531
+ * This event fires on the owning TaskBoard when an item is selected in the task context menu.
1532
+ * @param {object} event Event object
1533
+ * @param {TaskBoard.view.TaskBoard} event.source The grid
1534
+ * @param {Core.widget.Menu} event.menu The menu
1535
+ * @param {Core.widget.MenuItem} event.item Selected menu item
1536
+ * @param {TaskBoard.model.TaskModel} event.taskRecord The task
1537
+ */
1538
+ onTaskMenuItem? : ((event: { source: TaskBoard, menu: Menu, item: MenuItem, taskRecord: TaskModel }) => void)|string
1539
+ /**
1540
+ * This event fires on the owning TaskBoard after the context menu is shown for a task.
1541
+ * @param {object} event Event object
1542
+ * @param {TaskBoard.view.TaskBoard} event.source The grid
1543
+ * @param {Core.widget.Menu} event.menu The menu
1544
+ * @param {Record<string, MenuItemEntry>} event.items Menu item configs
1545
+ * @param {TaskBoard.model.TaskModel} event.taskRecord The task
1546
+ */
1547
+ onTaskMenuShow? : ((event: { source: TaskBoard, menu: Menu, items: Record<string, MenuItemEntry>, taskRecord: TaskModel }) => void)|string
1548
+ /**
1549
+ * This event fires on the owning TaskBoard when a check item is toggled in the task context menu.
1550
+ * @param {object} event Event object
1551
+ * @param {TaskBoard.view.TaskBoard} event.source The grid
1552
+ * @param {Core.widget.Menu} event.menu The menu
1553
+ * @param {Core.widget.MenuItem} event.item Selected menu item
1554
+ * @param {TaskBoard.model.TaskModel} event.taskRecord The task
1555
+ * @param {boolean} event.checked Checked or not
1556
+ */
1557
+ onTaskMenuToggleItem? : ((event: { source: TaskBoard, menu: Menu, item: MenuItem, taskRecord: TaskModel, checked: boolean }) => void)|string
1558
+ /**
1559
+ * Triggered when the mouse enters a card
1560
+ * ...
1561
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-taskMouseEnter)
1562
+ * @param {object} event Event object
1563
+ * @param {TaskBoard.view.TaskBoard} event.source This TaskBoard
1564
+ * @param {TaskBoard.model.TaskModel} event.taskRecord Task record
1565
+ * @param {TaskBoard.model.ColumnModel} event.columnRecord Column record for the tasks column
1566
+ * @param {TaskBoard.model.SwimlaneModel} event.swimlaneRecord Swimlane record for the tasks swimlane (if used)
1567
+ * @param {MouseEvent} event.event Browser event
1568
+ */
1569
+ onTaskMouseEnter? : ((event: { source: TaskBoard, taskRecord: TaskModel, columnRecord: ColumnModel, swimlaneRecord: SwimlaneModel, event: MouseEvent }) => void)|string
1570
+ /**
1571
+ * Triggered when the mouse leaves a card
1572
+ * ...
1573
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-taskMouseLeave)
1574
+ * @param {object} event Event object
1575
+ * @param {TaskBoard.view.TaskBoard} event.source This TaskBoard
1576
+ * @param {TaskBoard.model.TaskModel} event.taskRecord Task record
1577
+ * @param {TaskBoard.model.ColumnModel} event.columnRecord Column record for the tasks column
1578
+ * @param {TaskBoard.model.SwimlaneModel} event.swimlaneRecord Swimlane record for the tasks swimlane (if used)
1579
+ * @param {MouseEvent} event.event Browser event
1580
+ */
1581
+ onTaskMouseLeave? : ((event: { source: TaskBoard, taskRecord: TaskModel, columnRecord: ColumnModel, swimlaneRecord: SwimlaneModel, event: MouseEvent }) => void)|string
1582
+ /**
1583
+ * A header [tool](https://bryntum.com/products/taskboard/docs/api/Core/widget/Panel#config-tools) has been clicked.
1584
+ * @param {object} event Event object
1585
+ * @param {Core.widget.Tool} event.source This Panel.
1586
+ * @param {Core.widget.Tool} event.tool The tool which is being clicked.
1587
+ */
1588
+ onToolClick? : ((event: { source: Tool, tool: Tool }) => void)|string
1589
+
1590
+ // Features
1591
+ /**
1592
+ * This feature allows users to drag columns on the TaskBoard to change the column order. Drag is initiated upon
1593
+ * mouse down in the column header. Try it out below!
1594
+ * ...
1595
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/feature/ColumnDrag)
1596
+ */
1597
+ columnDragFeature? : object|boolean|string|ColumnDrag|ColumnDragConfig
1598
+ /**
1599
+ * Adds the ability to filter each column of the TaskBoard.
1600
+ * ...
1601
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/feature/ColumnFilter)
1602
+ */
1603
+ columnFilterFeature? : object|boolean|string|ColumnFilter|ColumnFilterConfig
1604
+ /**
1605
+ * Adds a menu button (`···`) to column headers, clicking it displays a menu. Items are populated by other features
1606
+ * and/or application code.
1607
+ * ...
1608
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/feature/ColumnHeaderMenu)
1609
+ */
1610
+ columnHeaderMenuFeature? : object|boolean|string|ColumnHeaderMenu|ColumnHeaderMenuConfig
1611
+ /**
1612
+ * Allows user to lock columns to the left or right using the new [locked](https://bryntum.com/products/taskboard/docs/api/TaskBoard/model/ColumnModel#field-locked) field
1613
+ * on columns.
1614
+ * ...
1615
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/feature/ColumnLock)
1616
+ */
1617
+ columnLockFeature? : object|boolean|string|ColumnLock|ColumnLockConfig
1618
+ /**
1619
+ * Allows user to rename columns by either double-clicking column text, or via the column header menu.
1620
+ * ...
1621
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/feature/ColumnRename)
1622
+ */
1623
+ columnRenameFeature? : object|boolean|string|ColumnRename|ColumnRenameConfig
1624
+ /**
1625
+ * This feature allows users to change the width of individual TaskBoard columns. Resize is initiated upon mouse down on
1626
+ * the separator element between column headers. Try it out below!
1627
+ * ...
1628
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/feature/ColumnResize)
1629
+ */
1630
+ columnResizeFeature? : object|boolean|string|ColumnResize|ColumnResizeConfig
1631
+ /**
1632
+ * Adds the ability to sort each column of the TaskBoard.
1633
+ * ...
1634
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/feature/ColumnSort)
1635
+ */
1636
+ columnSortFeature? : object|boolean|string|ColumnSort|ColumnSortConfig
1637
+ /**
1638
+ * Adds toolbars to the top and/or bottom of each column. By default it adds a bottom toolbar containing a single button
1639
+ * for adding events to that column/swimlane:
1640
+ * ...
1641
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/feature/ColumnToolbars)
1642
+ */
1643
+ columnToolbarsFeature? : object|boolean|string|ColumnToolbars|ColumnToolbarsConfig
1644
+ /**
1645
+ * Adds the ability to quick search in configured fields of tasks.
1646
+ * Renders a filter bar below each column's header.
1647
+ * ...
1648
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/feature/FilterBar)
1649
+ */
1650
+ filterBarFeature? : object|boolean|string|FilterBar|FilterBarConfig
1651
+ /**
1652
+ * This feature allows inline editing of tasks. Double-clicking an item starts editing it:
1653
+ * ...
1654
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/feature/SimpleTaskEdit)
1655
+ */
1656
+ simpleTaskEditFeature? : object|boolean|string|SimpleTaskEdit|SimpleTaskEditConfig
1657
+ /**
1658
+ * This feature allows users to drag drop swimlanes on the TaskBoard changing their order (by grabbing their header).
1659
+ * ...
1660
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/feature/SwimlaneDrag)
1661
+ */
1662
+ swimlaneDragFeature? : object|boolean|string|SwimlaneDrag|SwimlaneDragConfig
1663
+ /**
1664
+ * This feature allows cards on the TaskBoard to be dragged across swimlanes and columns but also vertically in the
1665
+ * same column to change the order:
1666
+ * ...
1667
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/feature/TaskDrag)
1668
+ */
1669
+ taskDragFeature? : object|boolean|string|TaskDrag|TaskDragConfig
1670
+ /**
1671
+ * Enables users to click and drag to select cards on the TaskBoard (marquee selection).
1672
+ * ...
1673
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/feature/TaskDragSelect)
1674
+ */
1675
+ taskDragSelectFeature? : object|boolean|string|TaskDragSelect|TaskDragSelectConfig
1676
+ /**
1677
+ * This features allows the user to edit tasks in a popup editor that can either be shown centered on screen (the
1678
+ * default, double click a task to show the editor):
1679
+ * ...
1680
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/feature/TaskEdit)
1681
+ */
1682
+ taskEditFeature? : object|boolean|string|TaskEdit|TaskEditConfig
1683
+ /**
1684
+ * Displays a context menu for tasks. Items are populated by other features and/or application code.
1685
+ * ...
1686
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/feature/TaskMenu)
1687
+ */
1688
+ taskMenuFeature? : object|boolean|string|TaskMenu|TaskMenuConfig
1689
+ /**
1690
+ * Displays a tooltip when hovering a task. By default the tooltip displays:
1691
+ * ...
1692
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/feature/TaskTooltip)
1693
+ */
1694
+ taskTooltipFeature? : object|boolean|string|TaskTooltip|TaskTooltipConfig
1695
+
1696
+ }
1697
+
1698
+ export class BryntumTaskBoard extends React.Component<BryntumTaskBoardProps> {
1699
+
1700
+ static instanceClass = TaskBoard;
1701
+
1702
+ static instanceName = 'TaskBoard';
1703
+
1704
+ processWidgetContent = processWidgetContent;
1705
+
1706
+ // Component is View class
1707
+ static isView = true;
1708
+
1709
+ // Hidden div to host unused portals DOM
1710
+ portalsCache? : HTMLElement;
1711
+
1712
+ // CSS class used for individual portal containers
1713
+ portalContainerClass = 'b-react-portal-container';
1714
+
1715
+ state = {
1716
+ // Holds React portals
1717
+ portals : new Map(),
1718
+
1719
+ // Needed to trigger refresh when portals change
1720
+ generation : 0
1721
+ };
1722
+
1723
+ static featureNames = [
1724
+ 'columnDragFeature',
1725
+ 'columnFilterFeature',
1726
+ 'columnHeaderMenuFeature',
1727
+ 'columnLockFeature',
1728
+ 'columnRenameFeature',
1729
+ 'columnResizeFeature',
1730
+ 'columnSortFeature',
1731
+ 'columnToolbarsFeature',
1732
+ 'filterBarFeature',
1733
+ 'simpleTaskEditFeature',
1734
+ 'swimlaneDragFeature',
1735
+ 'taskDragFeature',
1736
+ 'taskDragSelectFeature',
1737
+ 'taskEditFeature',
1738
+ 'taskMenuFeature',
1739
+ 'taskTooltipFeature'
1740
+ ];
1741
+
1742
+ projectStores = true;
1743
+
1744
+ dataStores = {
1745
+ 'assignmentStore': 'assignments',
1746
+ 'dependencyStore': 'dependencies',
1747
+ 'eventStore': 'events',
1748
+ 'resourceStore': 'resources',
1749
+ 'taskStore': 'tasks'
1750
+ };
1751
+
1752
+ static configNames = [
1753
+ 'activateTaskEvent',
1754
+ 'adopt',
1755
+ 'align',
1756
+ 'anchor',
1757
+ 'ariaDescription',
1758
+ 'ariaLabel',
1759
+ 'autoGenerateColumns',
1760
+ 'autoGenerateSwimlanes',
1761
+ 'bbar',
1762
+ 'bodyCls',
1763
+ 'bubbleEvents',
1764
+ 'cardSizes',
1765
+ 'centered',
1766
+ 'chainFilters',
1767
+ 'collapseTitle',
1768
+ 'collapsible',
1769
+ 'color',
1770
+ 'columnTitleRenderer',
1771
+ 'config',
1772
+ 'constrainTo',
1773
+ 'cssVarPrefix',
1774
+ 'dataField',
1775
+ 'detectCSSCompatibilityIssues',
1776
+ 'dock',
1777
+ 'draggable',
1778
+ 'drawer',
1779
+ 'elementAttributes',
1780
+ 'floating',
1781
+ 'footer',
1782
+ 'header',
1783
+ 'hideAnimation',
1784
+ 'htmlEncodeHeaderText',
1785
+ 'icon',
1786
+ 'ignoreParentReadOnly',
1787
+ 'listeners',
1788
+ 'loadMask',
1789
+ 'loadMaskDefaults',
1790
+ 'loadMaskError',
1791
+ 'localeClass',
1792
+ 'localizable',
1793
+ 'localizableProperties',
1794
+ 'maskDefaults',
1795
+ 'masked',
1796
+ 'newTaskDefaults',
1797
+ 'owner',
1798
+ 'plugins',
1799
+ 'positioned',
1800
+ 'processItems',
1801
+ 'record',
1802
+ 'relayStoreEvents',
1803
+ 'resourceImagePath',
1804
+ 'responsive',
1805
+ 'responsiveRoot',
1806
+ 'responsiveState',
1807
+ 'responsiveTarget',
1808
+ 'rootElement',
1809
+ 'scrollable',
1810
+ 'scrollAction',
1811
+ 'scrollManager',
1812
+ 'scrollOptions',
1813
+ 'selectOnNavigation',
1814
+ 'showAnimation',
1815
+ 'showCollapseInHeader',
1816
+ 'showCountInHeader',
1817
+ 'stateful',
1818
+ 'statefulEvents',
1819
+ 'stateId',
1820
+ 'stateProvider',
1821
+ 'stickyHeaders',
1822
+ 'strips',
1823
+ 'swimlaneRenderer',
1824
+ 'syncMask',
1825
+ 'tab',
1826
+ 'tabBarItems',
1827
+ 'taskRenderer',
1828
+ 'taskSorterFn',
1829
+ 'tasksPerRow',
1830
+ 'tbar',
1831
+ 'type',
1832
+ 'ui',
1833
+ 'useDomTransition',
1834
+ 'weight'
1835
+ ];
1836
+
1837
+ static propertyConfigNames = [
1838
+ 'alignSelf',
1839
+ 'appendTo',
1840
+ 'assignments',
1841
+ 'bodyItems',
1842
+ 'callOnFunctions',
1843
+ 'catchEventHandlerExceptions',
1844
+ 'cls',
1845
+ 'collapsed',
1846
+ 'column',
1847
+ 'columnField',
1848
+ 'columns',
1849
+ 'css',
1850
+ 'dataset',
1851
+ 'disabled',
1852
+ 'drawOnScroll',
1853
+ 'extraData',
1854
+ 'flex',
1855
+ 'footerItems',
1856
+ 'getTaskHeight',
1857
+ 'headerItems',
1858
+ 'height',
1859
+ 'hidden',
1860
+ 'id',
1861
+ 'inputFieldAlign',
1862
+ 'insertBefore',
1863
+ 'insertFirst',
1864
+ 'isTaskSelectable',
1865
+ 'keyMap',
1866
+ 'labelPosition',
1867
+ 'margin',
1868
+ 'maxHeight',
1869
+ 'maximizeOnMobile',
1870
+ 'maxWidth',
1871
+ 'minHeight',
1872
+ 'minWidth',
1873
+ 'onActivateTask',
1874
+ 'onBeforeColumnDrag',
1875
+ 'onBeforeColumnDrop',
1876
+ 'onBeforeColumnResize',
1877
+ 'onBeforeDestroy',
1878
+ 'onBeforeHide',
1879
+ 'onBeforeResponsiveStateChange',
1880
+ 'onBeforeShow',
1881
+ 'onBeforeSimpleTaskEdit',
1882
+ 'onBeforeStateApply',
1883
+ 'onBeforeStateSave',
1884
+ 'onBeforeTaskDrag',
1885
+ 'onBeforeTaskDrop',
1886
+ 'onBeforeTaskEdit',
1887
+ 'onBeforeTaskEditShow',
1888
+ 'onBeforeTaskRemove',
1889
+ 'onCatchAll',
1890
+ 'onCellMenuItem',
1891
+ 'onCellMenuShow',
1892
+ 'onCellMenuToggleItem',
1893
+ 'onCollapse',
1894
+ 'onColumnCollapse',
1895
+ 'onColumnDrag',
1896
+ 'onColumnDragAbort',
1897
+ 'onColumnDragEnd',
1898
+ 'onColumnDragStart',
1899
+ 'onColumnDrop',
1900
+ 'onColumnExpand',
1901
+ 'onColumnFilterHide',
1902
+ 'onColumnFilterShow',
1903
+ 'onColumnFilterToggle',
1904
+ 'onColumnHeaderClick',
1905
+ 'onColumnHeaderContextMenu',
1906
+ 'onColumnHeaderDblClick',
1907
+ 'onColumnHeaderMenuBeforeShow',
1908
+ 'onColumnResize',
1909
+ 'onColumnResizeStart',
1910
+ 'onColumnTitleClick',
1911
+ 'onColumnTitleContextMenu',
1912
+ 'onColumnTitleDblClick',
1913
+ 'onColumnToggle',
1914
+ 'onDestroy',
1915
+ 'onDirtyStateChange',
1916
+ 'onElementCreated',
1917
+ 'onExpand',
1918
+ 'onFocusIn',
1919
+ 'onFocusOut',
1920
+ 'onHide',
1921
+ 'onPaint',
1922
+ 'onReadOnly',
1923
+ 'onRecompose',
1924
+ 'onRemoveTaskElement',
1925
+ 'onRenderTask',
1926
+ 'onRenderTasks',
1927
+ 'onResize',
1928
+ 'onResponsiveStateChange',
1929
+ 'onSelectionChange',
1930
+ 'onShow',
1931
+ 'onSimpleTaskEditCancel',
1932
+ 'onSimpleTaskEditComplete',
1933
+ 'onSwimlaneCollapse',
1934
+ 'onSwimlaneExpand',
1935
+ 'onSwimlaneHeaderClick',
1936
+ 'onSwimlaneHeaderContextMenu',
1937
+ 'onSwimlaneHeaderDblClick',
1938
+ 'onSwimlaneToggle',
1939
+ 'onTaskClick',
1940
+ 'onTaskDblClick',
1941
+ 'onTaskDrag',
1942
+ 'onTaskDragAbort',
1943
+ 'onTaskDragEnd',
1944
+ 'onTaskDragStart',
1945
+ 'onTaskDrop',
1946
+ 'onTaskMenuBeforeShow',
1947
+ 'onTaskMenuItem',
1948
+ 'onTaskMenuShow',
1949
+ 'onTaskMenuToggleItem',
1950
+ 'onTaskMouseEnter',
1951
+ 'onTaskMouseLeave',
1952
+ 'onToolClick',
1953
+ 'project',
1954
+ 'readOnly',
1955
+ 'rendition',
1956
+ 'resources',
1957
+ 'rtl',
1958
+ 'selectedTasks',
1959
+ 'showCollapseTooltip',
1960
+ 'span',
1961
+ 'stretchCards',
1962
+ 'strictRecordMapping',
1963
+ 'swimlaneField',
1964
+ 'swimlanes',
1965
+ 'tasks',
1966
+ 'title',
1967
+ 'tools',
1968
+ 'virtualize',
1969
+ 'width',
1970
+ 'x',
1971
+ 'y'
1972
+ ];
1973
+
1974
+ static propertyNames = [
1975
+ 'anchorSize',
1976
+ 'focusVisible',
1977
+ 'hasChanges',
1978
+ 'parent',
1979
+ 'state'
1980
+ ];
1981
+
1982
+ // Component instance
1983
+ instance!: TaskBoard;
1984
+
1985
+ // Component element
1986
+ element! : HTMLElement;
1987
+
1988
+ componentDidMount(): void {
1989
+ this.instance = createWidget(this);
1990
+ }
1991
+
1992
+ componentWillUnmount(): void {
1993
+ // @ts-ignore
1994
+ this.instance?.destroy?.();
1995
+ }
1996
+
1997
+ /**
1998
+ * Component about to be updated, from changing a prop using state.
1999
+ * React to it depending on what changed and prevent react from re-rendering our component.
2000
+ * @param nextProps
2001
+ * @param nextState
2002
+ * @returns {boolean}
2003
+ */
2004
+ shouldComponentUpdate(nextProps: Readonly<BryntumTaskBoardProps>, nextState: Readonly<{}>): boolean {
2005
+ return shouldComponentUpdate(this, nextProps, nextState);
2006
+ }
2007
+
2008
+ render(): React.ReactNode {
2009
+
2010
+ const className = `b-react-task-board-container`;
2011
+ return (
2012
+ <React.Fragment>
2013
+ <div className={className} ref={(element) => (this.element = element!)}>
2014
+ {Array.from(this.state.portals).map((item) => item[1])}
2015
+ </div>
2016
+ <div ref={el => (this.portalsCache = el!)} className="b-react-portals-cache" style={{ display : 'none' }}></div>
2017
+ </React.Fragment>
2018
+ );
2019
+
2020
+ }
2021
+ }