@vaadin/grid 23.2.0-dev.8a7678b70 → 23.3.0-alpha1

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 (42) hide show
  1. package/README.md +4 -4
  2. package/package.json +17 -11
  3. package/src/array-data-provider.js +3 -5
  4. package/src/lit/column-renderer-directives.d.ts +7 -6
  5. package/src/lit/renderer-directives.d.ts +3 -3
  6. package/src/vaadin-grid-active-item-mixin.d.ts +2 -2
  7. package/src/vaadin-grid-array-data-provider-mixin.d.ts +2 -2
  8. package/src/vaadin-grid-column-group.d.ts +2 -2
  9. package/src/vaadin-grid-column-group.js +22 -7
  10. package/src/vaadin-grid-column-reordering-mixin.d.ts +2 -2
  11. package/src/vaadin-grid-column-reordering-mixin.js +39 -20
  12. package/src/vaadin-grid-column-resizing-mixin.js +1 -1
  13. package/src/vaadin-grid-column.d.ts +4 -4
  14. package/src/vaadin-grid-column.js +9 -3
  15. package/src/vaadin-grid-data-provider-mixin.d.ts +2 -2
  16. package/src/vaadin-grid-drag-and-drop-mixin.d.ts +5 -5
  17. package/src/vaadin-grid-drag-and-drop-mixin.js +4 -2
  18. package/src/vaadin-grid-event-context-mixin.d.ts +4 -4
  19. package/src/vaadin-grid-event-context-mixin.js +2 -2
  20. package/src/vaadin-grid-filter-column.d.ts +1 -1
  21. package/src/vaadin-grid-filter.d.ts +2 -2
  22. package/src/vaadin-grid-keyboard-navigation-mixin.js +20 -6
  23. package/src/vaadin-grid-row-details-mixin.d.ts +3 -3
  24. package/src/vaadin-grid-scroll-mixin.d.ts +2 -2
  25. package/src/vaadin-grid-scroll-mixin.js +3 -1
  26. package/src/vaadin-grid-selection-column.d.ts +3 -3
  27. package/src/vaadin-grid-selection-column.js +10 -3
  28. package/src/vaadin-grid-selection-mixin.d.ts +2 -2
  29. package/src/vaadin-grid-sort-column.d.ts +4 -4
  30. package/src/vaadin-grid-sort-mixin.d.ts +25 -2
  31. package/src/vaadin-grid-sort-mixin.js +60 -5
  32. package/src/vaadin-grid-sorter.d.ts +2 -2
  33. package/src/vaadin-grid-sorter.js +7 -3
  34. package/src/vaadin-grid-styling-mixin.d.ts +4 -4
  35. package/src/vaadin-grid-tree-column.d.ts +1 -1
  36. package/src/vaadin-grid-tree-toggle.d.ts +2 -2
  37. package/src/vaadin-grid-tree-toggle.js +3 -3
  38. package/src/vaadin-grid.d.ts +26 -24
  39. package/src/vaadin-grid.js +55 -8
  40. package/theme/lumo/vaadin-grid-styles.js +0 -10
  41. package/web-types.json +2176 -0
  42. package/web-types.lit.json +972 -0
@@ -0,0 +1,972 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/web-types",
3
+ "name": "@vaadin/grid",
4
+ "version": "23.3.0-alpha1",
5
+ "description-markup": "markdown",
6
+ "framework": "lit",
7
+ "framework-config": {
8
+ "enable-when": {
9
+ "node-packages": [
10
+ "lit"
11
+ ]
12
+ }
13
+ },
14
+ "contributions": {
15
+ "html": {
16
+ "elements": [
17
+ {
18
+ "name": "vaadin-grid-column",
19
+ "description": "A `<vaadin-grid-column>` is used to configure how a column in `<vaadin-grid>`\nshould look like.\n\nSee [`<vaadin-grid>`](https://cdn.vaadin.com/vaadin-web-components/23.3.0-alpha1/#/elements/vaadin-grid) documentation for instructions on how\nto configure the `<vaadin-grid-column>`.",
20
+ "extension": true,
21
+ "attributes": [
22
+ {
23
+ "name": "?resizable",
24
+ "description": "When set to true, the column is user-resizable.",
25
+ "value": {
26
+ "kind": "expression"
27
+ }
28
+ },
29
+ {
30
+ "name": "?frozen",
31
+ "description": "When true, the column is frozen. When a column inside of a column group is frozen,\nall of the sibling columns inside the group will get frozen also.",
32
+ "value": {
33
+ "kind": "expression"
34
+ }
35
+ },
36
+ {
37
+ "name": "?frozenToEnd",
38
+ "description": "When true, the column is frozen to end of grid.\n\nWhen a column inside of a column group is frozen to end, all of the sibling columns\ninside the group will get frozen to end also.\n\nColumn can not be set as `frozen` and `frozenToEnd` at the same time.",
39
+ "value": {
40
+ "kind": "expression"
41
+ }
42
+ },
43
+ {
44
+ "name": "?hidden",
45
+ "description": "When set to true, the cells for this column are hidden.",
46
+ "value": {
47
+ "kind": "expression"
48
+ }
49
+ },
50
+ {
51
+ "name": "?autoWidth",
52
+ "description": "Automatically sets the width of the column based on the column contents when this is set to `true`.\n\nFor performance reasons the column width is calculated automatically only once when the grid items\nare rendered for the first time and the calculation only considers the rows which are currently\nrendered in DOM (a bit more than what is currently visible). If the grid is scrolled, or the cell\ncontent changes, the column width might not match the contents anymore.\n\nHidden columns are ignored in the calculation and their widths are not automatically updated when\nyou show a column that was initially hidden.\n\nYou can manually trigger the auto sizing behavior again by calling `grid.recalculateColumnWidths()`.\n\nThe column width may still grow larger when `flexGrow` is not 0.",
53
+ "value": {
54
+ "kind": "expression"
55
+ }
56
+ },
57
+ {
58
+ "name": ".header",
59
+ "description": "Text content to display in the header cell of the column.",
60
+ "value": {
61
+ "kind": "expression"
62
+ }
63
+ },
64
+ {
65
+ "name": ".textAlign",
66
+ "description": "Aligns the columns cell content horizontally.\nSupported values: \"start\", \"center\" and \"end\".",
67
+ "value": {
68
+ "kind": "expression"
69
+ }
70
+ },
71
+ {
72
+ "name": ".headerRenderer",
73
+ "description": "Custom function for rendering the header content.\nReceives two arguments:\n\n- `root` The header cell content DOM element. Append your content to it.\n- `column` The `<vaadin-grid-column>` element.",
74
+ "value": {
75
+ "kind": "expression"
76
+ }
77
+ },
78
+ {
79
+ "name": ".footerRenderer",
80
+ "description": "Custom function for rendering the footer content.\nReceives two arguments:\n\n- `root` The footer cell content DOM element. Append your content to it.\n- `column` The `<vaadin-grid-column>` element.",
81
+ "value": {
82
+ "kind": "expression"
83
+ }
84
+ },
85
+ {
86
+ "name": ".width",
87
+ "description": "Width of the cells for this column.",
88
+ "value": {
89
+ "kind": "expression"
90
+ }
91
+ },
92
+ {
93
+ "name": ".flexGrow",
94
+ "description": "Flex grow ratio for the cell widths. When set to 0, cell width is fixed.",
95
+ "value": {
96
+ "kind": "expression"
97
+ }
98
+ },
99
+ {
100
+ "name": ".renderer",
101
+ "description": "Custom function for rendering the cell content.\nReceives three arguments:\n\n- `root` The cell content DOM element. Append your content to it.\n- `column` The `<vaadin-grid-column>` element.\n- `model` The object with the properties related with\n the rendered item, contains:\n - `model.index` The index of the item.\n - `model.item` The item.\n - `model.expanded` Sublevel toggle state.\n - `model.level` Level of the tree represented with a horizontal offset of the toggle button.\n - `model.selected` Selected state.\n - `model.detailsOpened` Details opened state.",
102
+ "value": {
103
+ "kind": "expression"
104
+ }
105
+ },
106
+ {
107
+ "name": ".path",
108
+ "description": "Path to an item sub-property whose value gets displayed in the column body cells.\nThe property name is also shown in the column header if an explicit header or renderer isn't defined.",
109
+ "value": {
110
+ "kind": "expression"
111
+ }
112
+ }
113
+ ]
114
+ },
115
+ {
116
+ "name": "vaadin-grid-column-group",
117
+ "description": "A `<vaadin-grid-column-group>` is used to make groups of columns in `<vaadin-grid>` and\nto configure additional headers and footers.\n\nGroups can be nested to create complex header and footer configurations.\n\n#### Example:\n```html\n<vaadin-grid-column-group resizable id=\"columnGroup\">\n <vaadin-grid-column id=\"column1\"></vaadin-grid-column>\n <vaadin-grid-column id=\"column2\"></vaadin-grid-column>\n</vaadin-grid-column-group>\n```\n```js\nconst columnGroup = document.querySelector('#columnGroup');\ncolumnGroup.headerRenderer = (root, columnGroup) => {\n root.textContent = 'header';\n}\n\nconst column1 = document.querySelector('#column1');\ncolumn1.headerRenderer = (root, column) => { ... };\ncolumn1.renderer = (root, column, model) => { ... };\n\nconst column2 = document.querySelector('#column2');\ncolumn2.headerRenderer = (root, column) => { ... };\ncolumn2.renderer = (root, column, model) => { ... };\n```",
118
+ "extension": true,
119
+ "attributes": [
120
+ {
121
+ "name": "?resizable",
122
+ "description": "When set to true, the column is user-resizable.",
123
+ "value": {
124
+ "kind": "expression"
125
+ }
126
+ },
127
+ {
128
+ "name": "?frozen",
129
+ "description": "When true, the column is frozen. When a column inside of a column group is frozen,\nall of the sibling columns inside the group will get frozen also.",
130
+ "value": {
131
+ "kind": "expression"
132
+ }
133
+ },
134
+ {
135
+ "name": "?frozenToEnd",
136
+ "description": "When true, the column is frozen to end of grid.\n\nWhen a column inside of a column group is frozen to end, all of the sibling columns\ninside the group will get frozen to end also.\n\nColumn can not be set as `frozen` and `frozenToEnd` at the same time.",
137
+ "value": {
138
+ "kind": "expression"
139
+ }
140
+ },
141
+ {
142
+ "name": "?hidden",
143
+ "description": "When set to true, the cells for this column are hidden.",
144
+ "value": {
145
+ "kind": "expression"
146
+ }
147
+ },
148
+ {
149
+ "name": ".header",
150
+ "description": "Text content to display in the header cell of the column.",
151
+ "value": {
152
+ "kind": "expression"
153
+ }
154
+ },
155
+ {
156
+ "name": ".textAlign",
157
+ "description": "Aligns the columns cell content horizontally.\nSupported values: \"start\", \"center\" and \"end\".",
158
+ "value": {
159
+ "kind": "expression"
160
+ }
161
+ },
162
+ {
163
+ "name": ".headerRenderer",
164
+ "description": "Custom function for rendering the header content.\nReceives two arguments:\n\n- `root` The header cell content DOM element. Append your content to it.\n- `column` The `<vaadin-grid-column>` element.",
165
+ "value": {
166
+ "kind": "expression"
167
+ }
168
+ },
169
+ {
170
+ "name": ".footerRenderer",
171
+ "description": "Custom function for rendering the footer content.\nReceives two arguments:\n\n- `root` The footer cell content DOM element. Append your content to it.\n- `column` The `<vaadin-grid-column>` element.",
172
+ "value": {
173
+ "kind": "expression"
174
+ }
175
+ }
176
+ ]
177
+ },
178
+ {
179
+ "name": "vaadin-grid-filter",
180
+ "description": "`<vaadin-grid-filter>` is a helper element for the `<vaadin-grid>` that provides out-of-the-box UI controls,\nand handlers for filtering the grid data.\n\n#### Example:\n```html\n<vaadin-grid-column id=\"column\"></vaadin-grid-column>\n```\n```js\nconst column = document.querySelector('#column');\ncolumn.headerRenderer = (root, column) => {\n let filter = root.firstElementChild;\n if (!filter) {\n filter = document.createElement('vaadin-grid-filter');\n root.appendChild(filter);\n }\n filter.path = 'name.first';\n};\ncolumn.renderer = (root, column, model) => {\n root.textContent = model.item.name.first;\n};\n```",
181
+ "extension": true,
182
+ "attributes": [
183
+ {
184
+ "name": ".path",
185
+ "description": "JS Path of the property in the item used for filtering the data.",
186
+ "value": {
187
+ "kind": "expression"
188
+ }
189
+ },
190
+ {
191
+ "name": ".value",
192
+ "description": "Current filter value.",
193
+ "value": {
194
+ "kind": "expression"
195
+ }
196
+ },
197
+ {
198
+ "name": "@value-changed",
199
+ "description": "Fired when the `value` property changes.",
200
+ "value": {
201
+ "kind": "expression"
202
+ }
203
+ }
204
+ ]
205
+ },
206
+ {
207
+ "name": "vaadin-grid-filter-column",
208
+ "description": "`<vaadin-grid-filter-column>` is a helper element for the `<vaadin-grid>`\nthat provides default header renderer and functionality for filtering.\n\n#### Example:\n```html\n<vaadin-grid items=\"[[items]]\">\n <vaadin-grid-filter-column path=\"name.first\"></vaadin-grid-filter-column>\n\n <vaadin-grid-column>\n ...\n```",
209
+ "extension": true,
210
+ "attributes": [
211
+ {
212
+ "name": "?resizable",
213
+ "description": "When set to true, the column is user-resizable.",
214
+ "value": {
215
+ "kind": "expression"
216
+ }
217
+ },
218
+ {
219
+ "name": "?frozen",
220
+ "description": "When true, the column is frozen. When a column inside of a column group is frozen,\nall of the sibling columns inside the group will get frozen also.",
221
+ "value": {
222
+ "kind": "expression"
223
+ }
224
+ },
225
+ {
226
+ "name": "?frozenToEnd",
227
+ "description": "When true, the column is frozen to end of grid.\n\nWhen a column inside of a column group is frozen to end, all of the sibling columns\ninside the group will get frozen to end also.\n\nColumn can not be set as `frozen` and `frozenToEnd` at the same time.",
228
+ "value": {
229
+ "kind": "expression"
230
+ }
231
+ },
232
+ {
233
+ "name": "?hidden",
234
+ "description": "When set to true, the cells for this column are hidden.",
235
+ "value": {
236
+ "kind": "expression"
237
+ }
238
+ },
239
+ {
240
+ "name": "?autoWidth",
241
+ "description": "Automatically sets the width of the column based on the column contents when this is set to `true`.\n\nFor performance reasons the column width is calculated automatically only once when the grid items\nare rendered for the first time and the calculation only considers the rows which are currently\nrendered in DOM (a bit more than what is currently visible). If the grid is scrolled, or the cell\ncontent changes, the column width might not match the contents anymore.\n\nHidden columns are ignored in the calculation and their widths are not automatically updated when\nyou show a column that was initially hidden.\n\nYou can manually trigger the auto sizing behavior again by calling `grid.recalculateColumnWidths()`.\n\nThe column width may still grow larger when `flexGrow` is not 0.",
242
+ "value": {
243
+ "kind": "expression"
244
+ }
245
+ },
246
+ {
247
+ "name": ".header",
248
+ "description": "Text to display as the label of the column filter text-field.",
249
+ "value": {
250
+ "kind": "expression"
251
+ }
252
+ },
253
+ {
254
+ "name": ".textAlign",
255
+ "description": "Aligns the columns cell content horizontally.\nSupported values: \"start\", \"center\" and \"end\".",
256
+ "value": {
257
+ "kind": "expression"
258
+ }
259
+ },
260
+ {
261
+ "name": ".headerRenderer",
262
+ "description": "Custom function for rendering the header content.\nReceives two arguments:\n\n- `root` The header cell content DOM element. Append your content to it.\n- `column` The `<vaadin-grid-column>` element.",
263
+ "value": {
264
+ "kind": "expression"
265
+ }
266
+ },
267
+ {
268
+ "name": ".footerRenderer",
269
+ "description": "Custom function for rendering the footer content.\nReceives two arguments:\n\n- `root` The footer cell content DOM element. Append your content to it.\n- `column` The `<vaadin-grid-column>` element.",
270
+ "value": {
271
+ "kind": "expression"
272
+ }
273
+ },
274
+ {
275
+ "name": ".width",
276
+ "description": "Width of the cells for this column.",
277
+ "value": {
278
+ "kind": "expression"
279
+ }
280
+ },
281
+ {
282
+ "name": ".flexGrow",
283
+ "description": "Flex grow ratio for the cell widths. When set to 0, cell width is fixed.",
284
+ "value": {
285
+ "kind": "expression"
286
+ }
287
+ },
288
+ {
289
+ "name": ".renderer",
290
+ "description": "Custom function for rendering the cell content.\nReceives three arguments:\n\n- `root` The cell content DOM element. Append your content to it.\n- `column` The `<vaadin-grid-column>` element.\n- `model` The object with the properties related with\n the rendered item, contains:\n - `model.index` The index of the item.\n - `model.item` The item.\n - `model.expanded` Sublevel toggle state.\n - `model.level` Level of the tree represented with a horizontal offset of the toggle button.\n - `model.selected` Selected state.\n - `model.detailsOpened` Details opened state.",
291
+ "value": {
292
+ "kind": "expression"
293
+ }
294
+ },
295
+ {
296
+ "name": ".path",
297
+ "description": "JS Path of the property in the item used for filtering the data.",
298
+ "value": {
299
+ "kind": "expression"
300
+ }
301
+ }
302
+ ]
303
+ },
304
+ {
305
+ "name": "vaadin-grid-selection-column",
306
+ "description": "`<vaadin-grid-selection-column>` is a helper element for the `<vaadin-grid>`\nthat provides default renderers and functionality for item selection.\n\n#### Example:\n```html\n<vaadin-grid items=\"[[items]]\">\n <vaadin-grid-selection-column frozen auto-select></vaadin-grid-selection-column>\n\n <vaadin-grid-column>\n ...\n```\n\nBy default the selection column displays `<vaadin-checkbox>` elements in the\ncolumn cells. The checkboxes in the body rows toggle selection of the corresponding row items.\n\nWhen the grid data is provided as an array of [`items`](https://cdn.vaadin.com/vaadin-web-components/23.3.0-alpha1/#/elements/vaadin-grid#property-items),\nthe column header gets an additional checkbox that can be used for toggling\nselection for all the items at once.\n\n__The default content can also be overridden__",
307
+ "extension": true,
308
+ "attributes": [
309
+ {
310
+ "name": "?resizable",
311
+ "description": "When set to true, the column is user-resizable.",
312
+ "value": {
313
+ "kind": "expression"
314
+ }
315
+ },
316
+ {
317
+ "name": "?frozen",
318
+ "description": "When true, the column is frozen. When a column inside of a column group is frozen,\nall of the sibling columns inside the group will get frozen also.",
319
+ "value": {
320
+ "kind": "expression"
321
+ }
322
+ },
323
+ {
324
+ "name": "?frozenToEnd",
325
+ "description": "When true, the column is frozen to end of grid.\n\nWhen a column inside of a column group is frozen to end, all of the sibling columns\ninside the group will get frozen to end also.\n\nColumn can not be set as `frozen` and `frozenToEnd` at the same time.",
326
+ "value": {
327
+ "kind": "expression"
328
+ }
329
+ },
330
+ {
331
+ "name": "?hidden",
332
+ "description": "When set to true, the cells for this column are hidden.",
333
+ "value": {
334
+ "kind": "expression"
335
+ }
336
+ },
337
+ {
338
+ "name": "?autoWidth",
339
+ "description": "Automatically sets the width of the column based on the column contents when this is set to `true`.\n\nFor performance reasons the column width is calculated automatically only once when the grid items\nare rendered for the first time and the calculation only considers the rows which are currently\nrendered in DOM (a bit more than what is currently visible). If the grid is scrolled, or the cell\ncontent changes, the column width might not match the contents anymore.\n\nHidden columns are ignored in the calculation and their widths are not automatically updated when\nyou show a column that was initially hidden.\n\nYou can manually trigger the auto sizing behavior again by calling `grid.recalculateColumnWidths()`.\n\nThe column width may still grow larger when `flexGrow` is not 0.",
340
+ "value": {
341
+ "kind": "expression"
342
+ }
343
+ },
344
+ {
345
+ "name": "?selectAll",
346
+ "description": "When true, all the items are selected.",
347
+ "value": {
348
+ "kind": "expression"
349
+ }
350
+ },
351
+ {
352
+ "name": "?autoSelect",
353
+ "description": "When true, the active gets automatically selected.",
354
+ "value": {
355
+ "kind": "expression"
356
+ }
357
+ },
358
+ {
359
+ "name": ".header",
360
+ "description": "Text content to display in the header cell of the column.",
361
+ "value": {
362
+ "kind": "expression"
363
+ }
364
+ },
365
+ {
366
+ "name": ".textAlign",
367
+ "description": "Aligns the columns cell content horizontally.\nSupported values: \"start\", \"center\" and \"end\".",
368
+ "value": {
369
+ "kind": "expression"
370
+ }
371
+ },
372
+ {
373
+ "name": ".headerRenderer",
374
+ "description": "Custom function for rendering the header content.\nReceives two arguments:\n\n- `root` The header cell content DOM element. Append your content to it.\n- `column` The `<vaadin-grid-column>` element.",
375
+ "value": {
376
+ "kind": "expression"
377
+ }
378
+ },
379
+ {
380
+ "name": ".footerRenderer",
381
+ "description": "Custom function for rendering the footer content.\nReceives two arguments:\n\n- `root` The footer cell content DOM element. Append your content to it.\n- `column` The `<vaadin-grid-column>` element.",
382
+ "value": {
383
+ "kind": "expression"
384
+ }
385
+ },
386
+ {
387
+ "name": ".width",
388
+ "description": "Width of the cells for this column.",
389
+ "value": {
390
+ "kind": "expression"
391
+ }
392
+ },
393
+ {
394
+ "name": ".flexGrow",
395
+ "description": "Flex grow ratio for the cell widths. When set to 0, cell width is fixed.",
396
+ "value": {
397
+ "kind": "expression"
398
+ }
399
+ },
400
+ {
401
+ "name": ".renderer",
402
+ "description": "Custom function for rendering the cell content.\nReceives three arguments:\n\n- `root` The cell content DOM element. Append your content to it.\n- `column` The `<vaadin-grid-column>` element.\n- `model` The object with the properties related with\n the rendered item, contains:\n - `model.index` The index of the item.\n - `model.item` The item.\n - `model.expanded` Sublevel toggle state.\n - `model.level` Level of the tree represented with a horizontal offset of the toggle button.\n - `model.selected` Selected state.\n - `model.detailsOpened` Details opened state.",
403
+ "value": {
404
+ "kind": "expression"
405
+ }
406
+ },
407
+ {
408
+ "name": ".path",
409
+ "description": "Path to an item sub-property whose value gets displayed in the column body cells.\nThe property name is also shown in the column header if an explicit header or renderer isn't defined.",
410
+ "value": {
411
+ "kind": "expression"
412
+ }
413
+ },
414
+ {
415
+ "name": "@select-all-changed",
416
+ "description": "Fired when the `selectAll` property changes.",
417
+ "value": {
418
+ "kind": "expression"
419
+ }
420
+ },
421
+ {
422
+ "name": "@selectAll-changed",
423
+ "description": "Fired when the `selectAll` property changes.",
424
+ "value": {
425
+ "kind": "expression"
426
+ }
427
+ }
428
+ ]
429
+ },
430
+ {
431
+ "name": "vaadin-grid-sorter",
432
+ "description": "`<vaadin-grid-sorter>` is a helper element for the `<vaadin-grid>` that provides out-of-the-box UI controls,\nvisual feedback, and handlers for sorting the grid data.\n\n#### Example:\n```html\n<vaadin-grid-column id=\"column\"></vaadin-grid-column>\n```\n```js\nconst column = document.querySelector('#column');\ncolumn.renderer = (root, column, model) => {\n let sorter = root.firstElementChild;\n if (!sorter) {\n sorter = document.createElement('vaadin-grid-sorter');\n root.appendChild(sorter);\n }\n sorter.path = 'name.first';\n};\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n----------------|----------------\n`content` | The slotted content wrapper\n`indicators` | The internal sorter indicators.\n`order` | The internal sorter order\n\nThe following state attributes are available for styling:\n\nAttribute | Description | Part name\n-------------|-------------|------------\n`direction` | Sort direction of a sorter | :host",
433
+ "extension": true,
434
+ "attributes": [
435
+ {
436
+ "name": ".path",
437
+ "description": "JS Path of the property in the item used for sorting the data.",
438
+ "value": {
439
+ "kind": "expression"
440
+ }
441
+ },
442
+ {
443
+ "name": ".direction",
444
+ "description": "How to sort the data.\nPossible values are `asc` to use an ascending algorithm, `desc` to sort the data in\ndescending direction, or `null` for not sorting the data.",
445
+ "value": {
446
+ "kind": "expression"
447
+ }
448
+ },
449
+ {
450
+ "name": "@direction-changed",
451
+ "description": "Fired when the `direction` property changes.",
452
+ "value": {
453
+ "kind": "expression"
454
+ }
455
+ }
456
+ ]
457
+ },
458
+ {
459
+ "name": "vaadin-grid-sort-column",
460
+ "description": "`<vaadin-grid-sort-column>` is a helper element for the `<vaadin-grid>`\nthat provides default header renderer and functionality for sorting.\n\n#### Example:\n```html\n<vaadin-grid items=\"[[items]]\">\n <vaadin-grid-sort-column path=\"name.first\" direction=\"asc\"></vaadin-grid-sort-column>\n\n <vaadin-grid-column>\n ...\n```",
461
+ "extension": true,
462
+ "attributes": [
463
+ {
464
+ "name": "?resizable",
465
+ "description": "When set to true, the column is user-resizable.",
466
+ "value": {
467
+ "kind": "expression"
468
+ }
469
+ },
470
+ {
471
+ "name": "?frozen",
472
+ "description": "When true, the column is frozen. When a column inside of a column group is frozen,\nall of the sibling columns inside the group will get frozen also.",
473
+ "value": {
474
+ "kind": "expression"
475
+ }
476
+ },
477
+ {
478
+ "name": "?frozenToEnd",
479
+ "description": "When true, the column is frozen to end of grid.\n\nWhen a column inside of a column group is frozen to end, all of the sibling columns\ninside the group will get frozen to end also.\n\nColumn can not be set as `frozen` and `frozenToEnd` at the same time.",
480
+ "value": {
481
+ "kind": "expression"
482
+ }
483
+ },
484
+ {
485
+ "name": "?hidden",
486
+ "description": "When set to true, the cells for this column are hidden.",
487
+ "value": {
488
+ "kind": "expression"
489
+ }
490
+ },
491
+ {
492
+ "name": "?autoWidth",
493
+ "description": "Automatically sets the width of the column based on the column contents when this is set to `true`.\n\nFor performance reasons the column width is calculated automatically only once when the grid items\nare rendered for the first time and the calculation only considers the rows which are currently\nrendered in DOM (a bit more than what is currently visible). If the grid is scrolled, or the cell\ncontent changes, the column width might not match the contents anymore.\n\nHidden columns are ignored in the calculation and their widths are not automatically updated when\nyou show a column that was initially hidden.\n\nYou can manually trigger the auto sizing behavior again by calling `grid.recalculateColumnWidths()`.\n\nThe column width may still grow larger when `flexGrow` is not 0.",
494
+ "value": {
495
+ "kind": "expression"
496
+ }
497
+ },
498
+ {
499
+ "name": ".header",
500
+ "description": "Text content to display in the header cell of the column.",
501
+ "value": {
502
+ "kind": "expression"
503
+ }
504
+ },
505
+ {
506
+ "name": ".textAlign",
507
+ "description": "Aligns the columns cell content horizontally.\nSupported values: \"start\", \"center\" and \"end\".",
508
+ "value": {
509
+ "kind": "expression"
510
+ }
511
+ },
512
+ {
513
+ "name": ".headerRenderer",
514
+ "description": "Custom function for rendering the header content.\nReceives two arguments:\n\n- `root` The header cell content DOM element. Append your content to it.\n- `column` The `<vaadin-grid-column>` element.",
515
+ "value": {
516
+ "kind": "expression"
517
+ }
518
+ },
519
+ {
520
+ "name": ".footerRenderer",
521
+ "description": "Custom function for rendering the footer content.\nReceives two arguments:\n\n- `root` The footer cell content DOM element. Append your content to it.\n- `column` The `<vaadin-grid-column>` element.",
522
+ "value": {
523
+ "kind": "expression"
524
+ }
525
+ },
526
+ {
527
+ "name": ".width",
528
+ "description": "Width of the cells for this column.",
529
+ "value": {
530
+ "kind": "expression"
531
+ }
532
+ },
533
+ {
534
+ "name": ".flexGrow",
535
+ "description": "Flex grow ratio for the cell widths. When set to 0, cell width is fixed.",
536
+ "value": {
537
+ "kind": "expression"
538
+ }
539
+ },
540
+ {
541
+ "name": ".renderer",
542
+ "description": "Custom function for rendering the cell content.\nReceives three arguments:\n\n- `root` The cell content DOM element. Append your content to it.\n- `column` The `<vaadin-grid-column>` element.\n- `model` The object with the properties related with\n the rendered item, contains:\n - `model.index` The index of the item.\n - `model.item` The item.\n - `model.expanded` Sublevel toggle state.\n - `model.level` Level of the tree represented with a horizontal offset of the toggle button.\n - `model.selected` Selected state.\n - `model.detailsOpened` Details opened state.",
543
+ "value": {
544
+ "kind": "expression"
545
+ }
546
+ },
547
+ {
548
+ "name": ".path",
549
+ "description": "JS Path of the property in the item used for sorting the data.",
550
+ "value": {
551
+ "kind": "expression"
552
+ }
553
+ },
554
+ {
555
+ "name": ".direction",
556
+ "description": "How to sort the data.\nPossible values are `asc` to use an ascending algorithm, `desc` to sort the data in\ndescending direction, or `null` for not sorting the data.",
557
+ "value": {
558
+ "kind": "expression"
559
+ }
560
+ },
561
+ {
562
+ "name": "@direction-changed",
563
+ "description": "Fired when the `direction` property changes.",
564
+ "value": {
565
+ "kind": "expression"
566
+ }
567
+ }
568
+ ]
569
+ },
570
+ {
571
+ "name": "vaadin-grid-tree-toggle",
572
+ "description": "`<vaadin-grid-tree-toggle>` is a helper element for the `<vaadin-grid>`\nthat provides toggle and level display functionality for the item tree.\n\n#### Example:\n```html\n<vaadin-grid-column id=\"column\"></vaadin-grid-column>\n```\n```js\nconst column = document.querySelector('#column');\ncolumn.renderer = (root, column, model) => {\n let treeToggle = root.firstElementChild;\n if (!treeToggle) {\n treeToggle = document.createElement('vaadin-grid-tree-toggle');\n treeToggle.addEventListener('expanded-changed', () => { ... });\n root.appendChild(treeToggle);\n }\n treeToggle.leaf = !model.item.hasChildren;\n treeToggle.level = level;\n treeToggle.expanded = expanded;\n treeToggle.textContent = model.item.name;\n};\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n---|---\n`toggle` | The tree toggle icon\n\nThe following state attributes are available for styling:\n\nAttribute | Description | Part name\n---|---|---\n`expanded` | When present, the toggle is expanded | :host\n`leaf` | When present, the toggle is not expandable, i. e., the current item is a leaf | :host\n\nThe following custom CSS properties are available on\nthe `<vaadin-grid-tree-toggle>` element:\n\nCustom CSS property | Description | Default\n---|---|---\n`--vaadin-grid-tree-toggle-level-offset` | Visual offset step for each tree sublevel | `1em`",
573
+ "extension": true,
574
+ "attributes": [
575
+ {
576
+ "name": "?leaf",
577
+ "description": "Hides the toggle icon and disables toggling a tree sublevel.",
578
+ "value": {
579
+ "kind": "expression"
580
+ }
581
+ },
582
+ {
583
+ "name": "?expanded",
584
+ "description": "Sublevel toggle state.",
585
+ "value": {
586
+ "kind": "expression"
587
+ }
588
+ },
589
+ {
590
+ "name": ".level",
591
+ "description": "Current level of the tree represented with a horizontal offset\nof the toggle button.",
592
+ "value": {
593
+ "kind": "expression"
594
+ }
595
+ },
596
+ {
597
+ "name": "@expanded-changed",
598
+ "description": "Fired when the `expanded` property changes.",
599
+ "value": {
600
+ "kind": "expression"
601
+ }
602
+ }
603
+ ]
604
+ },
605
+ {
606
+ "name": "vaadin-grid-tree-column",
607
+ "description": "`<vaadin-grid-tree-column>` is a helper element for the `<vaadin-grid>`\nthat provides default renderer and functionality for toggling tree/hierarchical items.\n\n#### Example:\n```html\n<vaadin-grid items=\"[[items]]\">\n <vaadin-grid-tree-column path=\"name.first\"></vaadin-grid-tree-column>\n\n <vaadin-grid-column>\n ...\n```",
608
+ "extension": true,
609
+ "attributes": [
610
+ {
611
+ "name": "?resizable",
612
+ "description": "When set to true, the column is user-resizable.",
613
+ "value": {
614
+ "kind": "expression"
615
+ }
616
+ },
617
+ {
618
+ "name": "?frozen",
619
+ "description": "When true, the column is frozen. When a column inside of a column group is frozen,\nall of the sibling columns inside the group will get frozen also.",
620
+ "value": {
621
+ "kind": "expression"
622
+ }
623
+ },
624
+ {
625
+ "name": "?frozenToEnd",
626
+ "description": "When true, the column is frozen to end of grid.\n\nWhen a column inside of a column group is frozen to end, all of the sibling columns\ninside the group will get frozen to end also.\n\nColumn can not be set as `frozen` and `frozenToEnd` at the same time.",
627
+ "value": {
628
+ "kind": "expression"
629
+ }
630
+ },
631
+ {
632
+ "name": "?hidden",
633
+ "description": "When set to true, the cells for this column are hidden.",
634
+ "value": {
635
+ "kind": "expression"
636
+ }
637
+ },
638
+ {
639
+ "name": "?autoWidth",
640
+ "description": "Automatically sets the width of the column based on the column contents when this is set to `true`.\n\nFor performance reasons the column width is calculated automatically only once when the grid items\nare rendered for the first time and the calculation only considers the rows which are currently\nrendered in DOM (a bit more than what is currently visible). If the grid is scrolled, or the cell\ncontent changes, the column width might not match the contents anymore.\n\nHidden columns are ignored in the calculation and their widths are not automatically updated when\nyou show a column that was initially hidden.\n\nYou can manually trigger the auto sizing behavior again by calling `grid.recalculateColumnWidths()`.\n\nThe column width may still grow larger when `flexGrow` is not 0.",
641
+ "value": {
642
+ "kind": "expression"
643
+ }
644
+ },
645
+ {
646
+ "name": ".header",
647
+ "description": "Text content to display in the header cell of the column.",
648
+ "value": {
649
+ "kind": "expression"
650
+ }
651
+ },
652
+ {
653
+ "name": ".textAlign",
654
+ "description": "Aligns the columns cell content horizontally.\nSupported values: \"start\", \"center\" and \"end\".",
655
+ "value": {
656
+ "kind": "expression"
657
+ }
658
+ },
659
+ {
660
+ "name": ".headerRenderer",
661
+ "description": "Custom function for rendering the header content.\nReceives two arguments:\n\n- `root` The header cell content DOM element. Append your content to it.\n- `column` The `<vaadin-grid-column>` element.",
662
+ "value": {
663
+ "kind": "expression"
664
+ }
665
+ },
666
+ {
667
+ "name": ".footerRenderer",
668
+ "description": "Custom function for rendering the footer content.\nReceives two arguments:\n\n- `root` The footer cell content DOM element. Append your content to it.\n- `column` The `<vaadin-grid-column>` element.",
669
+ "value": {
670
+ "kind": "expression"
671
+ }
672
+ },
673
+ {
674
+ "name": ".width",
675
+ "description": "Width of the cells for this column.",
676
+ "value": {
677
+ "kind": "expression"
678
+ }
679
+ },
680
+ {
681
+ "name": ".flexGrow",
682
+ "description": "Flex grow ratio for the cell widths. When set to 0, cell width is fixed.",
683
+ "value": {
684
+ "kind": "expression"
685
+ }
686
+ },
687
+ {
688
+ "name": ".renderer",
689
+ "description": "Custom function for rendering the cell content.\nReceives three arguments:\n\n- `root` The cell content DOM element. Append your content to it.\n- `column` The `<vaadin-grid-column>` element.\n- `model` The object with the properties related with\n the rendered item, contains:\n - `model.index` The index of the item.\n - `model.item` The item.\n - `model.expanded` Sublevel toggle state.\n - `model.level` Level of the tree represented with a horizontal offset of the toggle button.\n - `model.selected` Selected state.\n - `model.detailsOpened` Details opened state.",
690
+ "value": {
691
+ "kind": "expression"
692
+ }
693
+ },
694
+ {
695
+ "name": ".path",
696
+ "description": "JS Path of the property in the item used as text content for the tree toggle.",
697
+ "value": {
698
+ "kind": "expression"
699
+ }
700
+ },
701
+ {
702
+ "name": ".itemHasChildrenPath",
703
+ "description": "JS Path of the property in the item that indicates whether the item has child items.",
704
+ "value": {
705
+ "kind": "expression"
706
+ }
707
+ }
708
+ ]
709
+ },
710
+ {
711
+ "name": "vaadin-grid",
712
+ "description": "`<vaadin-grid>` is a free, high quality data grid / data table Web Component. The content of the\nthe grid can be populated by using renderer callback function.\n\n### Quick Start\n\nStart with an assigning an array to the [`items`](https://cdn.vaadin.com/vaadin-web-components/23.3.0-alpha1/#/elements/vaadin-grid#property-items) property to visualize your data.\n\nUse the [`<vaadin-grid-column>`](https://cdn.vaadin.com/vaadin-web-components/23.3.0-alpha1/#/elements/vaadin-grid-column) element to configure the grid columns. Set `path` and `header`\nshorthand properties for the columns to define what gets rendered in the cells of the column.\n\n#### Example:\n```html\n<vaadin-grid>\n <vaadin-grid-column path=\"name.first\" header=\"First name\"></vaadin-grid-column>\n <vaadin-grid-column path=\"name.last\" header=\"Last name\"></vaadin-grid-column>\n <vaadin-grid-column path=\"email\"></vaadin-grid-column>\n</vaadin-grid>\n```\n\nFor custom content `vaadin-grid-column` element provides you with three types of `renderer` callback functions: `headerRenderer`,\n`renderer` and `footerRenderer`.\n\nEach of those renderer functions provides `root`, `column`, `model` arguments when applicable.\nGenerate DOM content, append it to the `root` element and control the state\nof the host element by accessing `column`. Before generating new content,\nusers are able to check if there is already content in `root` for reusing it.\n\nRenderers are called on initialization of new column cells and each time the\nrelated row model is updated. DOM generated during the renderer call can be reused\nin the next renderer call and will be provided with the `root` argument.\nOn first call it will be empty.\n\n#### Example:\n```html\n<vaadin-grid>\n <vaadin-grid-column></vaadin-grid-column>\n <vaadin-grid-column></vaadin-grid-column>\n <vaadin-grid-column></vaadin-grid-column>\n</vaadin-grid>\n```\n```js\nconst grid = document.querySelector('vaadin-grid');\ngrid.items = [{'name': 'John', 'surname': 'Lennon', 'role': 'singer'},\n {'name': 'Ringo', 'surname': 'Starr', 'role': 'drums'}];\n\nconst columns = grid.querySelectorAll('vaadin-grid-column');\n\ncolumns[0].headerRenderer = function(root) {\n root.textContent = 'Name';\n};\ncolumns[0].renderer = function(root, column, model) {\n root.textContent = model.item.name;\n};\n\ncolumns[1].headerRenderer = function(root) {\n root.textContent = 'Surname';\n};\ncolumns[1].renderer = function(root, column, model) {\n root.textContent = model.item.surname;\n};\n\ncolumns[2].headerRenderer = function(root) {\n root.textContent = 'Role';\n};\ncolumns[2].renderer = function(root, column, model) {\n root.textContent = model.item.role;\n};\n```\n\nThe following properties are available in the `model` argument:\n\nProperty name | Type | Description\n--------------|------|------------\n`index`| Number | The index of the item.\n`item` | String or Object | The item.\n`level` | Number | Number of the item's tree sublevel, starts from 0.\n`expanded` | Boolean | True if the item's tree sublevel is expanded.\n`selected` | Boolean | True if the item is selected.\n`detailsOpened` | Boolean | True if the item's row details are open.\n\nThe following helper elements can be used for further customization:\n- [`<vaadin-grid-column-group>`](https://cdn.vaadin.com/vaadin-web-components/23.3.0-alpha1/#/elements/vaadin-grid-column-group)\n- [`<vaadin-grid-filter>`](https://cdn.vaadin.com/vaadin-web-components/23.3.0-alpha1/#/elements/vaadin-grid-filter)\n- [`<vaadin-grid-sorter>`](https://cdn.vaadin.com/vaadin-web-components/23.3.0-alpha1/#/elements/vaadin-grid-sorter)\n- [`<vaadin-grid-selection-column>`](https://cdn.vaadin.com/vaadin-web-components/23.3.0-alpha1/#/elements/vaadin-grid-selection-column)\n- [`<vaadin-grid-tree-toggle>`](https://cdn.vaadin.com/vaadin-web-components/23.3.0-alpha1/#/elements/vaadin-grid-tree-toggle)\n\n__Note that the helper elements must be explicitly imported.__\nIf you want to import everything at once you can use the `all-imports.html` bundle.\n\n### Lazy Loading with Function Data Provider\n\nIn addition to assigning an array to the items property, you can alternatively\nprovide the `<vaadin-grid>` data through the\n[`dataProvider`](https://cdn.vaadin.com/vaadin-web-components/23.3.0-alpha1/#/elements/vaadin-grid#property-dataProvider) function property.\nThe `<vaadin-grid>` calls this function lazily, only when it needs more data\nto be displayed.\n\nSee the [`dataProvider`](https://cdn.vaadin.com/vaadin-web-components/23.3.0-alpha1/#/elements/vaadin-grid#property-dataProvider) in\nthe API reference below for the detailed data provider arguments description,\nand the “Assigning Data” page in the demos.\n\n__Note that expanding the tree grid's item will trigger a call to the `dataProvider`.__\n\n__Also, note that when using function data providers, the total number of items\nneeds to be set manually. The total number of items can be returned\nin the second argument of the data provider callback:__\n\n```javascript\ngrid.dataProvider = ({page, pageSize}, callback) => {\n // page: the requested page index\n // pageSize: number of items on one page\n const url = `https://api.example/data?page=${page}&per_page=${pageSize}`;\n\n fetch(url)\n .then((res) => res.json())\n .then(({ employees, totalSize }) => {\n callback(employees, totalSize);\n });\n};\n```\n\n__Alternatively, you can use the `size` property to set the total number of items:__\n\n```javascript\ngrid.size = 200; // The total number of items\ngrid.dataProvider = ({page, pageSize}, callback) => {\n const url = `https://api.example/data?page=${page}&per_page=${pageSize}`;\n\n fetch(url)\n .then((res) => res.json())\n .then((resJson) => callback(resJson.employees));\n};\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n----------------|----------------\n`row` | Row in the internal table\n`cell` | Cell in the internal table\n`header-cell` | Header cell in the internal table\n`body-cell` | Body cell in the internal table\n`footer-cell` | Footer cell in the internal table\n`details-cell` | Row details cell in the internal table\n`resize-handle` | Handle for resizing the columns\n`reorder-ghost` | Ghost element of the header cell being dragged\n\nThe following state attributes are available for styling:\n\nAttribute | Description | Part name\n-------------|-------------|------------\n`loading` | Set when the grid is loading data from data provider | :host\n`interacting` | Keyboard navigation in interaction mode | :host\n`navigating` | Keyboard navigation in navigation mode | :host\n`overflow` | Set when rows are overflowing the grid viewport. Possible values: `top`, `bottom`, `start`, `end` | :host\n`reordering` | Set when the grid's columns are being reordered | :host\n`dragover` | Set when the grid (not a specific row) is dragged over | :host\n`dragging-rows` | Set when grid rows are dragged | :host\n`reorder-status` | Reflects the status of a cell while columns are being reordered | cell\n`frozen` | Frozen cell | cell\n`last-frozen` | Last frozen cell | cell\n`first-column` | First visible cell on a row | cell\n`last-column` | Last visible cell on a row | cell\n`selected` | Selected row | row\n`expanded` | Expanded row | row\n`details-opened` | Row with details open | row\n`loading` | Row that is waiting for data from data provider | row\n`odd` | Odd row | row\n`first` | The first body row | row\n`last` | The last body row | row\n`dragstart` | Set for one frame when drag of a row is starting. The value is a number when multiple rows are dragged | row\n`dragover` | Set when the row is dragged over | row\n`drag-disabled` | Set to a row that isn't available for dragging | row\n`drop-disabled` | Set to a row that can't be dropped on top of | row\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/custom-theme/styling-components) documentation.",
713
+ "extension": true,
714
+ "attributes": [
715
+ {
716
+ "name": "?multiSort",
717
+ "description": "When `true`, all `<vaadin-grid-sorter>` are applied for sorting.",
718
+ "value": {
719
+ "kind": "expression"
720
+ }
721
+ },
722
+ {
723
+ "name": "?columnReorderingAllowed",
724
+ "description": "Set to true to allow column reordering.",
725
+ "value": {
726
+ "kind": "expression"
727
+ }
728
+ },
729
+ {
730
+ "name": "?rowsDraggable",
731
+ "description": "Marks the grid's rows to be available for dragging.",
732
+ "value": {
733
+ "kind": "expression"
734
+ }
735
+ },
736
+ {
737
+ "name": "?allRowsVisible",
738
+ "description": "If true, the grid's height is defined by its rows.\n\nEffectively, this disables the grid's virtual scrolling so that all the rows are rendered in the DOM at once.\nIf the grid has a large number of items, using the feature is discouraged to avoid performance issues.",
739
+ "value": {
740
+ "kind": "expression"
741
+ }
742
+ },
743
+ {
744
+ "name": ".activeItem",
745
+ "description": "The item user has last interacted with. Turns to `null` after user deactivates\nthe item by re-interacting with the currently active item.",
746
+ "value": {
747
+ "kind": "expression"
748
+ }
749
+ },
750
+ {
751
+ "name": ".items",
752
+ "description": "An array containing the items which will be passed to renderer functions.",
753
+ "value": {
754
+ "kind": "expression"
755
+ }
756
+ },
757
+ {
758
+ "name": ".size",
759
+ "description": "The number of root-level items in the grid.",
760
+ "value": {
761
+ "kind": "expression"
762
+ }
763
+ },
764
+ {
765
+ "name": ".pageSize",
766
+ "description": "Number of items fetched at a time from the dataprovider.",
767
+ "value": {
768
+ "kind": "expression"
769
+ }
770
+ },
771
+ {
772
+ "name": ".dataProvider",
773
+ "description": "Function that provides items lazily. Receives arguments `params`, `callback`\n\n`params.page` Requested page index\n\n`params.pageSize` Current page size\n\n`params.filters` Currently applied filters\n\n`params.sortOrders` Currently applied sorting orders\n\n`params.parentItem` When tree is used, and sublevel items\nare requested, reference to parent item of the requested sublevel.\nOtherwise `undefined`.\n\n`callback(items, size)` Callback function with arguments:\n - `items` Current page of items\n - `size` Total number of items. When tree sublevel items\n are requested, total number of items in the requested sublevel.\n Optional when tree is not used, required for tree.",
774
+ "value": {
775
+ "kind": "expression"
776
+ }
777
+ },
778
+ {
779
+ "name": ".itemHasChildrenPath",
780
+ "description": "Path to an item sub-property that indicates whether the item has child items.",
781
+ "value": {
782
+ "kind": "expression"
783
+ }
784
+ },
785
+ {
786
+ "name": ".itemIdPath",
787
+ "description": "Path to an item sub-property that identifies the item.",
788
+ "value": {
789
+ "kind": "expression"
790
+ }
791
+ },
792
+ {
793
+ "name": ".expandedItems",
794
+ "description": "An array that contains the expanded items.",
795
+ "value": {
796
+ "kind": "expression"
797
+ }
798
+ },
799
+ {
800
+ "name": ".detailsOpenedItems",
801
+ "description": "An array containing references to items with open row details.",
802
+ "value": {
803
+ "kind": "expression"
804
+ }
805
+ },
806
+ {
807
+ "name": ".rowDetailsRenderer",
808
+ "description": "Custom function for rendering the content of the row details.\nReceives three arguments:\n\n- `root` The row details content DOM element. Append your content to it.\n- `grid` The `<vaadin-grid>` element.\n- `model` The object with the properties related with\n the rendered item, contains:\n - `model.index` The index of the item.\n - `model.item` The item.\n - `model.level` The number of the item's tree sublevel, starts from 0.\n - `model.expanded` True if the item's tree sublevel is expanded.\n - `model.selected` True if the item is selected.",
809
+ "value": {
810
+ "kind": "expression"
811
+ }
812
+ },
813
+ {
814
+ "name": ".selectedItems",
815
+ "description": "An array that contains the selected items.",
816
+ "value": {
817
+ "kind": "expression"
818
+ }
819
+ },
820
+ {
821
+ "name": ".multiSortPriority",
822
+ "description": "Controls how columns are added to the sort order when using multi-sort.\nThe sort order is visually indicated by numbers in grid sorters placed in column headers.\n\nBy default, whenever an unsorted column is sorted, or the sort-direction of a column is\nchanged, that column gets sort priority 1, thus affecting the priority for all the other\nsorted columns. This is identical to using `multi-sort-priority=\"prepend\"`.\n\nUsing this property allows to change this behavior so that sorting an unsorted column\nwould add it to the \"end\" of the sort, and changing column's sort direction would retain\nit's previous priority. To set this, use `multi-sort-priority=\"append\"`.",
823
+ "value": {
824
+ "kind": "expression"
825
+ }
826
+ },
827
+ {
828
+ "name": ".cellClassNameGenerator",
829
+ "description": "A function that allows generating CSS class names for grid cells\nbased on their row and column. The return value should be the generated\nclass name as a string, or multiple class names separated by whitespace\ncharacters.\n\nReceives two arguments:\n- `column` The `<vaadin-grid-column>` element (`undefined` for details-cell).\n- `model` The object with the properties related with\n the rendered item, contains:\n - `model.index` The index of the item.\n - `model.item` The item.\n - `model.expanded` Sublevel toggle state.\n - `model.level` Level of the tree represented with a horizontal offset of the toggle button.\n - `model.selected` Selected state.",
830
+ "value": {
831
+ "kind": "expression"
832
+ }
833
+ },
834
+ {
835
+ "name": ".dropMode",
836
+ "description": "Defines the locations within the Grid row where an element can be dropped.\n\nPossible values are:\n- `between`: The drop event can happen between Grid rows.\n- `on-top`: The drop event can happen on top of Grid rows.\n- `on-top-or-between`: The drop event can happen either on top of or between Grid rows.\n- `on-grid`: The drop event will not happen on any specific row, it will show the drop target outline around the whole grid.",
837
+ "value": {
838
+ "kind": "expression"
839
+ }
840
+ },
841
+ {
842
+ "name": ".dragFilter",
843
+ "description": "A function that filters dragging of specific grid rows. The return value should be false\nif dragging of the row should be disabled.\n\nReceives one argument:\n- `model` The object with the properties related with\n the rendered item, contains:\n - `model.index` The index of the item.\n - `model.item` The item.\n - `model.expanded` Sublevel toggle state.\n - `model.level` Level of the tree represented with a horizontal offset of the toggle button.\n - `model.selected` Selected state.",
844
+ "value": {
845
+ "kind": "expression"
846
+ }
847
+ },
848
+ {
849
+ "name": ".dropFilter",
850
+ "description": "A function that filters dropping on specific grid rows. The return value should be false\nif dropping on the row should be disabled.\n\nReceives one argument:\n- `model` The object with the properties related with\n the rendered item, contains:\n - `model.index` The index of the item.\n - `model.item` The item.\n - `model.expanded` Sublevel toggle state.\n - `model.level` Level of the tree represented with a horizontal offset of the toggle button.\n - `model.selected` Selected state.",
851
+ "value": {
852
+ "kind": "expression"
853
+ }
854
+ },
855
+ {
856
+ "name": "@active-item-changed",
857
+ "description": "Fired when the `activeItem` property changes.",
858
+ "value": {
859
+ "kind": "expression"
860
+ }
861
+ },
862
+ {
863
+ "name": "@cell-activate",
864
+ "description": "Fired when the cell is activated with click or keyboard.",
865
+ "value": {
866
+ "kind": "expression"
867
+ }
868
+ },
869
+ {
870
+ "name": "@column-resize",
871
+ "description": "Fired when a column in the grid is resized by the user.",
872
+ "value": {
873
+ "kind": "expression"
874
+ }
875
+ },
876
+ {
877
+ "name": "@expanded-items-changed",
878
+ "description": "Fired when the `expandedItems` property changes.",
879
+ "value": {
880
+ "kind": "expression"
881
+ }
882
+ },
883
+ {
884
+ "name": "@loading-changed",
885
+ "description": "Fired when the `loading` property changes.",
886
+ "value": {
887
+ "kind": "expression"
888
+ }
889
+ },
890
+ {
891
+ "name": "@selected-items-changed",
892
+ "description": "Fired when the `selectedItems` property changes.",
893
+ "value": {
894
+ "kind": "expression"
895
+ }
896
+ },
897
+ {
898
+ "name": "@cell-focus",
899
+ "description": "Fired when a cell is focused with click or keyboard navigation.\n\nUse context property of @see {@link GridCellFocusEvent} to get detail information about the event.",
900
+ "value": {
901
+ "kind": "expression"
902
+ }
903
+ },
904
+ {
905
+ "name": "@column-reorder",
906
+ "description": "Fired when the columns in the grid are reordered.",
907
+ "value": {
908
+ "kind": "expression"
909
+ }
910
+ },
911
+ {
912
+ "name": "@grid-dragend",
913
+ "description": "Fired when the dragging of the rows ends.",
914
+ "value": {
915
+ "kind": "expression"
916
+ }
917
+ },
918
+ {
919
+ "name": "@grid-dragstart",
920
+ "description": "Fired when starting to drag grid rows.",
921
+ "value": {
922
+ "kind": "expression"
923
+ }
924
+ },
925
+ {
926
+ "name": "@grid-drop",
927
+ "description": "Fired when a drop occurs on top of the grid.",
928
+ "value": {
929
+ "kind": "expression"
930
+ }
931
+ },
932
+ {
933
+ "name": "@activeItem-changed",
934
+ "description": "Fired when the `activeItem` property changes.",
935
+ "value": {
936
+ "kind": "expression"
937
+ }
938
+ },
939
+ {
940
+ "name": "@size-changed",
941
+ "description": "Fired when the `size` property changes.",
942
+ "value": {
943
+ "kind": "expression"
944
+ }
945
+ },
946
+ {
947
+ "name": "@dataProvider-changed",
948
+ "description": "Fired when the `dataProvider` property changes.",
949
+ "value": {
950
+ "kind": "expression"
951
+ }
952
+ },
953
+ {
954
+ "name": "@expandedItems-changed",
955
+ "description": "Fired when the `expandedItems` property changes.",
956
+ "value": {
957
+ "kind": "expression"
958
+ }
959
+ },
960
+ {
961
+ "name": "@selectedItems-changed",
962
+ "description": "Fired when the `selectedItems` property changes.",
963
+ "value": {
964
+ "kind": "expression"
965
+ }
966
+ }
967
+ ]
968
+ }
969
+ ]
970
+ }
971
+ }
972
+ }