@universal-material/data-grid 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +172 -2
- package/custom-elements.json +4652 -0
- package/dist/attribute-converters.d.ts +53 -0
- package/dist/attribute-converters.js +98 -0
- package/dist/attribute-converters.js.map +1 -0
- package/dist/change-source.d.ts +3 -0
- package/dist/change-source.js +2 -0
- package/dist/change-source.js.map +1 -0
- package/dist/data/data-source.d.ts +164 -0
- package/dist/data/data-source.js +75 -0
- package/dist/data/data-source.js.map +1 -0
- package/dist/data/local-source.d.ts +20 -0
- package/dist/data/local-source.js +94 -0
- package/dist/data/local-source.js.map +1 -0
- package/dist/data/remote-loader.d.ts +190 -0
- package/dist/data/remote-loader.js +608 -0
- package/dist/data/remote-loader.js.map +1 -0
- package/dist/export/csv.d.ts +28 -0
- package/dist/export/csv.js +61 -0
- package/dist/export/csv.js.map +1 -0
- package/dist/export/download.d.ts +7 -0
- package/dist/export/download.js +17 -0
- package/dist/export/download.js.map +1 -0
- package/dist/export/rows.d.ts +75 -0
- package/dist/export/rows.js +134 -0
- package/dist/export/rows.js.map +1 -0
- package/dist/export/slice.d.ts +15 -0
- package/dist/export/slice.js +35 -0
- package/dist/export/slice.js.map +1 -0
- package/dist/export/types.d.ts +155 -0
- package/dist/export/types.js +2 -0
- package/dist/export/types.js.map +1 -0
- package/dist/export/write.d.ts +38 -0
- package/dist/export/write.js +178 -0
- package/dist/export/write.js.map +1 -0
- package/dist/export-pdf/client.d.ts +75 -0
- package/dist/export-pdf/client.js +155 -0
- package/dist/export-pdf/client.js.map +1 -0
- package/dist/export-pdf/engine.d.ts +73 -0
- package/dist/export-pdf/engine.js +131 -0
- package/dist/export-pdf/engine.js.map +1 -0
- package/dist/export-pdf/grid-pdf.wasm +0 -0
- package/dist/export-pdf/index.d.ts +27 -0
- package/dist/export-pdf/index.js +566 -0
- package/dist/export-pdf/index.js.map +1 -0
- package/dist/export-pdf/serialize.d.ts +23 -0
- package/dist/export-pdf/serialize.js +127 -0
- package/dist/export-pdf/serialize.js.map +1 -0
- package/dist/export-pdf/types.d.ts +150 -0
- package/dist/export-pdf/types.js +2 -0
- package/dist/export-pdf/types.js.map +1 -0
- package/dist/export-pdf/worker.d.ts +2 -0
- package/dist/export-pdf/worker.js +81 -0
- package/dist/export-pdf/worker.js.map +1 -0
- package/dist/export-xlsx/formats.d.ts +14 -0
- package/dist/export-xlsx/formats.js +40 -0
- package/dist/export-xlsx/formats.js.map +1 -0
- package/dist/export-xlsx/index.d.ts +74 -0
- package/dist/export-xlsx/index.js +137 -0
- package/dist/export-xlsx/index.js.map +1 -0
- package/dist/features/adaptive.d.ts +25 -0
- package/dist/features/adaptive.js +47 -0
- package/dist/features/adaptive.js.map +1 -0
- package/dist/features/cell-content-focus.d.ts +29 -0
- package/dist/features/cell-content-focus.js +95 -0
- package/dist/features/cell-content-focus.js.map +1 -0
- package/dist/features/cell-range.d.ts +97 -0
- package/dist/features/cell-range.js +75 -0
- package/dist/features/cell-range.js.map +1 -0
- package/dist/features/clipboard.d.ts +28 -0
- package/dist/features/clipboard.js +48 -0
- package/dist/features/clipboard.js.map +1 -0
- package/dist/features/column-chooser.d.ts +91 -0
- package/dist/features/column-chooser.js +451 -0
- package/dist/features/column-chooser.js.map +1 -0
- package/dist/features/column-dnd.d.ts +10 -0
- package/dist/features/column-dnd.js +126 -0
- package/dist/features/column-dnd.js.map +1 -0
- package/dist/features/context-menu.d.ts +122 -0
- package/dist/features/context-menu.js +153 -0
- package/dist/features/context-menu.js.map +1 -0
- package/dist/features/drag-helper.d.ts +39 -0
- package/dist/features/drag-helper.js +108 -0
- package/dist/features/drag-helper.js.map +1 -0
- package/dist/features/drop-position.d.ts +15 -0
- package/dist/features/drop-position.js +24 -0
- package/dist/features/drop-position.js.map +1 -0
- package/dist/features/editing.d.ts +111 -0
- package/dist/features/editing.js +244 -0
- package/dist/features/editing.js.map +1 -0
- package/dist/features/filter-row.d.ts +80 -0
- package/dist/features/filter-row.js +538 -0
- package/dist/features/filter-row.js.map +1 -0
- package/dist/features/filtering.d.ts +55 -0
- package/dist/features/filtering.js +209 -0
- package/dist/features/filtering.js.map +1 -0
- package/dist/features/group-dnd.d.ts +11 -0
- package/dist/features/group-dnd.js +119 -0
- package/dist/features/group-dnd.js.map +1 -0
- package/dist/features/header-filter.d.ts +100 -0
- package/dist/features/header-filter.js +588 -0
- package/dist/features/header-filter.js.map +1 -0
- package/dist/features/host-label.d.ts +36 -0
- package/dist/features/host-label.js +184 -0
- package/dist/features/host-label.js.map +1 -0
- package/dist/features/keyboard.d.ts +59 -0
- package/dist/features/keyboard.js +127 -0
- package/dist/features/keyboard.js.map +1 -0
- package/dist/features/menu.d.ts +113 -0
- package/dist/features/menu.js +491 -0
- package/dist/features/menu.js.map +1 -0
- package/dist/features/resize.d.ts +82 -0
- package/dist/features/resize.js +214 -0
- package/dist/features/resize.js.map +1 -0
- package/dist/features/scroll-port.d.ts +51 -0
- package/dist/features/scroll-port.js +329 -0
- package/dist/features/scroll-port.js.map +1 -0
- package/dist/features/search.d.ts +45 -0
- package/dist/features/search.js +123 -0
- package/dist/features/search.js.map +1 -0
- package/dist/features/selection.d.ts +37 -0
- package/dist/features/selection.js +103 -0
- package/dist/features/selection.js.map +1 -0
- package/dist/features/sorting.d.ts +39 -0
- package/dist/features/sorting.js +53 -0
- package/dist/features/sorting.js.map +1 -0
- package/dist/features/toolbar.d.ts +125 -0
- package/dist/features/toolbar.js +135 -0
- package/dist/features/toolbar.js.map +1 -0
- package/dist/features/tree.d.ts +53 -0
- package/dist/features/tree.js +94 -0
- package/dist/features/tree.js.map +1 -0
- package/dist/features/validation.d.ts +48 -0
- package/dist/features/validation.js +172 -0
- package/dist/features/validation.js.map +1 -0
- package/dist/grid-column-def.d.ts +521 -0
- package/dist/grid-column-def.js +32 -0
- package/dist/grid-column-def.js.map +1 -0
- package/dist/grid-column.d.ts +173 -0
- package/dist/grid-column.js +382 -0
- package/dist/grid-column.js.map +1 -0
- package/dist/grid-i18n.d.ts +469 -0
- package/dist/grid-i18n.js +3222 -0
- package/dist/grid-i18n.js.map +1 -0
- package/dist/grid.d.ts +1510 -0
- package/dist/grid.js +15972 -0
- package/dist/grid.js.map +1 -0
- package/dist/grid.min.js +3966 -0
- package/dist/grid.styles.d.ts +2 -0
- package/dist/grid.styles.js +2849 -0
- package/dist/grid.styles.js.map +1 -0
- package/dist/render/cell.d.ts +16 -0
- package/dist/render/cell.js +78 -0
- package/dist/render/cell.js.map +1 -0
- package/dist/render/column-window.d.ts +18 -0
- package/dist/render/column-window.js +50 -0
- package/dist/render/column-window.js.map +1 -0
- package/dist/render/content.d.ts +45 -0
- package/dist/render/content.js +140 -0
- package/dist/render/content.js.map +1 -0
- package/dist/render/editors.d.ts +28 -0
- package/dist/render/editors.js +41 -0
- package/dist/render/editors.js.map +1 -0
- package/dist/render/footer.d.ts +61 -0
- package/dist/render/footer.js +61 -0
- package/dist/render/footer.js.map +1 -0
- package/dist/render/group-row.d.ts +35 -0
- package/dist/render/group-row.js +60 -0
- package/dist/render/group-row.js.map +1 -0
- package/dist/render/header.d.ts +108 -0
- package/dist/render/header.js +124 -0
- package/dist/render/header.js.map +1 -0
- package/dist/render/keyed-rows.d.ts +25 -0
- package/dist/render/keyed-rows.js +98 -0
- package/dist/render/keyed-rows.js.map +1 -0
- package/dist/render/virtualizer.d.ts +158 -0
- package/dist/render/virtualizer.js +721 -0
- package/dist/render/virtualizer.js.map +1 -0
- package/dist/row-model/added-rows.d.ts +32 -0
- package/dist/row-model/added-rows.js +95 -0
- package/dist/row-model/added-rows.js.map +1 -0
- package/dist/row-model/cell-range.d.ts +71 -0
- package/dist/row-model/cell-range.js +187 -0
- package/dist/row-model/cell-range.js.map +1 -0
- package/dist/row-model/columns.d.ts +102 -0
- package/dist/row-model/columns.js +222 -0
- package/dist/row-model/columns.js.map +1 -0
- package/dist/row-model/compare.d.ts +40 -0
- package/dist/row-model/compare.js +590 -0
- package/dist/row-model/compare.js.map +1 -0
- package/dist/row-model/distinct.d.ts +39 -0
- package/dist/row-model/distinct.js +105 -0
- package/dist/row-model/distinct.js.map +1 -0
- package/dist/row-model/filter.d.ts +80 -0
- package/dist/row-model/filter.js +582 -0
- package/dist/row-model/filter.js.map +1 -0
- package/dist/row-model/flatten.d.ts +129 -0
- package/dist/row-model/flatten.js +511 -0
- package/dist/row-model/flatten.js.map +1 -0
- package/dist/row-model/fold.d.ts +25 -0
- package/dist/row-model/fold.js +104 -0
- package/dist/row-model/fold.js.map +1 -0
- package/dist/row-model/format.d.ts +58 -0
- package/dist/row-model/format.js +239 -0
- package/dist/row-model/format.js.map +1 -0
- package/dist/row-model/group.d.ts +30 -0
- package/dist/row-model/group.js +173 -0
- package/dist/row-model/group.js.map +1 -0
- package/dist/row-model/lru.d.ts +19 -0
- package/dist/row-model/lru.js +48 -0
- package/dist/row-model/lru.js.map +1 -0
- package/dist/row-model/sort.d.ts +30 -0
- package/dist/row-model/sort.js +107 -0
- package/dist/row-model/sort.js.map +1 -0
- package/dist/row-model/summary.d.ts +64 -0
- package/dist/row-model/summary.js +213 -0
- package/dist/row-model/summary.js.map +1 -0
- package/dist/row-model/tree.d.ts +116 -0
- package/dist/row-model/tree.js +478 -0
- package/dist/row-model/tree.js.map +1 -0
- package/dist/row-model/types.d.ts +109 -0
- package/dist/row-model/types.js +5 -0
- package/dist/row-model/types.js.map +1 -0
- package/dist/row-model/value.d.ts +20 -0
- package/dist/row-model/value.js +57 -0
- package/dist/row-model/value.js.map +1 -0
- package/dist/state/grid-state.d.ts +147 -0
- package/dist/state/grid-state.js +295 -0
- package/dist/state/grid-state.js.map +1 -0
- package/dist/state/storage.d.ts +33 -0
- package/dist/state/storage.js +62 -0
- package/dist/state/storage.js.map +1 -0
- package/dist/state/versioned.d.ts +18 -0
- package/dist/state/versioned.js +56 -0
- package/dist/state/versioned.js.map +1 -0
- package/package.json +145 -6
|
@@ -0,0 +1,4652 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "1.0.0",
|
|
3
|
+
"readme": "",
|
|
4
|
+
"modules": [
|
|
5
|
+
{
|
|
6
|
+
"kind": "javascript-module",
|
|
7
|
+
"path": "dist/grid.js",
|
|
8
|
+
"declarations": [
|
|
9
|
+
{
|
|
10
|
+
"kind": "variable",
|
|
11
|
+
"name": "GRID_DEFAULT_TOOLBAR_ITEMS",
|
|
12
|
+
"type": {
|
|
13
|
+
"text": "readonly GridToolbarItemName[]"
|
|
14
|
+
},
|
|
15
|
+
"default": "DEFAULT_TOOLBAR_ITEMS",
|
|
16
|
+
"description": "The automatic toolbar (`toolbarItems = null`), in order. Spread it to add your own items without losing future built-ins."
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"kind": "variable",
|
|
20
|
+
"name": "value"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"kind": "class",
|
|
24
|
+
"description": "Data grid with row virtualization, grouping, sorting, filtering (filter\nrow, header filter, search panel), column resizing, fixing, hiding and\nreordering, i18n and SSR.\n\nName the grid with `aria-label` or `aria-labelledby` on `<u-grid>`: they\nname the inner `role=\"grid\"`/`\"treegrid\"` table. `aria-labelledby` ids are\nresolved in the grid's root (document or enclosing shadow root); their\ntext is copied and kept in sync.",
|
|
25
|
+
"name": "DataGrid",
|
|
26
|
+
"cssProperties": [
|
|
27
|
+
{
|
|
28
|
+
"description": "Grid background.",
|
|
29
|
+
"name": "--u-grid-background-color"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"description": "Text color of the grid. Default: on-surface token (`rgb(29, 27, 32)`).",
|
|
33
|
+
"name": "--u-grid-color"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"description": "Background of even rows when `striped`.",
|
|
37
|
+
"name": "--u-grid-striped-background-color"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"description": "Header and sticky cells background.",
|
|
41
|
+
"name": "--u-grid-header-background-color"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"description": "Minimum height of the bar above the table (group panel, search, chooser button); it grows when its content wraps. Default `56px`.",
|
|
45
|
+
"name": "--u-grid-toolbar-height"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"description": "Padding of the bar. Default `8px 16px`.",
|
|
49
|
+
"name": "--u-grid-toolbar-padding"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"description": "Block padding of the bar. Default `8px`.",
|
|
53
|
+
"name": "--u-grid-toolbar-block-padding"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"description": "Inline padding of the bar. Default: the cell inline padding.",
|
|
57
|
+
"name": "--u-grid-toolbar-inline-padding"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"description": "Height of the column header cells. Default `46px`.",
|
|
61
|
+
"name": "--u-grid-header-cell-height"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"description": "Header cell padding.",
|
|
65
|
+
"name": "--u-grid-header-cell-padding"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"description": "Header cell font size. Default `0.8125rem`.",
|
|
69
|
+
"name": "--u-grid-header-cell-font-size"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"description": "Header cell font weight.",
|
|
73
|
+
"name": "--u-grid-header-cell-font-weight"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"description": "Data cell padding (shorthand; wins over the longhands). Default `13px 16px`.",
|
|
77
|
+
"name": "--u-grid-cell-padding"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"description": "Block padding of data and header cells; wins over the old `--u-table-cell-padding` and `--u-grid-data-cell-padding`. Default `13px`.",
|
|
81
|
+
"name": "--u-grid-cell-block-padding"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"description": "Inline padding of data and header cells; wins over the old `--u-table-cell-padding` and `--u-grid-data-cell-padding`. Default `16px`.",
|
|
85
|
+
"name": "--u-grid-cell-inline-padding"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"description": "Data cell font size. Default `0.875rem`.",
|
|
89
|
+
"name": "--u-grid-cell-font-size"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"description": "Data cell font weight.",
|
|
93
|
+
"name": "--u-grid-cell-font-weight"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"description": "Intensity of the row and header hover tint (`0%` disables it). Default: state-layer hover token or `8%`.",
|
|
97
|
+
"name": "--u-grid-row-hover-opacity"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"description": "Opacity of the row/column lines (derived from the text color). Default `20%`.",
|
|
101
|
+
"name": "--u-grid-line-opacity"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"description": "Base line thickness. Default `1px`.",
|
|
105
|
+
"name": "--u-grid-line-width"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"description": "Row separator thickness.",
|
|
109
|
+
"name": "--u-grid-row-line-width"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"description": "Column separator thickness.",
|
|
113
|
+
"name": "--u-grid-column-line-width"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"description": "Group expand/collapse chevron (and chooser button) color.",
|
|
117
|
+
"name": "--u-grid-group-toggle-color"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"description": "Corner radius of the chevron button. Default `50%`.",
|
|
121
|
+
"name": "--u-grid-group-toggle-shape"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"description": "Emphasis of the group row text. Default `80%`.",
|
|
125
|
+
"name": "--u-grid-group-row-emphasis"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"description": "Group chip height. Default `32px`.",
|
|
129
|
+
"name": "--u-grid-group-chip-height"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"description": "Group chip inline padding. Default `16px`.",
|
|
133
|
+
"name": "--u-grid-group-chip-padding"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"description": "Group chip corner radius. Default `8px`.",
|
|
137
|
+
"name": "--u-grid-group-chip-shape"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"description": "Group chip border color.",
|
|
141
|
+
"name": "--u-grid-group-chip-outline-color"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"description": "Group chip border width. Default `1px`.",
|
|
145
|
+
"name": "--u-grid-group-chip-outline-width"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"description": "Group chip font size.",
|
|
149
|
+
"name": "--u-grid-group-chip-font-size"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"description": "Group chip font weight.",
|
|
153
|
+
"name": "--u-grid-group-chip-font-weight"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"description": "Group chip line height.",
|
|
157
|
+
"name": "--u-grid-group-chip-line-height"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"description": "Group chip letter spacing.",
|
|
161
|
+
"name": "--u-grid-group-chip-letter-spacing"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"description": "Keyboard focus ring color.",
|
|
165
|
+
"name": "--u-grid-focus-ring-color"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"description": "Keyboard focus ring width. Default `2px`.",
|
|
169
|
+
"name": "--u-grid-focus-ring-width"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"description": "Background of selected rows. Default: primary color at 12%.",
|
|
173
|
+
"name": "--u-grid-selected-row-background-color"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"description": "Bar at the start of selected rows (selection is not shown by color alone). Default: primary color.",
|
|
177
|
+
"name": "--u-grid-selected-row-indicator-color"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"description": "Thickness of that bar; `0` hides it. Default `3px`.",
|
|
181
|
+
"name": "--u-grid-selected-row-indicator-width"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"description": "Text color of sorted column headers.",
|
|
185
|
+
"name": "--u-grid-sorted-header-color"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"description": "Size of the sort arrow. Default `1.125em`.",
|
|
189
|
+
"name": "--u-grid-sort-indicator-size"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"description": "Drag-and-drop drop indicator color.",
|
|
193
|
+
"name": "--u-grid-drop-indicator-color"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"description": "Drop indicator thickness. Default `3px`.",
|
|
197
|
+
"name": "--u-grid-drop-indicator-width"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"description": "Invisible resize hit area at the end of each header cell (over the end padding, capped to it; the cursor changes on hover). Default `8px`.",
|
|
201
|
+
"name": "--u-grid-resize-handle-width"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"description": "Size of the \"⋮\" column header menu button and of the header filter button. Default `24px` (WCAG 2.5.8).",
|
|
205
|
+
"name": "--u-grid-column-header-menu-button-size"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"description": "Color of the separator shown at the column edge while dragging to resize. Default: `--u-grid-drop-indicator-color`.",
|
|
209
|
+
"name": "--u-grid-resize-handle-color"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"description": "Shadow at the edge of fixed columns while scrolling.",
|
|
213
|
+
"name": "--u-grid-fixed-shadow-color"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"description": "Column chooser background.",
|
|
217
|
+
"name": "--u-grid-column-chooser-background-color"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"description": "Column chooser corner radius. Default `12px`.",
|
|
221
|
+
"name": "--u-grid-column-chooser-shape"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"description": "Background of the totals footer and group footers. Default: the header background.",
|
|
225
|
+
"name": "--u-grid-summary-background-color"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"description": "Background of the fixed rows (opaque). Default: the header background.",
|
|
229
|
+
"name": "--u-grid-fixed-row-background-color"
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"description": "Line between the fixed rows and the body. Default: the line color.",
|
|
233
|
+
"name": "--u-grid-fixed-row-shadow-color"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"description": "Font weight of summary cells. Default `500`.",
|
|
237
|
+
"name": "--u-grid-summary-cell-font-weight"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"description": "Height of the filter row. Default: `--u-grid-header-cell-height` (`46px`).",
|
|
241
|
+
"name": "--u-grid-filter-row-height"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"description": "Background of the search matches in cells.",
|
|
245
|
+
"name": "--u-grid-search-highlight-background-color"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"description": "Text color of the search matches in cells.",
|
|
249
|
+
"name": "--u-grid-search-highlight-color"
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"description": "Color of the header filter button of a filtered column.",
|
|
253
|
+
"name": "--u-grid-header-filter-button-active-color"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"description": "Header filter popover background.",
|
|
257
|
+
"name": "--u-grid-header-filter-background-color"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"description": "Header filter popover corner radius. Default `12px`.",
|
|
261
|
+
"name": "--u-grid-header-filter-shape"
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"description": "Background of the load panel.",
|
|
265
|
+
"name": "--u-grid-load-panel-background-color"
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"description": "Color of the placeholders in rows still loading.",
|
|
269
|
+
"name": "--u-grid-skeleton-row-color"
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"description": "Minimum height of the pager. Default `56px`.",
|
|
273
|
+
"name": "--u-grid-pager-height"
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"description": "Background of edited, unsaved cells (`editMode=\"batch\"`). Default: primary color at 10%.",
|
|
277
|
+
"name": "--u-grid-modified-cell-background-color"
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"description": "Corner mark of edited, unsaved cells (not shown by color alone). Default: primary color.",
|
|
281
|
+
"name": "--u-grid-modified-cell-indicator-color"
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"description": "Border and message accent of cells with a validation error. Default: error token (`rgb(179, 38, 30)`).",
|
|
285
|
+
"name": "--u-grid-invalid-cell-color"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"description": "Background of new, unsaved rows. Default: primary color at 6%.",
|
|
289
|
+
"name": "--u-grid-added-row-background-color"
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"description": "Background of the menus (context menus, \"More actions\", export). Default: surface-container token.",
|
|
293
|
+
"name": "--u-grid-menu-background-color"
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"description": "Corner radius of the menus. Default `4px`.",
|
|
297
|
+
"name": "--u-grid-menu-shape"
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"description": "Opacity of rows marked for removal (their text is also struck through). Default `0.7`.",
|
|
301
|
+
"name": "--u-grid-removed-row-opacity"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"description": "Background of cells in a cell range. Default: primary color at 14%.",
|
|
305
|
+
"name": "--u-grid-selected-cell-background-color"
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"description": "Outline around each cell range (not shown by color alone). Default: primary color (`Highlight` in forced colors).",
|
|
309
|
+
"name": "--u-grid-cell-range-border-color"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"description": "Thickness of that outline. Default `2px`.",
|
|
313
|
+
"name": "--u-grid-cell-range-border-width"
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"description": "Indent of each tree level (`treeMode`). Default `24px`.",
|
|
317
|
+
"name": "--u-grid-tree-indent"
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"description": "Color of the tree expand button. Default: `--u-grid-group-toggle-color`.",
|
|
321
|
+
"name": "--u-grid-tree-toggle-color"
|
|
322
|
+
}
|
|
323
|
+
],
|
|
324
|
+
"cssParts": [
|
|
325
|
+
{
|
|
326
|
+
"description": "Every body row (`<tr>`; not the header nor the totals footer), fixed rows included.",
|
|
327
|
+
"name": "row"
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
"description": "Group header rows.",
|
|
331
|
+
"name": "group-row"
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
"description": "Data rows in odd positions (the first data row is `odd`).",
|
|
335
|
+
"name": "odd"
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"description": "Data rows in even positions.",
|
|
339
|
+
"name": "even"
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"description": "Selected data rows (with `row`) and data cells in a cell range (with `cell`): use `row selected` or `cell selected`.",
|
|
343
|
+
"name": "selected"
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
"description": "Data cells (`<td>`).",
|
|
347
|
+
"name": "cell"
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
"description": "Cells and header of the selection checkbox column.",
|
|
351
|
+
"name": "selection-cell"
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"description": "The selection checkboxes (rows and \"select all\").",
|
|
355
|
+
"name": "selection-checkbox"
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
"description": "The cell rendered in the empty state.",
|
|
359
|
+
"name": "no-data"
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
"description": "Column header cells (`<th>`), bands included.",
|
|
363
|
+
"name": "header-cell"
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
"description": "Band header cells (multi-level headers); they also match `header-cell`.",
|
|
367
|
+
"name": "band-header-cell"
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
"description": "The sort arrow (and priority number) in headers and group chips.",
|
|
371
|
+
"name": "sort-indicator"
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"description": "Group chips in the group panel.",
|
|
375
|
+
"name": "group-chip"
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
"description": "The column chooser popover.",
|
|
379
|
+
"name": "column-chooser"
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
"description": "Rows with summaries: the totals footer and group footers.",
|
|
383
|
+
"name": "summary-row"
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
"description": "The totals footer row.",
|
|
387
|
+
"name": "total-row"
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"description": "Group footer rows (summaries with `display: 'footer'`; with `row`, `summary-row` and `footer-row`).",
|
|
391
|
+
"name": "group-footer-row"
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
"description": "Cells with summaries (footers and `display: 'column'` in group rows).",
|
|
395
|
+
"name": "summary-cell"
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
"description": "Count and inline summaries in a group row (`\"(3, Sum of Population: 1,234)\"`).",
|
|
399
|
+
"name": "group-count"
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
"description": "The bar above the table (group panel, buttons, search).",
|
|
403
|
+
"name": "toolbar"
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
"description": "Toolbar buttons (built-in and host), with `add-row-button`, `save-button`, `discard-button`, `export-button` or `column-chooser-button`.",
|
|
407
|
+
"name": "toolbar-button"
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"description": "The \"More actions\" button that lists the toolbar items that do not fit.",
|
|
411
|
+
"name": "toolbar-more-button"
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
"description": "The toolbar export button (`exportFormats`).",
|
|
415
|
+
"name": "export-button"
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
"description": "The toolbar column chooser button.",
|
|
419
|
+
"name": "column-chooser-button"
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
"description": "Every menu of the grid (with `column-header-menu`, `group-panel-menu`, `row-menu` or `toolbar-menu`).",
|
|
423
|
+
"name": "menu"
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
"description": "Menu items.",
|
|
427
|
+
"name": "menu-item"
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
"description": "Menu separators.",
|
|
431
|
+
"name": "menu-separator"
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
"description": "The context menu of data and group rows.",
|
|
435
|
+
"name": "row-menu"
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
"description": "The \"More actions\" and export menus.",
|
|
439
|
+
"name": "toolbar-menu"
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
"description": "The group panel context menu.",
|
|
443
|
+
"name": "group-panel-menu"
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
"description": "The column header context menu (and its \"Pin column\" submenu).",
|
|
447
|
+
"name": "column-header-menu"
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
"description": "The \"⋮\" button that opens the column header menu in leaf headers (`show-column-header-menu-button`).",
|
|
451
|
+
"name": "column-header-menu-button"
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
"description": "The filter row (`<tr>`) below the column headers.",
|
|
455
|
+
"name": "filter-row"
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
"description": "Cells of the filter row.",
|
|
459
|
+
"name": "filter-cell"
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
"description": "Editors of the filter row (inputs, and the value menu button of boolean columns).",
|
|
463
|
+
"name": "filter-editor"
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
"description": "The operation button of a filter row cell.",
|
|
467
|
+
"name": "filter-operation-button"
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
"description": "The search panel input.",
|
|
471
|
+
"name": "search-input"
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
"description": "The funnel button in a column header (`header-filter`).",
|
|
475
|
+
"name": "header-filter-button"
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
"description": "The header filter popover.",
|
|
479
|
+
"name": "header-filter"
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
"description": "Cells and header of the row details toggle column (master-detail and `autoHideColumns`).",
|
|
483
|
+
"name": "detail-toggle-cell"
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
"description": "The expand/collapse button of a master row.",
|
|
487
|
+
"name": "detail-toggle-button"
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
"description": "Detail rows (with `row`).",
|
|
491
|
+
"name": "detail-row"
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
"description": "The full-width cell of a detail row.",
|
|
495
|
+
"name": "detail-cell"
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
"description": "The list (`<dl>`) of the values of the columns hidden by `autoHideColumns`, in the detail cell.",
|
|
499
|
+
"name": "adaptive-fields"
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
"description": "A label + value pair of `adaptive-fields`.",
|
|
503
|
+
"name": "adaptive-field"
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
"description": "The label (`<dt>`) of a hidden column: band path, column label, sort and filter marks.",
|
|
507
|
+
"name": "adaptive-label"
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
"description": "The value (`<dd>`) of a hidden column (with `modified`/`invalid` like the cell).",
|
|
511
|
+
"name": "adaptive-value"
|
|
512
|
+
},
|
|
513
|
+
{
|
|
514
|
+
"description": "Fixed rows (`fixedTopItems`/`fixedBottomItems`; with `row`, `odd`/`even`, never `selected`).",
|
|
515
|
+
"name": "fixed-row"
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
"description": "Rows fixed at the top (with `fixed-row`).",
|
|
519
|
+
"name": "fixed-top-row"
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
"description": "Rows fixed at the bottom (with `fixed-row`).",
|
|
523
|
+
"name": "fixed-bottom-row"
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
"description": "The row group (`<tbody>`) of the rows fixed at the top.",
|
|
527
|
+
"name": "fixed-top-row-group"
|
|
528
|
+
},
|
|
529
|
+
{
|
|
530
|
+
"description": "The row group (`<tbody>`) of the rows fixed at the bottom.",
|
|
531
|
+
"name": "fixed-bottom-row-group"
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
"description": "Rows rendered by `rowRenderer` (with `row`, `odd`/`even`, `selected`, `expanded`).",
|
|
535
|
+
"name": "full-width-row"
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
"description": "The cell that holds the `rowRenderer` content.",
|
|
539
|
+
"name": "full-width-cell"
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
"description": "Master rows whose detail is expanded, and expanded tree nodes (with `row`).",
|
|
543
|
+
"name": "expanded"
|
|
544
|
+
},
|
|
545
|
+
{
|
|
546
|
+
"description": "The cell of the tree column (with `cell`): indent, expand button and content.",
|
|
547
|
+
"name": "tree-cell"
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
"description": "The expand/collapse button of a tree node.",
|
|
551
|
+
"name": "tree-toggle-button"
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
"description": "Footer rows of `summary.node` items with `display: 'footer'` (with `row`, `summary-row` and `footer-row`).",
|
|
555
|
+
"name": "node-footer-row"
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
"description": "Group and tree node footer rows (with `group-footer-row` / `node-footer-row`; the totals footer is `total-row`).",
|
|
559
|
+
"name": "footer-row"
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
"description": "`summary.node` values with `display: 'inline'`, after the tree cell text (a `column` value makes its cell a `summary-cell`).",
|
|
563
|
+
"name": "node-summary"
|
|
564
|
+
},
|
|
565
|
+
{
|
|
566
|
+
"description": "The pager (`<nav>`) below the table (`paging`).",
|
|
567
|
+
"name": "pager"
|
|
568
|
+
},
|
|
569
|
+
{
|
|
570
|
+
"description": "Pager buttons (first, previous, page numbers, next, last).",
|
|
571
|
+
"name": "pager-button"
|
|
572
|
+
},
|
|
573
|
+
{
|
|
574
|
+
"description": "The page size `<select>` of the pager.",
|
|
575
|
+
"name": "page-size-select"
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
"description": "The \"Page x of y (n items)\" text of the pager.",
|
|
579
|
+
"name": "page-info"
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
"description": "The load panel shown while a data source loads.",
|
|
583
|
+
"name": "load-panel"
|
|
584
|
+
},
|
|
585
|
+
{
|
|
586
|
+
"description": "Rows of a remote source not loaded yet (with `row`).",
|
|
587
|
+
"name": "skeleton-row"
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
"description": "The bar shown when the data source failed.",
|
|
591
|
+
"name": "error-row"
|
|
592
|
+
},
|
|
593
|
+
{
|
|
594
|
+
"description": "The \"Retry\" button of the error bar.",
|
|
595
|
+
"name": "retry-button"
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
"description": "Search matches (`<mark>`) in native cells (not in `renderer` cells).",
|
|
599
|
+
"name": "search-highlight"
|
|
600
|
+
},
|
|
601
|
+
{
|
|
602
|
+
"description": "Edited, unsaved data cells (with `cell` or `adaptive-value`).",
|
|
603
|
+
"name": "modified"
|
|
604
|
+
},
|
|
605
|
+
{
|
|
606
|
+
"description": "Data cells with a validation error (with `cell` or `adaptive-value`).",
|
|
607
|
+
"name": "invalid"
|
|
608
|
+
},
|
|
609
|
+
{
|
|
610
|
+
"description": "New, unsaved rows (with `row`).",
|
|
611
|
+
"name": "added"
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
"description": "Rows marked for removal (with `row`, `editMode=\"batch\"`).",
|
|
615
|
+
"name": "removed"
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
"description": "The built-in cell editors (`<input>`).",
|
|
619
|
+
"name": "cell-editor"
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
"description": "The validation error shown below an invalid cell or row details value.",
|
|
623
|
+
"name": "validation-message"
|
|
624
|
+
},
|
|
625
|
+
{
|
|
626
|
+
"description": "The bar below the grid with the count, sum and average of the selected cells (`show-cell-range-summary`) and the \"Adding to selection\" text (Shift+F8).",
|
|
627
|
+
"name": "cell-range-summary"
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
"description": "Cells and header of the row buttons column (edit, delete).",
|
|
631
|
+
"name": "command-cell"
|
|
632
|
+
},
|
|
633
|
+
{
|
|
634
|
+
"description": "The row buttons (edit, save, cancel, delete, restore).",
|
|
635
|
+
"name": "command-button"
|
|
636
|
+
},
|
|
637
|
+
{
|
|
638
|
+
"description": "The toolbar \"Add row\" button.",
|
|
639
|
+
"name": "add-row-button"
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
"description": "The toolbar \"Save changes\" button (`editMode=\"batch\"`).",
|
|
643
|
+
"name": "save-button"
|
|
644
|
+
},
|
|
645
|
+
{
|
|
646
|
+
"description": "The toolbar \"Discard changes\" button (`editMode=\"batch\"`).",
|
|
647
|
+
"name": "discard-button"
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
"description": "The delete confirmation dialog.",
|
|
651
|
+
"name": "remove-dialog"
|
|
652
|
+
}
|
|
653
|
+
],
|
|
654
|
+
"slots": [
|
|
655
|
+
{
|
|
656
|
+
"description": "`<u-grid-column>` elements (declarative columns).",
|
|
657
|
+
"name": ""
|
|
658
|
+
}
|
|
659
|
+
],
|
|
660
|
+
"members": [
|
|
661
|
+
{
|
|
662
|
+
"kind": "field",
|
|
663
|
+
"name": "autoExpandGroups",
|
|
664
|
+
"type": {
|
|
665
|
+
"text": "boolean"
|
|
666
|
+
},
|
|
667
|
+
"default": "false",
|
|
668
|
+
"description": "Groups start expanded. INITIAL default: afterwards expansion is grid\nstate (`expandGroup`, `expandAllGroups`…); changing it resets that state.",
|
|
669
|
+
"attribute": "auto-expand-groups"
|
|
670
|
+
},
|
|
671
|
+
{
|
|
672
|
+
"kind": "field",
|
|
673
|
+
"name": "summary",
|
|
674
|
+
"type": {
|
|
675
|
+
"text": "GridSummary | null"
|
|
676
|
+
},
|
|
677
|
+
"description": "Totals (footer fixed at the bottom) and group summaries (property only).\nRecomputed when the data, the grouping or the summary changes."
|
|
678
|
+
},
|
|
679
|
+
{
|
|
680
|
+
"kind": "field",
|
|
681
|
+
"name": "noDataRenderer",
|
|
682
|
+
"type": {
|
|
683
|
+
"text": "GridNoDataRenderer | null"
|
|
684
|
+
},
|
|
685
|
+
"default": "null",
|
|
686
|
+
"description": "Builds the empty state (property only) shown when there are no rows to\nshow; `ctx.filtered` tells a filter/search hid every item. Without it,\nthe translated \"No data\" text."
|
|
687
|
+
},
|
|
688
|
+
{
|
|
689
|
+
"kind": "field",
|
|
690
|
+
"name": "detailRenderer",
|
|
691
|
+
"type": {
|
|
692
|
+
"text": "GridDetailRenderer | null"
|
|
693
|
+
},
|
|
694
|
+
"default": "null",
|
|
695
|
+
"description": "Builds the detail of a row (master-detail; property only). With it, a\ntoggle column appears at the start and each expanded row is followed by\na full-width detail row (variable height). Returning `null` renders an\nempty detail row. With `autoHideColumns`, the values of the hidden\ncolumns come first in the detail row."
|
|
696
|
+
},
|
|
697
|
+
{
|
|
698
|
+
"kind": "field",
|
|
699
|
+
"name": "autoExpandRows",
|
|
700
|
+
"type": {
|
|
701
|
+
"text": "boolean"
|
|
702
|
+
},
|
|
703
|
+
"default": "false",
|
|
704
|
+
"description": "Detail rows start expanded (also the row details of `autoHideColumns`).\nINITIAL default: afterwards expansion is grid state (`expandRow`,\n`collapseRow`); changing it resets that state (no event).",
|
|
705
|
+
"attribute": "auto-expand-rows"
|
|
706
|
+
},
|
|
707
|
+
{
|
|
708
|
+
"kind": "field",
|
|
709
|
+
"name": "autoHideColumns",
|
|
710
|
+
"type": {
|
|
711
|
+
"text": "boolean"
|
|
712
|
+
},
|
|
713
|
+
"default": "false",
|
|
714
|
+
"description": "Hides columns automatically when the grid itself is too narrow for them\n(its own width, not the window's), by `hidingPriority` (or from the last\ncolumn); fixed columns never hide and at least one column stays. The\nvalues of the hidden (\"adaptive\") columns move to the row details: the\ntoggle column appears and `expandRow`/`collapseRow` work even without\n`detailRenderer`. Layout only: hidden columns stay visible in the column\nchooser, `getState()`, exports, row copies, the search and the filters.\nSee `getAdaptiveColumns()` and `u-grid-adaptive-columns-change`.",
|
|
715
|
+
"attribute": "auto-hide-columns"
|
|
716
|
+
},
|
|
717
|
+
{
|
|
718
|
+
"kind": "field",
|
|
719
|
+
"name": "fixedTopItems",
|
|
720
|
+
"type": {
|
|
721
|
+
"text": "readonly any[]"
|
|
722
|
+
},
|
|
723
|
+
"description": "Rows fixed (\"pinned\") right below the column headers (property only):\nthe host's own items, rendered with the grid columns (formatting, cell\n`renderer`, `rowRenderer`). They stay out of sorting, filtering, the\nsearch, grouping, paging (shown on every page), `getTotalCount()` and\nthe summaries; they are not selectable nor editable. They expand like\nbody rows (`detailRenderer`, columns hidden by `autoHideColumns`), by\nrow key: a key also in the body expands in both places. The\nsame object may also be in `items` (it shows in both places).",
|
|
724
|
+
"default": "[]"
|
|
725
|
+
},
|
|
726
|
+
{
|
|
727
|
+
"kind": "field",
|
|
728
|
+
"name": "fixedBottomItems",
|
|
729
|
+
"type": {
|
|
730
|
+
"text": "readonly any[]"
|
|
731
|
+
},
|
|
732
|
+
"description": "Like `fixedTopItems`, fixed right above the totals footer (property only).",
|
|
733
|
+
"default": "[]"
|
|
734
|
+
},
|
|
735
|
+
{
|
|
736
|
+
"kind": "field",
|
|
737
|
+
"name": "rowRenderer",
|
|
738
|
+
"type": {
|
|
739
|
+
"text": "GridRowRenderer | null"
|
|
740
|
+
},
|
|
741
|
+
"default": "null",
|
|
742
|
+
"description": "Full-width rows (property only): builds the content of ONE cell spanning\nthe data columns of a data or fixed row (group indents, detail toggle\nand selection checkbox stay). Return `false` to keep that row's columns\n— `null`/`nothing`/`''` give an EMPTY full-width row. See\n`GridRowRenderer` for when it runs."
|
|
743
|
+
},
|
|
744
|
+
{
|
|
745
|
+
"kind": "field",
|
|
746
|
+
"name": "keyExpr",
|
|
747
|
+
"type": {
|
|
748
|
+
"text": "GridKeyExpr | null"
|
|
749
|
+
},
|
|
750
|
+
"description": "Row key: a property `path` (dots allowed, attribute `key-expr`) or a\nfunction returning the key of an item. Selection (`selectedKeys`), focus\n(`focusedRowKey`, `focusCell`) and events use it; without it the key is\nthe item object itself. With a key, replacing `items` with new objects\nkeeps the selection, the focus and the group expansion. Changing it\nconverts the selection to the new keys (keys whose row is gone are\ndropped, firing `u-grid-selection-change` with `source: 'api'`).",
|
|
751
|
+
"default": "null",
|
|
752
|
+
"attribute": "key-expr"
|
|
753
|
+
},
|
|
754
|
+
{
|
|
755
|
+
"kind": "field",
|
|
756
|
+
"name": "dataSource",
|
|
757
|
+
"type": {
|
|
758
|
+
"text": "GridDataSource | null"
|
|
759
|
+
},
|
|
760
|
+
"description": "Data source (property only): the grid calls `load(options, signal)` and\nshows what it returns — with `remoteOperations`, the server filters,\nsorts, groups, summarizes and pages. The grid never builds URLs or\nqueries: validate the options on the server. Alternative to `items`.",
|
|
761
|
+
"default": "null"
|
|
762
|
+
},
|
|
763
|
+
{
|
|
764
|
+
"kind": "field",
|
|
765
|
+
"name": "remoteOperations",
|
|
766
|
+
"type": {
|
|
767
|
+
"text": "boolean | GridRemoteOperations"
|
|
768
|
+
},
|
|
769
|
+
"default": "false",
|
|
770
|
+
"description": "What the server does with `dataSource` (attribute `remote-operations`:\nall or nothing). `false` (default): one call loads every row and the\ngrid filters, sorts, groups, summarizes and pages. `true`: everything on\nthe server. An object picks operations; remote `paging` or `grouping`\nalso turn on remote `filtering`, `sorting` and `summary` (paging also\ngrouping), with a console warning. Remote operations use the column\n`path` (not `valueGetter`, `comparator` nor `groupValueGetter`).",
|
|
771
|
+
"attribute": "remote-operations"
|
|
772
|
+
},
|
|
773
|
+
{
|
|
774
|
+
"kind": "field",
|
|
775
|
+
"name": "reshapeOnChanges",
|
|
776
|
+
"type": {
|
|
777
|
+
"text": "boolean"
|
|
778
|
+
},
|
|
779
|
+
"default": "false",
|
|
780
|
+
"description": "Makes `applyChanges()` re-apply filtering, sorting, grouping and\nsummaries (attribute `reshape-on-changes`): updated rows move to their\nsorted place, rows that stop matching the filter leave and added rows go\nto their sorted place instead of the end. Several calls in one frame are\nreshaped once. While keyboard focus is in the grid body or an editor is\nopen, values still update in place and the rows only move after focus\nleaves the body or the edit ends. With remote paging or grouping it\nreloads the rows in view from the server (one reload at a time). Only\n`applyChanges()`: saved edits keep their position. `false` (default):\nchanges are applied in place.",
|
|
781
|
+
"attribute": "reshape-on-changes"
|
|
782
|
+
},
|
|
783
|
+
{
|
|
784
|
+
"kind": "field",
|
|
785
|
+
"name": "treeMode",
|
|
786
|
+
"type": {
|
|
787
|
+
"text": "GridTreeMode"
|
|
788
|
+
},
|
|
789
|
+
"default": "'none'",
|
|
790
|
+
"description": "Tree data: `none` (default) shows `items` as a list; `nested` reads the\nchildren of each item by `childrenExpr` (`items` are the roots); `flat`\nbuilds the tree from `keyExpr` + `parentKeyExpr` (both needed). Grouping,\nmaster-detail and `rowRenderer` are ignored in a tree (console warning).\nWith `dataSource`, only `flat` (children load on demand with\n`hasChildrenExpr`).",
|
|
791
|
+
"attribute": "tree-mode"
|
|
792
|
+
},
|
|
793
|
+
{
|
|
794
|
+
"kind": "field",
|
|
795
|
+
"name": "childrenExpr",
|
|
796
|
+
"type": {
|
|
797
|
+
"text": "GridChildrenExpr | null"
|
|
798
|
+
},
|
|
799
|
+
"default": "'children'",
|
|
800
|
+
"description": "Children of an item with `treeMode=\"nested\"`: a property `path` (attribute `children-expr`) or a function.",
|
|
801
|
+
"attribute": "children-expr"
|
|
802
|
+
},
|
|
803
|
+
{
|
|
804
|
+
"kind": "field",
|
|
805
|
+
"name": "parentKeyExpr",
|
|
806
|
+
"type": {
|
|
807
|
+
"text": "GridParentKeyExpr | null"
|
|
808
|
+
},
|
|
809
|
+
"default": "null",
|
|
810
|
+
"description": "Key of the parent of an item with `treeMode=\"flat\"`: a property `path`\n(attribute `parent-key-expr`) or a function. `rootParentKey`, `null`,\n`undefined` or a key with no item = a root node.",
|
|
811
|
+
"attribute": "parent-key-expr"
|
|
812
|
+
},
|
|
813
|
+
{
|
|
814
|
+
"kind": "field",
|
|
815
|
+
"name": "rootParentKey",
|
|
816
|
+
"type": {
|
|
817
|
+
"text": "GridRowKey | null"
|
|
818
|
+
},
|
|
819
|
+
"default": "null",
|
|
820
|
+
"description": "Parent key of the root nodes with `treeMode=\"flat\"` (also asked to a\n`dataSource` as the first `parentKeys`). Compared by its text (the\nattribute is text): `\"0\"` matches `0`.",
|
|
821
|
+
"attribute": "root-parent-key"
|
|
822
|
+
},
|
|
823
|
+
{
|
|
824
|
+
"kind": "field",
|
|
825
|
+
"name": "hasChildrenExpr",
|
|
826
|
+
"type": {
|
|
827
|
+
"text": "GridHasChildrenExpr | null"
|
|
828
|
+
},
|
|
829
|
+
"default": "null",
|
|
830
|
+
"description": "With `dataSource`: whether a node has children not loaded yet (a\nproperty `path`, attribute `has-children-expr`, or a function); its\nchildren load when it expands.",
|
|
831
|
+
"attribute": "has-children-expr"
|
|
832
|
+
},
|
|
833
|
+
{
|
|
834
|
+
"kind": "field",
|
|
835
|
+
"name": "treeColumn",
|
|
836
|
+
"type": {
|
|
837
|
+
"text": "GridColumnRef | null"
|
|
838
|
+
},
|
|
839
|
+
"default": "null",
|
|
840
|
+
"description": "Column with the indent and the expand button (`name` or `path`, or the\ncolumn object). Default: the first visible data column.",
|
|
841
|
+
"attribute": "tree-column"
|
|
842
|
+
},
|
|
843
|
+
{
|
|
844
|
+
"kind": "field",
|
|
845
|
+
"name": "treeFilterMode",
|
|
846
|
+
"type": {
|
|
847
|
+
"text": "GridTreeFilterMode"
|
|
848
|
+
},
|
|
849
|
+
"default": "'with-ancestors'",
|
|
850
|
+
"description": "What filtering and the search show in a tree: `with-ancestors` (default)\nthe matching nodes and their ancestors; `full-branch` also all their\ndescendants; `match-only` only the matching nodes (each under its\nnearest shown ancestor).",
|
|
851
|
+
"attribute": "tree-filter-mode"
|
|
852
|
+
},
|
|
853
|
+
{
|
|
854
|
+
"kind": "field",
|
|
855
|
+
"name": "autoExpandNodes",
|
|
856
|
+
"type": {
|
|
857
|
+
"text": "boolean"
|
|
858
|
+
},
|
|
859
|
+
"default": "false",
|
|
860
|
+
"description": "Tree nodes start expanded. INITIAL default: afterwards expansion is grid\nstate (`expandNode`, `expandAllNodes`…); changing it resets that state.\nWith `dataSource` it only reaches loaded nodes (no cascade of loads).",
|
|
861
|
+
"attribute": "auto-expand-nodes"
|
|
862
|
+
},
|
|
863
|
+
{
|
|
864
|
+
"kind": "field",
|
|
865
|
+
"name": "recursiveSelection",
|
|
866
|
+
"type": {
|
|
867
|
+
"text": "boolean"
|
|
868
|
+
},
|
|
869
|
+
"default": "false",
|
|
870
|
+
"description": "Checking a node checks its descendants; a parent is checked when all its\nchildren are, and mixed when some are. Needs `selectionMode=\"multiple\"`\nand `showCheckboxes` (else ignored, with a console warning). Setting\n`selectedKeys` or `setState` applies the keys as given.",
|
|
871
|
+
"attribute": "recursive-selection"
|
|
872
|
+
},
|
|
873
|
+
{
|
|
874
|
+
"kind": "field",
|
|
875
|
+
"name": "paging",
|
|
876
|
+
"type": {
|
|
877
|
+
"text": "boolean"
|
|
878
|
+
},
|
|
879
|
+
"default": "false",
|
|
880
|
+
"description": "Splits the rows into pages (group rows count) and shows the pager below the table.",
|
|
881
|
+
"attribute": "paging"
|
|
882
|
+
},
|
|
883
|
+
{
|
|
884
|
+
"kind": "field",
|
|
885
|
+
"name": "pageSize",
|
|
886
|
+
"type": {
|
|
887
|
+
"text": "number"
|
|
888
|
+
},
|
|
889
|
+
"default": "20",
|
|
890
|
+
"description": "Rows per page; also the block size asked to a remote source in virtual and infinite scrolling. Default `20`.",
|
|
891
|
+
"attribute": "page-size"
|
|
892
|
+
},
|
|
893
|
+
{
|
|
894
|
+
"kind": "field",
|
|
895
|
+
"name": "pageIndex",
|
|
896
|
+
"type": {
|
|
897
|
+
"text": "number"
|
|
898
|
+
},
|
|
899
|
+
"description": "Current page (0-based; with `paging`). The pager writes it; out-of-range\nvalues are clamped. Setting it does not fire `u-grid-page-change`.",
|
|
900
|
+
"default": "0",
|
|
901
|
+
"attribute": "page-index"
|
|
902
|
+
},
|
|
903
|
+
{
|
|
904
|
+
"kind": "field",
|
|
905
|
+
"name": "pageSizeOptions",
|
|
906
|
+
"type": {
|
|
907
|
+
"text": "readonly number[]"
|
|
908
|
+
},
|
|
909
|
+
"default": "[10, 20, 50, 100]",
|
|
910
|
+
"description": "Page sizes offered by the pager (attribute: a list, `\"10, 20, 50\"`);\nempty hides the selector. Default `[10, 20, 50, 100]`.",
|
|
911
|
+
"attribute": "page-size-options"
|
|
912
|
+
},
|
|
913
|
+
{
|
|
914
|
+
"kind": "field",
|
|
915
|
+
"name": "scrollMode",
|
|
916
|
+
"type": {
|
|
917
|
+
"text": "GridScrollMode"
|
|
918
|
+
},
|
|
919
|
+
"default": "'virtual'",
|
|
920
|
+
"description": "`virtual` (default): every row is in the scroll range and a remote\nsource loads the visible blocks. `infinite`: the next block loads when\nthe end is reached (remote paging only; with `paging` the pager wins).",
|
|
921
|
+
"attribute": "scroll-mode"
|
|
922
|
+
},
|
|
923
|
+
{
|
|
924
|
+
"kind": "field",
|
|
925
|
+
"name": "scrollContainer",
|
|
926
|
+
"type": {
|
|
927
|
+
"text": "string | null"
|
|
928
|
+
},
|
|
929
|
+
"default": "null",
|
|
930
|
+
"description": "Scrolls the grid with an outer container instead of its own scrollbar:\nthe id of an ANCESTOR of the grid (the first ancestor with this id,\ncrossing shadow boundaries, unlike IDREF attributes), or `window` for\nthe page (wins over an element with `id=\"window\"`). The grid grows to\nits content (do not give it a height), the container scrolls in both\ndirections, and rows and columns are still virtualized by the visible\npart of the container; toolbar, headers, totals, fixed rows and columns\nstick to it. The container's `scroll-padding-top`/`-bottom` offsets\nwhat the page sticks there (an app bar). `<html>` (or the\n`document.scrollingElement`) means the window; `<body>` only when it is\nthe scrolling element. Not found, not an ancestor or empty: a console\nwarning and the grid's own scrolling. An element between the grid and\nthe container that clips or scrolls (`overflow` other than\n`visible`/`clip`) also warns: sticky headers would stick to it. Resolved when\nthe grid connects and when this changes (changing the ancestor's id\nlater does not re-resolve). The attribute alone renders the outer mode\non the server.",
|
|
931
|
+
"attribute": "scroll-container"
|
|
932
|
+
},
|
|
933
|
+
{
|
|
934
|
+
"kind": "field",
|
|
935
|
+
"name": "scrollContainerElement",
|
|
936
|
+
"type": {
|
|
937
|
+
"text": "HTMLElement | Window | null"
|
|
938
|
+
},
|
|
939
|
+
"default": "null",
|
|
940
|
+
"description": "The outer scroll container by reference (wins over `scrollContainer`):\nan ancestor element, or `window`. `document.documentElement` (or the\n`document.scrollingElement`) means the window. See `scrollContainer`."
|
|
941
|
+
},
|
|
942
|
+
{
|
|
943
|
+
"kind": "field",
|
|
944
|
+
"name": "items",
|
|
945
|
+
"type": {
|
|
946
|
+
"text": "any[]"
|
|
947
|
+
},
|
|
948
|
+
"description": "Row items (property only). The grid never mutates this array or its\nitems. Use either `items` or `dataSource` (both = console error, the\ndata source wins)."
|
|
949
|
+
},
|
|
950
|
+
{
|
|
951
|
+
"kind": "field",
|
|
952
|
+
"name": "columns",
|
|
953
|
+
"type": {
|
|
954
|
+
"text": "GridColumnDef[]"
|
|
955
|
+
},
|
|
956
|
+
"description": "Column definitions (property only). When set they take precedence over\nthe `<u-grid-column>` children. The grid never mutates the array or the\nobjects."
|
|
957
|
+
},
|
|
958
|
+
{
|
|
959
|
+
"kind": "field",
|
|
960
|
+
"name": "sortMode",
|
|
961
|
+
"type": {
|
|
962
|
+
"text": "GridSortMode"
|
|
963
|
+
},
|
|
964
|
+
"default": "'single'",
|
|
965
|
+
"description": "How the user sorts by clicking the column headers: `single` (default)\nkeeps one sorted column, `multiple` adds columns with Shift+click and\n`none` disables header sorting (the API still works).",
|
|
966
|
+
"attribute": "sort-mode"
|
|
967
|
+
},
|
|
968
|
+
{
|
|
969
|
+
"kind": "field",
|
|
970
|
+
"name": "sorting",
|
|
971
|
+
"type": {
|
|
972
|
+
"text": "GridSortMode"
|
|
973
|
+
},
|
|
974
|
+
"deprecated": "Use `sortMode` (attribute `sort-mode`).",
|
|
975
|
+
"attribute": "sorting"
|
|
976
|
+
},
|
|
977
|
+
{
|
|
978
|
+
"kind": "field",
|
|
979
|
+
"name": "rowHeight",
|
|
980
|
+
"type": {
|
|
981
|
+
"text": "number"
|
|
982
|
+
},
|
|
983
|
+
"default": "48",
|
|
984
|
+
"description": "Row height in px, padding included (rows with `wrap` columns or taller content grow; the virtualizer measures them).",
|
|
985
|
+
"attribute": "row-height"
|
|
986
|
+
},
|
|
987
|
+
{
|
|
988
|
+
"kind": "field",
|
|
989
|
+
"name": "striped",
|
|
990
|
+
"type": {
|
|
991
|
+
"text": "boolean"
|
|
992
|
+
},
|
|
993
|
+
"default": "false",
|
|
994
|
+
"description": "Tints even rows.",
|
|
995
|
+
"attribute": "striped"
|
|
996
|
+
},
|
|
997
|
+
{
|
|
998
|
+
"kind": "field",
|
|
999
|
+
"name": "showGroupPanel",
|
|
1000
|
+
"type": {
|
|
1001
|
+
"text": "boolean"
|
|
1002
|
+
},
|
|
1003
|
+
"default": "true",
|
|
1004
|
+
"description": "Shows the group panel (drop a header there to group). Default `true`; `show-group-panel=\"false\"` hides it.",
|
|
1005
|
+
"attribute": "show-group-panel"
|
|
1006
|
+
},
|
|
1007
|
+
{
|
|
1008
|
+
"kind": "field",
|
|
1009
|
+
"name": "showColumnHeaders",
|
|
1010
|
+
"type": {
|
|
1011
|
+
"text": "boolean"
|
|
1012
|
+
},
|
|
1013
|
+
"default": "true",
|
|
1014
|
+
"description": "Shows the column headers. Default `true`; `show-column-headers=\"false\"` hides them.",
|
|
1015
|
+
"attribute": "show-column-headers"
|
|
1016
|
+
},
|
|
1017
|
+
{
|
|
1018
|
+
"kind": "field",
|
|
1019
|
+
"name": "showRowLines",
|
|
1020
|
+
"type": {
|
|
1021
|
+
"text": "boolean"
|
|
1022
|
+
},
|
|
1023
|
+
"default": "true",
|
|
1024
|
+
"description": "Horizontal row separators. Default `true`; `show-row-lines=\"false\"` hides them.",
|
|
1025
|
+
"attribute": "show-row-lines"
|
|
1026
|
+
},
|
|
1027
|
+
{
|
|
1028
|
+
"kind": "field",
|
|
1029
|
+
"name": "showColumnLines",
|
|
1030
|
+
"type": {
|
|
1031
|
+
"text": "boolean"
|
|
1032
|
+
},
|
|
1033
|
+
"default": "false",
|
|
1034
|
+
"description": "Vertical column separators.",
|
|
1035
|
+
"attribute": "show-column-lines"
|
|
1036
|
+
},
|
|
1037
|
+
{
|
|
1038
|
+
"kind": "field",
|
|
1039
|
+
"name": "showGroupCount",
|
|
1040
|
+
"type": {
|
|
1041
|
+
"text": "boolean"
|
|
1042
|
+
},
|
|
1043
|
+
"default": "true",
|
|
1044
|
+
"description": "Shows the number of rows in group rows (`\"Country: Brazil (3)\"`). Default `true`; `show-group-count=\"false\"` hides it.",
|
|
1045
|
+
"attribute": "show-group-count"
|
|
1046
|
+
},
|
|
1047
|
+
{
|
|
1048
|
+
"kind": "field",
|
|
1049
|
+
"name": "groupPanelMenu",
|
|
1050
|
+
"type": {
|
|
1051
|
+
"text": "boolean"
|
|
1052
|
+
},
|
|
1053
|
+
"default": "true",
|
|
1054
|
+
"description": "Built-in items of the group panel context menu (right-click, long press,\nShift+F10 or the context menu key on a group chip): ungroup, move the\nchip left/right (grouping level), ungroup all, expand/collapse all\ngroups. Default `true`; with `group-panel-menu=\"false\"` the host may\nstill add items through `u-grid-context-menu-opening`.",
|
|
1055
|
+
"attribute": "group-panel-menu"
|
|
1056
|
+
},
|
|
1057
|
+
{
|
|
1058
|
+
"kind": "field",
|
|
1059
|
+
"name": "columnHeaderMenu",
|
|
1060
|
+
"type": {
|
|
1061
|
+
"text": "boolean"
|
|
1062
|
+
},
|
|
1063
|
+
"default": "true",
|
|
1064
|
+
"description": "Built-in items of the column header menu (the \"⋮\" button, right-click,\nlong press, Shift+F10 or the context menu key on a header): sort, pin\n(a \"Pin column\" submenu), auto-size this or all columns, widen/narrow,\nmove left/right, group by the column, open the column chooser and reset\nthe columns. It is the single-pointer alternative to dragging (WCAG\n2.5.7): with `column-header-menu=\"false\"` the host must provide one\n(it may add items through `u-grid-context-menu-opening`). Only actions\nthat apply to the column are listed; without any, the browser menu is\nkept. Default `true`.",
|
|
1065
|
+
"attribute": "column-header-menu"
|
|
1066
|
+
},
|
|
1067
|
+
{
|
|
1068
|
+
"kind": "field",
|
|
1069
|
+
"name": "showColumnHeaderMenuButton",
|
|
1070
|
+
"type": {
|
|
1071
|
+
"text": "boolean"
|
|
1072
|
+
},
|
|
1073
|
+
"default": "true",
|
|
1074
|
+
"description": "Shows the \"⋮\" button that opens the column header menu in every leaf\nheader with menu items (`column-header-menu`; band menus open by\nright-click, long press, Shift+F10 or the context menu key). It is always visible and takes\nwidth in the header. Default `true`; `show-column-header-menu-button=\"false\"`\nhides it (the menu still opens by right-click, long press, Shift+F10 and\nthe context menu key).",
|
|
1075
|
+
"attribute": "show-column-header-menu-button"
|
|
1076
|
+
},
|
|
1077
|
+
{
|
|
1078
|
+
"kind": "field",
|
|
1079
|
+
"name": "columnFixing",
|
|
1080
|
+
"type": {
|
|
1081
|
+
"text": "boolean"
|
|
1082
|
+
},
|
|
1083
|
+
"default": "true",
|
|
1084
|
+
"description": "Lets the user pin columns to the start or the end (\"Pin column\" in the\ncolumn header menu). Default `true`; `column-fixing=\"false\"` removes the\npin items. Columns pinned by `fixed` stay pinned.",
|
|
1085
|
+
"attribute": "column-fixing"
|
|
1086
|
+
},
|
|
1087
|
+
{
|
|
1088
|
+
"kind": "field",
|
|
1089
|
+
"name": "rowMenu",
|
|
1090
|
+
"type": {
|
|
1091
|
+
"text": "boolean"
|
|
1092
|
+
},
|
|
1093
|
+
"default": "false",
|
|
1094
|
+
"description": "Built-in items of the row context menu (right-click, long press,\nShift+F10 or the context menu key on a cell): copy the cell or the\nselected rows, export the selected rows, edit, delete/restore, show/hide\nthe detail; on group rows, expand/collapse and ungroup. On a full-width\nrow (`rowRenderer`) Copy copies the row and there is no Edit; fixed rows\nhave no context menu (nor `u-grid-context-menu-opening`). Default `false`\n(unlike `columnHeaderMenu`/`groupPanelMenu`), so the browser menu of the\ncells stays; the host may still add items through\n`u-grid-context-menu-opening`. With `cell-selection-mode` the cell menu\nopens anyway with its cell range items (the single-pointer alternative to\ndragging); remove them in `u-grid-context-menu-opening` to keep the\nbrowser menu (empty = browser menu). The browser menu is always kept with\nselected text, on editable fields and with Ctrl+right-click.",
|
|
1095
|
+
"attribute": "row-menu"
|
|
1096
|
+
},
|
|
1097
|
+
{
|
|
1098
|
+
"kind": "field",
|
|
1099
|
+
"name": "toolbarItems",
|
|
1100
|
+
"type": {
|
|
1101
|
+
"text": "readonly (GridToolbarItemName | GridToolbarItem)[] | null"
|
|
1102
|
+
},
|
|
1103
|
+
"description": "Items of the toolbar above the table (property only), in order:\nbuilt-in names (`'searchPanel'`) or objects — `{ name, location,\nlocateInMenu, showText, disabled, text }` configures a built-in, `{ text,\nicon, action }` is a host button and `{ renderer }` host content. A\nbuilt-in shows only with its feature on (`showGroupPanel`,\n`showSearchPanel`, `columnChooser`, `exportFormats`, `allowAdding`,\n`editMode=\"batch\"`). `null` (default) = `GRID_DEFAULT_TOOLBAR_ITEMS`;\n`[]` hides the bar (the editing status text still shows). Replace the\narray instead of mutating it; the getter returns a frozen copy."
|
|
1104
|
+
},
|
|
1105
|
+
{
|
|
1106
|
+
"kind": "field",
|
|
1107
|
+
"name": "exportFormats",
|
|
1108
|
+
"type": {
|
|
1109
|
+
"text": "readonly GridExportFormat[]"
|
|
1110
|
+
},
|
|
1111
|
+
"description": "Formats of the export UI: the toolbar export button and the \"Export\nselected rows\" items of the row menu. Attribute: words separated by\nspaces or commas (`export-formats=\"csv xlsx pdf\"`). `xlsx` needs\n`xlsxExporter` and `pdf` needs `pdfExporter`. Default `[]` (no export\nUI; the export methods always work).",
|
|
1112
|
+
"attribute": "export-formats"
|
|
1113
|
+
},
|
|
1114
|
+
{
|
|
1115
|
+
"kind": "field",
|
|
1116
|
+
"name": "xlsxExporter",
|
|
1117
|
+
"type": {
|
|
1118
|
+
"text": "GridExporter | null"
|
|
1119
|
+
},
|
|
1120
|
+
"default": "null",
|
|
1121
|
+
"description": "Builds and downloads the Excel file of the export UI (property only):\n`createXlsxExporter(ExcelJS, options)` from\n`@universal-material/data-grid/export-xlsx`. Without it the `xlsx`\nentries are not shown."
|
|
1122
|
+
},
|
|
1123
|
+
{
|
|
1124
|
+
"kind": "field",
|
|
1125
|
+
"name": "pdfExporter",
|
|
1126
|
+
"type": {
|
|
1127
|
+
"text": "GridExporter | null"
|
|
1128
|
+
},
|
|
1129
|
+
"default": "null",
|
|
1130
|
+
"description": "Builds and downloads the PDF file of the export UI (property only):\n`createPdfExporter({ fonts })` from\n`@universal-material/data-grid/export-pdf`. Without it the `pdf`\nentries are not shown."
|
|
1131
|
+
},
|
|
1132
|
+
{
|
|
1133
|
+
"kind": "field",
|
|
1134
|
+
"name": "csvExportOptions",
|
|
1135
|
+
"type": {
|
|
1136
|
+
"text": "Omit<GridCsvDownloadOptions, 'selectedOnly' | 'signal'> | null"
|
|
1137
|
+
},
|
|
1138
|
+
"default": "null",
|
|
1139
|
+
"description": "Options of the CSV file of the export UI (property only): `fileName`, `separator`, `includeGroups`…"
|
|
1140
|
+
},
|
|
1141
|
+
{
|
|
1142
|
+
"kind": "field",
|
|
1143
|
+
"name": "showFilterRow",
|
|
1144
|
+
"type": {
|
|
1145
|
+
"text": "boolean"
|
|
1146
|
+
},
|
|
1147
|
+
"default": "false",
|
|
1148
|
+
"description": "Shows the filter row below the column headers (an editor and an operation menu per filterable column).",
|
|
1149
|
+
"attribute": "show-filter-row"
|
|
1150
|
+
},
|
|
1151
|
+
{
|
|
1152
|
+
"kind": "field",
|
|
1153
|
+
"name": "showSearchPanel",
|
|
1154
|
+
"type": {
|
|
1155
|
+
"text": "boolean"
|
|
1156
|
+
},
|
|
1157
|
+
"default": "false",
|
|
1158
|
+
"description": "Shows the search box in the bar above the table (searches the displayed text of the visible filterable columns).",
|
|
1159
|
+
"attribute": "show-search-panel"
|
|
1160
|
+
},
|
|
1161
|
+
{
|
|
1162
|
+
"kind": "field",
|
|
1163
|
+
"name": "headerFilter",
|
|
1164
|
+
"type": {
|
|
1165
|
+
"text": "boolean"
|
|
1166
|
+
},
|
|
1167
|
+
"default": "false",
|
|
1168
|
+
"description": "Shows a filter button in the headers of filterable columns: a popover with the distinct values.",
|
|
1169
|
+
"attribute": "header-filter"
|
|
1170
|
+
},
|
|
1171
|
+
{
|
|
1172
|
+
"kind": "field",
|
|
1173
|
+
"name": "filterValue",
|
|
1174
|
+
"type": {
|
|
1175
|
+
"text": "GridFilterExpression | null"
|
|
1176
|
+
},
|
|
1177
|
+
"description": "Column filter (property only): a serializable expression such as\n`[['age', '>', 30], 'and', ['name', 'contains', 'an']]`. The filter row\nand the header filter read and write it, so it always holds the current\nfilter. The grid keeps a frozen copy (never the host array). Setting it\ndoes not fire `u-grid-filter-change`."
|
|
1178
|
+
},
|
|
1179
|
+
{
|
|
1180
|
+
"kind": "field",
|
|
1181
|
+
"name": "searchText",
|
|
1182
|
+
"type": {
|
|
1183
|
+
"text": "string"
|
|
1184
|
+
},
|
|
1185
|
+
"description": "Text of the search panel (case and accent insensitive). Setting it does not fire `u-grid-filter-change`.",
|
|
1186
|
+
"attribute": "search-text"
|
|
1187
|
+
},
|
|
1188
|
+
{
|
|
1189
|
+
"kind": "field",
|
|
1190
|
+
"name": "columnResizing",
|
|
1191
|
+
"type": {
|
|
1192
|
+
"text": "boolean"
|
|
1193
|
+
},
|
|
1194
|
+
"default": "false",
|
|
1195
|
+
"description": "Lets the user resize columns from the header edge (pointer and keyboard).",
|
|
1196
|
+
"attribute": "column-resizing"
|
|
1197
|
+
},
|
|
1198
|
+
{
|
|
1199
|
+
"kind": "field",
|
|
1200
|
+
"name": "resizeMode",
|
|
1201
|
+
"type": {
|
|
1202
|
+
"text": "GridResizeMode"
|
|
1203
|
+
},
|
|
1204
|
+
"default": "'widget'",
|
|
1205
|
+
"description": "`widget`: only the column changes and the total width follows.\n`next-column`: the next column gives or takes the same amount (the\ntotal width is kept).",
|
|
1206
|
+
"attribute": "resize-mode"
|
|
1207
|
+
},
|
|
1208
|
+
{
|
|
1209
|
+
"kind": "field",
|
|
1210
|
+
"name": "columnChooser",
|
|
1211
|
+
"type": {
|
|
1212
|
+
"text": "boolean"
|
|
1213
|
+
},
|
|
1214
|
+
"default": "false",
|
|
1215
|
+
"description": "Shows the column chooser button in the bar above the table (and \"Choose\ncolumns\" in the column header menu). The chooser shows/hides columns,\nfilters them by a search box and reorders them by dragging or\nAlt+Shift+↑/↓. Pin a column from its header menu.",
|
|
1216
|
+
"attribute": "column-chooser"
|
|
1217
|
+
},
|
|
1218
|
+
{
|
|
1219
|
+
"kind": "field",
|
|
1220
|
+
"name": "columnAutoWidth",
|
|
1221
|
+
"type": {
|
|
1222
|
+
"text": "boolean"
|
|
1223
|
+
},
|
|
1224
|
+
"default": "false",
|
|
1225
|
+
"description": "Columns without `width` take the width of their content (header and rendered rows).",
|
|
1226
|
+
"attribute": "column-auto-width"
|
|
1227
|
+
},
|
|
1228
|
+
{
|
|
1229
|
+
"kind": "field",
|
|
1230
|
+
"name": "columnRenderingMode",
|
|
1231
|
+
"type": {
|
|
1232
|
+
"text": "GridColumnRenderingMode"
|
|
1233
|
+
},
|
|
1234
|
+
"default": "'auto'",
|
|
1235
|
+
"description": "How columns are rendered: `virtual` keeps only the columns in view (plus\nthe fixed columns and the focused one) in the DOM, for very wide grids;\n`standard` renders all; `auto` (default) is `virtual` with more than 50\nleaf columns defined (visible, hidden or grouped). Under `virtual` a\ncolumn without `width` takes its auto-size width or `max(minWidth, 150)` px.",
|
|
1236
|
+
"attribute": "column-rendering-mode"
|
|
1237
|
+
},
|
|
1238
|
+
{
|
|
1239
|
+
"kind": "field",
|
|
1240
|
+
"name": "selectionMode",
|
|
1241
|
+
"type": {
|
|
1242
|
+
"text": "GridSelectionMode"
|
|
1243
|
+
},
|
|
1244
|
+
"default": "'none'",
|
|
1245
|
+
"description": "Row selection: `none` (default; the selection methods do nothing),\n`single` or `multiple`. Click selects, Ctrl+click toggles, Shift+click\nextends; Space, Shift+Space, Shift+↑/↓ and Ctrl+A on the keyboard.",
|
|
1246
|
+
"attribute": "selection-mode"
|
|
1247
|
+
},
|
|
1248
|
+
{
|
|
1249
|
+
"kind": "field",
|
|
1250
|
+
"name": "showCheckboxes",
|
|
1251
|
+
"type": {
|
|
1252
|
+
"text": "boolean"
|
|
1253
|
+
},
|
|
1254
|
+
"default": "false",
|
|
1255
|
+
"description": "Shows a checkbox column (fixed at the start) with \"select all\" in the\nheader. Only with `selection-mode=\"multiple\"`; then a click on a row only\nmoves the focus and the checkbox (or Space) selects.",
|
|
1256
|
+
"attribute": "show-checkboxes"
|
|
1257
|
+
},
|
|
1258
|
+
{
|
|
1259
|
+
"kind": "field",
|
|
1260
|
+
"name": "clipboardMode",
|
|
1261
|
+
"type": {
|
|
1262
|
+
"text": "GridClipboardMode"
|
|
1263
|
+
},
|
|
1264
|
+
"default": "'copy'",
|
|
1265
|
+
"description": "Ctrl/Cmd+C on a cell of the grid: `copy` (default) copies the cell\nranges, else the selected rows, else the focused cell, as tab separated\ntext and an HTML table; `copy-paste` also lets Ctrl/Cmd+V paste tab\nseparated text into editable cells (with `allowEditing`; fires\n`u-grid-pasting`); `none` leaves the clipboard alone. Text selected with\nthe mouse is copied natively.",
|
|
1266
|
+
"attribute": "clipboard-mode"
|
|
1267
|
+
},
|
|
1268
|
+
{
|
|
1269
|
+
"kind": "field",
|
|
1270
|
+
"name": "cellSelectionMode",
|
|
1271
|
+
"type": {
|
|
1272
|
+
"text": "GridCellSelectionMode"
|
|
1273
|
+
},
|
|
1274
|
+
"default": "'none'",
|
|
1275
|
+
"description": "Cell range selection, like a spreadsheet: `none` (default), `single`\n(one rectangular range — not one cell) or `multiple` (Ctrl/Cmd+click,\nCtrl/Cmd+drag and Shift+F8 add ranges). Drag, Shift+click, Shift+arrows,\nShift+Home/End/PageUp/PageDown and Ctrl+A select data cells; with row\nselection on too, rows are selected with the checkbox column and Space.\nRanges are cleared when rows or columns change (sorting, filtering,\ngrouping, paging…). The cell context menu then opens (even without\n`row-menu`) with \"Copy selected cells\", \"Paste\" (`copy-paste`), \"Extend\nselection to this cell\" and \"Add cell to selection\".",
|
|
1276
|
+
"attribute": "cell-selection-mode"
|
|
1277
|
+
},
|
|
1278
|
+
{
|
|
1279
|
+
"kind": "field",
|
|
1280
|
+
"name": "showCellRangeSummary",
|
|
1281
|
+
"type": {
|
|
1282
|
+
"text": "boolean"
|
|
1283
|
+
},
|
|
1284
|
+
"default": "false",
|
|
1285
|
+
"description": "Shows a bar below the grid with the count, sum and average of the\nselected cells (two or more). Numbers are summed by value, not by text.",
|
|
1286
|
+
"attribute": "show-cell-range-summary"
|
|
1287
|
+
},
|
|
1288
|
+
{
|
|
1289
|
+
"kind": "field",
|
|
1290
|
+
"name": "editMode",
|
|
1291
|
+
"type": {
|
|
1292
|
+
"text": "GridEditMode"
|
|
1293
|
+
},
|
|
1294
|
+
"default": "'cell'",
|
|
1295
|
+
"description": "How rows are edited: `cell` (default; a committed cell is saved at once),\n`row` (Edit/Save/Cancel buttons per row) or `batch` (changes stay pending\nuntil \"Save changes\" or `saveChanges()`).",
|
|
1296
|
+
"attribute": "edit-mode"
|
|
1297
|
+
},
|
|
1298
|
+
{
|
|
1299
|
+
"kind": "field",
|
|
1300
|
+
"name": "allowEditing",
|
|
1301
|
+
"type": {
|
|
1302
|
+
"text": "boolean | ((item: any) => boolean)"
|
|
1303
|
+
},
|
|
1304
|
+
"default": "false",
|
|
1305
|
+
"description": "Lets the user edit cells (columns with `editable`, by default those with\n`path`). A function (property only) decides per row. The grid never\nmutates the items: changes are delivered in `u-grid-saving`. With\n`dataSource`, editing needs `keyExpr`.",
|
|
1306
|
+
"attribute": "allow-editing"
|
|
1307
|
+
},
|
|
1308
|
+
{
|
|
1309
|
+
"kind": "field",
|
|
1310
|
+
"name": "allowAdding",
|
|
1311
|
+
"type": {
|
|
1312
|
+
"text": "boolean"
|
|
1313
|
+
},
|
|
1314
|
+
"default": "false",
|
|
1315
|
+
"description": "Shows the \"Add row\" button and allows `addRow()`.",
|
|
1316
|
+
"attribute": "allow-adding"
|
|
1317
|
+
},
|
|
1318
|
+
{
|
|
1319
|
+
"kind": "field",
|
|
1320
|
+
"name": "allowRemoving",
|
|
1321
|
+
"type": {
|
|
1322
|
+
"text": "boolean | ((item: any) => boolean)"
|
|
1323
|
+
},
|
|
1324
|
+
"default": "false",
|
|
1325
|
+
"description": "Shows the Delete button of each row and allows `removeRow()`. A function\n(property only) decides per row.",
|
|
1326
|
+
"attribute": "allow-removing"
|
|
1327
|
+
},
|
|
1328
|
+
{
|
|
1329
|
+
"kind": "field",
|
|
1330
|
+
"name": "editTrigger",
|
|
1331
|
+
"type": {
|
|
1332
|
+
"text": "GridEditTrigger"
|
|
1333
|
+
},
|
|
1334
|
+
"default": "'click'",
|
|
1335
|
+
"description": "Pointer gesture that opens a cell editor: `click` (default) or `dblclick`. Enter and F2 always open it.",
|
|
1336
|
+
"attribute": "edit-trigger"
|
|
1337
|
+
},
|
|
1338
|
+
{
|
|
1339
|
+
"kind": "field",
|
|
1340
|
+
"name": "confirmRemove",
|
|
1341
|
+
"type": {
|
|
1342
|
+
"text": "boolean"
|
|
1343
|
+
},
|
|
1344
|
+
"default": "true",
|
|
1345
|
+
"description": "Asks before deleting a row with the Delete button (not in `batch` mode, where removal is pending, nor with `removeRow()`).",
|
|
1346
|
+
"attribute": "confirm-remove"
|
|
1347
|
+
},
|
|
1348
|
+
{
|
|
1349
|
+
"kind": "field",
|
|
1350
|
+
"name": "selectedKeys",
|
|
1351
|
+
"type": {
|
|
1352
|
+
"text": "readonly unknown[]"
|
|
1353
|
+
},
|
|
1354
|
+
"description": "Selected row keys (property only). Without `keyExpr` the key is the item\nobject itself, so replacing `items` with new objects loses the selection.\nKeys missing from `items` are kept (and retained) until deselected. The\ngetter returns a frozen array — the same instance until the selection\nchanges. Setting it does not fire `u-grid-selection-change`."
|
|
1355
|
+
},
|
|
1356
|
+
{
|
|
1357
|
+
"kind": "field",
|
|
1358
|
+
"name": "focusedRowKey",
|
|
1359
|
+
"type": {
|
|
1360
|
+
"text": "unknown"
|
|
1361
|
+
},
|
|
1362
|
+
"description": "Key of the data row of the active cell (the cell keyboard navigation\nstarts from); `null` when it is a header, group or fixed row (the\nsetter only finds body rows). Setting it moves\nthe active cell to that row (scrolling to it) without taking the DOM\nfocus and without firing `u-grid-focus-change`; a key not in the rows is\nignored and `null` moves it to the first header (ignored when\n`show-column-headers` is `false`)."
|
|
1363
|
+
},
|
|
1364
|
+
{
|
|
1365
|
+
"kind": "field",
|
|
1366
|
+
"name": "stripped",
|
|
1367
|
+
"type": {
|
|
1368
|
+
"text": "boolean"
|
|
1369
|
+
},
|
|
1370
|
+
"deprecated": "Use `striped`.",
|
|
1371
|
+
"attribute": "stripped"
|
|
1372
|
+
},
|
|
1373
|
+
{
|
|
1374
|
+
"kind": "field",
|
|
1375
|
+
"name": "showHeader",
|
|
1376
|
+
"type": {
|
|
1377
|
+
"text": "boolean"
|
|
1378
|
+
},
|
|
1379
|
+
"deprecated": "Use `showGroupPanel` (attribute `show-group-panel`).",
|
|
1380
|
+
"attribute": "showheader"
|
|
1381
|
+
},
|
|
1382
|
+
{
|
|
1383
|
+
"kind": "field",
|
|
1384
|
+
"name": "language",
|
|
1385
|
+
"type": {
|
|
1386
|
+
"text": "string"
|
|
1387
|
+
},
|
|
1388
|
+
"description": "Language used to resolve the built-in translations. When not set on the\ncomponent it is resolved, in order, from the Lit context, the document\n(`<html lang>` / content-language meta) and finally the browser.",
|
|
1389
|
+
"attribute": "language"
|
|
1390
|
+
},
|
|
1391
|
+
{
|
|
1392
|
+
"kind": "field",
|
|
1393
|
+
"name": "stateStorage",
|
|
1394
|
+
"type": {
|
|
1395
|
+
"text": "'local' | 'session' | GridStateStorage | null"
|
|
1396
|
+
},
|
|
1397
|
+
"description": "Saves and restores the user state (see `getState`): `local` / `session`\n(`localStorage` / `sessionStorage`, attribute `state-storage`, needs\n`state-storage-key`) or an object with `load()` and `save()` (property\nonly). Read when the grid connects (and again when this or the key\nchanges), before the first render of data; while an asynchronous `load()`\nruns the grid shows the load panel and no rows. Saved\n`state-change-delay` ms after each change, and on disconnect or\n`pagehide` when a save is pending. A `setState()` before connecting skips\nthe read. Unreadable or invalid saved states are ignored with a console\nwarning.",
|
|
1398
|
+
"default": "null",
|
|
1399
|
+
"attribute": "state-storage"
|
|
1400
|
+
},
|
|
1401
|
+
{
|
|
1402
|
+
"kind": "field",
|
|
1403
|
+
"name": "stateStorageKey",
|
|
1404
|
+
"type": {
|
|
1405
|
+
"text": "string"
|
|
1406
|
+
},
|
|
1407
|
+
"description": "Key of the state in `localStorage` / `sessionStorage` (required by `state-storage=\"local|session\"`).",
|
|
1408
|
+
"default": "''",
|
|
1409
|
+
"attribute": "state-storage-key"
|
|
1410
|
+
},
|
|
1411
|
+
{
|
|
1412
|
+
"kind": "field",
|
|
1413
|
+
"name": "stateChangeDelay",
|
|
1414
|
+
"type": {
|
|
1415
|
+
"text": "number"
|
|
1416
|
+
},
|
|
1417
|
+
"default": "500",
|
|
1418
|
+
"description": "Delay (ms) after the last change of the state before `u-grid-state-change` fires and the state is saved. Default `500`.",
|
|
1419
|
+
"attribute": "state-change-delay"
|
|
1420
|
+
},
|
|
1421
|
+
{
|
|
1422
|
+
"kind": "method",
|
|
1423
|
+
"name": "getState",
|
|
1424
|
+
"return": {
|
|
1425
|
+
"type": {
|
|
1426
|
+
"text": "GridState"
|
|
1427
|
+
}
|
|
1428
|
+
},
|
|
1429
|
+
"description": "The user state (a new object, JSON serializable): column order, width,\nvisibility, fixing, grouping and sorting, the filter and the search text,\ngroup expansion, the page, and — with `keyExpr` and string/number keys —\nthe selection and the expanded detail rows. Never row data. Columns are\nidentified by `name` (or `path`); columns without either are left out."
|
|
1430
|
+
},
|
|
1431
|
+
{
|
|
1432
|
+
"kind": "method",
|
|
1433
|
+
"name": "setState",
|
|
1434
|
+
"return": {
|
|
1435
|
+
"type": {
|
|
1436
|
+
"text": "void"
|
|
1437
|
+
}
|
|
1438
|
+
},
|
|
1439
|
+
"parameters": [
|
|
1440
|
+
{
|
|
1441
|
+
"name": "state",
|
|
1442
|
+
"type": {
|
|
1443
|
+
"text": "GridState"
|
|
1444
|
+
},
|
|
1445
|
+
"description": "The state to apply."
|
|
1446
|
+
},
|
|
1447
|
+
{
|
|
1448
|
+
"name": "options",
|
|
1449
|
+
"optional": true,
|
|
1450
|
+
"type": {
|
|
1451
|
+
"text": "{ partial?: boolean } | null"
|
|
1452
|
+
},
|
|
1453
|
+
"description": "`partial: true` changes only the keys present in `state`."
|
|
1454
|
+
}
|
|
1455
|
+
],
|
|
1456
|
+
"description": "Applies a state (from `getState`, your storage or built by hand). It is\nvalidated first: an invalid state is ignored with a console warning; an\nolder version is migrated, an unknown one ignored. Without `partial`,\nevery top-level key missing from `state` goes back to the initial value\n(the column definitions and the properties the host set before the grid\nconnected); with `partial: true` only the keys present change. A\n`columns` list sets the whole layout: columns missing from it go back to\ntheir definition, at the end in definition order; unknown names are\nignored. Fires none of the per-feature events (like the setters), only\n`u-grid-state-change`. Never moves the focus nor announces anything: when\na user gesture triggers it, announce the result yourself."
|
|
1457
|
+
},
|
|
1458
|
+
{
|
|
1459
|
+
"kind": "method",
|
|
1460
|
+
"name": "resetState",
|
|
1461
|
+
"return": {
|
|
1462
|
+
"type": {
|
|
1463
|
+
"text": "void"
|
|
1464
|
+
}
|
|
1465
|
+
},
|
|
1466
|
+
"description": "Puts the state back to the initial one (`setState` with an empty state, without `partial`)."
|
|
1467
|
+
},
|
|
1468
|
+
{
|
|
1469
|
+
"kind": "method",
|
|
1470
|
+
"name": "dispatchEvent",
|
|
1471
|
+
"return": {
|
|
1472
|
+
"type": {
|
|
1473
|
+
"text": "boolean"
|
|
1474
|
+
}
|
|
1475
|
+
},
|
|
1476
|
+
"parameters": [
|
|
1477
|
+
{
|
|
1478
|
+
"name": "event",
|
|
1479
|
+
"type": {
|
|
1480
|
+
"text": "Event"
|
|
1481
|
+
}
|
|
1482
|
+
}
|
|
1483
|
+
],
|
|
1484
|
+
"description": "Os eventos de mudança dizem a origem (`source`) da rajada do estado."
|
|
1485
|
+
},
|
|
1486
|
+
{
|
|
1487
|
+
"kind": "method",
|
|
1488
|
+
"name": "sortColumn",
|
|
1489
|
+
"return": {
|
|
1490
|
+
"type": {
|
|
1491
|
+
"text": "void"
|
|
1492
|
+
}
|
|
1493
|
+
},
|
|
1494
|
+
"parameters": [
|
|
1495
|
+
{
|
|
1496
|
+
"name": "column",
|
|
1497
|
+
"type": {
|
|
1498
|
+
"text": "GridColumnDef"
|
|
1499
|
+
}
|
|
1500
|
+
},
|
|
1501
|
+
{
|
|
1502
|
+
"name": "order",
|
|
1503
|
+
"type": {
|
|
1504
|
+
"text": "GridSortOrder | null"
|
|
1505
|
+
}
|
|
1506
|
+
},
|
|
1507
|
+
{
|
|
1508
|
+
"name": "options",
|
|
1509
|
+
"default": "{}",
|
|
1510
|
+
"type": {
|
|
1511
|
+
"text": "{ append?: boolean }"
|
|
1512
|
+
}
|
|
1513
|
+
}
|
|
1514
|
+
],
|
|
1515
|
+
"description": "Sorts by `column` in `order` (`null` removes the column from the\nsorting). Without `append` the column replaces the current sorting; with\nit, the column is added (or keeps its priority if already sorted). For a\ngrouped column it sets the direction of its groups. A band does nothing."
|
|
1516
|
+
},
|
|
1517
|
+
{
|
|
1518
|
+
"kind": "method",
|
|
1519
|
+
"name": "sortBy",
|
|
1520
|
+
"return": {
|
|
1521
|
+
"type": {
|
|
1522
|
+
"text": "void"
|
|
1523
|
+
}
|
|
1524
|
+
},
|
|
1525
|
+
"parameters": [
|
|
1526
|
+
{
|
|
1527
|
+
"name": "column",
|
|
1528
|
+
"type": {
|
|
1529
|
+
"text": "GridColumnDef"
|
|
1530
|
+
}
|
|
1531
|
+
},
|
|
1532
|
+
{
|
|
1533
|
+
"name": "order",
|
|
1534
|
+
"type": {
|
|
1535
|
+
"text": "GridSortOrder | null"
|
|
1536
|
+
}
|
|
1537
|
+
},
|
|
1538
|
+
{
|
|
1539
|
+
"name": "options",
|
|
1540
|
+
"default": "{}",
|
|
1541
|
+
"type": {
|
|
1542
|
+
"text": "{ append?: boolean }"
|
|
1543
|
+
}
|
|
1544
|
+
}
|
|
1545
|
+
],
|
|
1546
|
+
"deprecated": "Use `sortColumn()`."
|
|
1547
|
+
},
|
|
1548
|
+
{
|
|
1549
|
+
"kind": "method",
|
|
1550
|
+
"name": "clearSorting",
|
|
1551
|
+
"return": {
|
|
1552
|
+
"type": {
|
|
1553
|
+
"text": "void"
|
|
1554
|
+
}
|
|
1555
|
+
},
|
|
1556
|
+
"description": "Removes the sorting of every column (grouped columns go back to ascending groups)."
|
|
1557
|
+
},
|
|
1558
|
+
{
|
|
1559
|
+
"kind": "method",
|
|
1560
|
+
"name": "getSorting",
|
|
1561
|
+
"return": {
|
|
1562
|
+
"type": {
|
|
1563
|
+
"text": "GridSort[]"
|
|
1564
|
+
}
|
|
1565
|
+
},
|
|
1566
|
+
"description": "Current sorting, in priority order (a copy)."
|
|
1567
|
+
},
|
|
1568
|
+
{
|
|
1569
|
+
"kind": "method",
|
|
1570
|
+
"name": "groupColumn",
|
|
1571
|
+
"return": {
|
|
1572
|
+
"type": {
|
|
1573
|
+
"text": "void"
|
|
1574
|
+
}
|
|
1575
|
+
},
|
|
1576
|
+
"parameters": [
|
|
1577
|
+
{
|
|
1578
|
+
"name": "column",
|
|
1579
|
+
"type": {
|
|
1580
|
+
"text": "GridColumnDef"
|
|
1581
|
+
}
|
|
1582
|
+
},
|
|
1583
|
+
{
|
|
1584
|
+
"name": "targetIndex",
|
|
1585
|
+
"optional": true,
|
|
1586
|
+
"type": {
|
|
1587
|
+
"text": "number"
|
|
1588
|
+
}
|
|
1589
|
+
}
|
|
1590
|
+
],
|
|
1591
|
+
"description": "Groups by `column` at grouping level `targetIndex` (default: the\ninnermost level). An already grouped column moves to that level. Only\nleaf columns group (a band does nothing); a grouped column leaves its\nband in the header and returns to the end of it when ungrouped."
|
|
1592
|
+
},
|
|
1593
|
+
{
|
|
1594
|
+
"kind": "method",
|
|
1595
|
+
"name": "ungroupColumn",
|
|
1596
|
+
"return": {
|
|
1597
|
+
"type": {
|
|
1598
|
+
"text": "void"
|
|
1599
|
+
}
|
|
1600
|
+
},
|
|
1601
|
+
"parameters": [
|
|
1602
|
+
{
|
|
1603
|
+
"name": "column",
|
|
1604
|
+
"type": {
|
|
1605
|
+
"text": "GridColumnDef"
|
|
1606
|
+
}
|
|
1607
|
+
}
|
|
1608
|
+
],
|
|
1609
|
+
"description": "Removes `column` from the grouping; it goes back to the end of its band (or of the regular columns at the top level)."
|
|
1610
|
+
},
|
|
1611
|
+
{
|
|
1612
|
+
"kind": "method",
|
|
1613
|
+
"name": "getGrouping",
|
|
1614
|
+
"return": {
|
|
1615
|
+
"type": {
|
|
1616
|
+
"text": "GridColumnDef[]"
|
|
1617
|
+
}
|
|
1618
|
+
},
|
|
1619
|
+
"description": "Grouped columns, outermost first (a copy)."
|
|
1620
|
+
},
|
|
1621
|
+
{
|
|
1622
|
+
"kind": "method",
|
|
1623
|
+
"name": "expandAllGroups",
|
|
1624
|
+
"return": {
|
|
1625
|
+
"type": {
|
|
1626
|
+
"text": "void"
|
|
1627
|
+
}
|
|
1628
|
+
},
|
|
1629
|
+
"parameters": [
|
|
1630
|
+
{
|
|
1631
|
+
"name": "groupIndex",
|
|
1632
|
+
"optional": true,
|
|
1633
|
+
"type": {
|
|
1634
|
+
"text": "number"
|
|
1635
|
+
}
|
|
1636
|
+
}
|
|
1637
|
+
],
|
|
1638
|
+
"description": "Expands every group of grouping level `groupIndex` (0-based), or of\nevery level without it. Also applies to groups that appear later\n(new data, filter), until the next `expandAllGroups`/`collapseAllGroups`\ncall or a change of `autoExpandGroups` (which fires no event)."
|
|
1639
|
+
},
|
|
1640
|
+
{
|
|
1641
|
+
"kind": "method",
|
|
1642
|
+
"name": "collapseAllGroups",
|
|
1643
|
+
"return": {
|
|
1644
|
+
"type": {
|
|
1645
|
+
"text": "void"
|
|
1646
|
+
}
|
|
1647
|
+
},
|
|
1648
|
+
"parameters": [
|
|
1649
|
+
{
|
|
1650
|
+
"name": "groupIndex",
|
|
1651
|
+
"optional": true,
|
|
1652
|
+
"type": {
|
|
1653
|
+
"text": "number"
|
|
1654
|
+
}
|
|
1655
|
+
}
|
|
1656
|
+
],
|
|
1657
|
+
"description": "Collapses every group of level `groupIndex`, or of every level without it. See `expandAllGroups`."
|
|
1658
|
+
},
|
|
1659
|
+
{
|
|
1660
|
+
"kind": "method",
|
|
1661
|
+
"name": "expandGroup",
|
|
1662
|
+
"return": {
|
|
1663
|
+
"type": {
|
|
1664
|
+
"text": "void"
|
|
1665
|
+
}
|
|
1666
|
+
},
|
|
1667
|
+
"parameters": [
|
|
1668
|
+
{
|
|
1669
|
+
"name": "groupPath",
|
|
1670
|
+
"type": {
|
|
1671
|
+
"text": "GridGroupPath"
|
|
1672
|
+
}
|
|
1673
|
+
}
|
|
1674
|
+
],
|
|
1675
|
+
"description": "Expands one group (not its parents). `groupPath` = the group values from\nthe outermost level, e.g. `['Brazil', 'SP']`, compared as when grouping.\nNeeds the grouping set (at least `groupPath.length` grouped columns),\notherwise it is ignored; a group that has no rows yet keeps the state\n(and the event fires) for when it appears."
|
|
1676
|
+
},
|
|
1677
|
+
{
|
|
1678
|
+
"kind": "method",
|
|
1679
|
+
"name": "collapseGroup",
|
|
1680
|
+
"return": {
|
|
1681
|
+
"type": {
|
|
1682
|
+
"text": "void"
|
|
1683
|
+
}
|
|
1684
|
+
},
|
|
1685
|
+
"parameters": [
|
|
1686
|
+
{
|
|
1687
|
+
"name": "groupPath",
|
|
1688
|
+
"type": {
|
|
1689
|
+
"text": "GridGroupPath"
|
|
1690
|
+
}
|
|
1691
|
+
}
|
|
1692
|
+
],
|
|
1693
|
+
"description": "Collapses one group (`groupPath` as in `expandGroup`)."
|
|
1694
|
+
},
|
|
1695
|
+
{
|
|
1696
|
+
"kind": "method",
|
|
1697
|
+
"name": "isGroupExpanded",
|
|
1698
|
+
"return": {
|
|
1699
|
+
"type": {
|
|
1700
|
+
"text": "boolean"
|
|
1701
|
+
}
|
|
1702
|
+
},
|
|
1703
|
+
"parameters": [
|
|
1704
|
+
{
|
|
1705
|
+
"name": "groupPath",
|
|
1706
|
+
"type": {
|
|
1707
|
+
"text": "GridGroupPath"
|
|
1708
|
+
}
|
|
1709
|
+
}
|
|
1710
|
+
],
|
|
1711
|
+
"description": "Whether the group of `groupPath` is (or would be) expanded."
|
|
1712
|
+
},
|
|
1713
|
+
{
|
|
1714
|
+
"kind": "method",
|
|
1715
|
+
"name": "expandRow",
|
|
1716
|
+
"return": {
|
|
1717
|
+
"type": {
|
|
1718
|
+
"text": "void"
|
|
1719
|
+
}
|
|
1720
|
+
},
|
|
1721
|
+
"parameters": [
|
|
1722
|
+
{
|
|
1723
|
+
"name": "rowKey",
|
|
1724
|
+
"type": {
|
|
1725
|
+
"text": "unknown"
|
|
1726
|
+
}
|
|
1727
|
+
}
|
|
1728
|
+
],
|
|
1729
|
+
"description": "Expands the detail of the row `rowKey` (master-detail, and the values of\nthe columns hidden by `autoHideColumns`; with neither `detailRenderer`\nnor `autoHideColumns` it does nothing; with `autoHideColumns` the state is\nkept even while no column is hidden). A key not in the rows (filtered out,\nin a collapsed group, not in `items`) keeps the state — and the key —\nuntil collapsed; parent groups are not expanded."
|
|
1730
|
+
},
|
|
1731
|
+
{
|
|
1732
|
+
"kind": "method",
|
|
1733
|
+
"name": "collapseRow",
|
|
1734
|
+
"return": {
|
|
1735
|
+
"type": {
|
|
1736
|
+
"text": "void"
|
|
1737
|
+
}
|
|
1738
|
+
},
|
|
1739
|
+
"parameters": [
|
|
1740
|
+
{
|
|
1741
|
+
"name": "rowKey",
|
|
1742
|
+
"type": {
|
|
1743
|
+
"text": "unknown"
|
|
1744
|
+
}
|
|
1745
|
+
}
|
|
1746
|
+
],
|
|
1747
|
+
"description": "Collapses the detail of the row `rowKey` (see `expandRow`)."
|
|
1748
|
+
},
|
|
1749
|
+
{
|
|
1750
|
+
"kind": "method",
|
|
1751
|
+
"name": "isRowExpanded",
|
|
1752
|
+
"return": {
|
|
1753
|
+
"type": {
|
|
1754
|
+
"text": "boolean"
|
|
1755
|
+
}
|
|
1756
|
+
},
|
|
1757
|
+
"parameters": [
|
|
1758
|
+
{
|
|
1759
|
+
"name": "rowKey",
|
|
1760
|
+
"type": {
|
|
1761
|
+
"text": "unknown"
|
|
1762
|
+
}
|
|
1763
|
+
}
|
|
1764
|
+
],
|
|
1765
|
+
"description": "Whether the detail of the row `rowKey` is (or would be) expanded; `false`\nwith neither `detailRenderer` nor `autoHideColumns`."
|
|
1766
|
+
},
|
|
1767
|
+
{
|
|
1768
|
+
"kind": "method",
|
|
1769
|
+
"name": "expandNode",
|
|
1770
|
+
"return": {
|
|
1771
|
+
"type": {
|
|
1772
|
+
"text": "Promise<boolean>"
|
|
1773
|
+
}
|
|
1774
|
+
},
|
|
1775
|
+
"parameters": [
|
|
1776
|
+
{
|
|
1777
|
+
"name": "rowKey",
|
|
1778
|
+
"type": {
|
|
1779
|
+
"text": "unknown"
|
|
1780
|
+
}
|
|
1781
|
+
}
|
|
1782
|
+
],
|
|
1783
|
+
"description": "Expands the tree node `rowKey` (`treeMode`). Never rejects: resolves\n`true` when the node is expanded with its children ready (a `dataSource`\nloads them first), `false` on a failed or aborted load, a leaf or a key\nnot in the tree."
|
|
1784
|
+
},
|
|
1785
|
+
{
|
|
1786
|
+
"kind": "method",
|
|
1787
|
+
"name": "collapseNode",
|
|
1788
|
+
"return": {
|
|
1789
|
+
"type": {
|
|
1790
|
+
"text": "void"
|
|
1791
|
+
}
|
|
1792
|
+
},
|
|
1793
|
+
"parameters": [
|
|
1794
|
+
{
|
|
1795
|
+
"name": "rowKey",
|
|
1796
|
+
"type": {
|
|
1797
|
+
"text": "unknown"
|
|
1798
|
+
}
|
|
1799
|
+
}
|
|
1800
|
+
],
|
|
1801
|
+
"description": "Collapses the tree node `rowKey`; the active cell inside it moves to the node."
|
|
1802
|
+
},
|
|
1803
|
+
{
|
|
1804
|
+
"kind": "method",
|
|
1805
|
+
"name": "isNodeExpanded",
|
|
1806
|
+
"return": {
|
|
1807
|
+
"type": {
|
|
1808
|
+
"text": "boolean"
|
|
1809
|
+
}
|
|
1810
|
+
},
|
|
1811
|
+
"parameters": [
|
|
1812
|
+
{
|
|
1813
|
+
"name": "rowKey",
|
|
1814
|
+
"type": {
|
|
1815
|
+
"text": "unknown"
|
|
1816
|
+
}
|
|
1817
|
+
}
|
|
1818
|
+
],
|
|
1819
|
+
"description": "Whether the tree node `rowKey` is SHOWN expanded: `false` for a leaf (also\na node whose children are all filtered out), a key not in the tree, and\na remote node whose children are not loaded nor loading — even if the\nexpansion state (`getState().nodeExpansion`) says expanded."
|
|
1820
|
+
},
|
|
1821
|
+
{
|
|
1822
|
+
"kind": "method",
|
|
1823
|
+
"name": "expandAllNodes",
|
|
1824
|
+
"return": {
|
|
1825
|
+
"type": {
|
|
1826
|
+
"text": "void"
|
|
1827
|
+
}
|
|
1828
|
+
},
|
|
1829
|
+
"description": "Expands every tree node (with `dataSource`: only the loaded ones; no loads)."
|
|
1830
|
+
},
|
|
1831
|
+
{
|
|
1832
|
+
"kind": "method",
|
|
1833
|
+
"name": "collapseAllNodes",
|
|
1834
|
+
"return": {
|
|
1835
|
+
"type": {
|
|
1836
|
+
"text": "void"
|
|
1837
|
+
}
|
|
1838
|
+
},
|
|
1839
|
+
"description": "Collapses every tree node; the active cell moves to its root node."
|
|
1840
|
+
},
|
|
1841
|
+
{
|
|
1842
|
+
"kind": "method",
|
|
1843
|
+
"name": "getNodeSummaryValues",
|
|
1844
|
+
"return": {
|
|
1845
|
+
"type": {
|
|
1846
|
+
"text": "GridSummaryValue[]"
|
|
1847
|
+
}
|
|
1848
|
+
},
|
|
1849
|
+
"parameters": [
|
|
1850
|
+
{
|
|
1851
|
+
"name": "rowKey",
|
|
1852
|
+
"type": {
|
|
1853
|
+
"text": "unknown"
|
|
1854
|
+
}
|
|
1855
|
+
}
|
|
1856
|
+
],
|
|
1857
|
+
"description": "Values of `summary.node` for the tree node `rowKey` (over its visible descendants); empty for a leaf or a key not shown."
|
|
1858
|
+
},
|
|
1859
|
+
{
|
|
1860
|
+
"kind": "method",
|
|
1861
|
+
"name": "getSummaryValues",
|
|
1862
|
+
"return": {
|
|
1863
|
+
"type": {
|
|
1864
|
+
"text": "GridSummaryValue[]"
|
|
1865
|
+
}
|
|
1866
|
+
},
|
|
1867
|
+
"parameters": [
|
|
1868
|
+
{
|
|
1869
|
+
"name": "groupPath",
|
|
1870
|
+
"optional": true,
|
|
1871
|
+
"type": {
|
|
1872
|
+
"text": "GridGroupPath"
|
|
1873
|
+
}
|
|
1874
|
+
}
|
|
1875
|
+
],
|
|
1876
|
+
"description": "Computed summaries: the totals (`summary.total`) or, with `groupPath`,\nthe summaries of that group (`summary.group`; empty if the group does\nnot exist)."
|
|
1877
|
+
},
|
|
1878
|
+
{
|
|
1879
|
+
"kind": "method",
|
|
1880
|
+
"name": "moveColumn",
|
|
1881
|
+
"return": {
|
|
1882
|
+
"type": {
|
|
1883
|
+
"text": "void"
|
|
1884
|
+
}
|
|
1885
|
+
},
|
|
1886
|
+
"parameters": [
|
|
1887
|
+
{
|
|
1888
|
+
"name": "column",
|
|
1889
|
+
"type": {
|
|
1890
|
+
"text": "GridColumnDef"
|
|
1891
|
+
}
|
|
1892
|
+
},
|
|
1893
|
+
{
|
|
1894
|
+
"name": "targetIndex",
|
|
1895
|
+
"type": {
|
|
1896
|
+
"text": "number"
|
|
1897
|
+
}
|
|
1898
|
+
}
|
|
1899
|
+
],
|
|
1900
|
+
"description": "Moves a column (or a band, with all its columns) to `targetIndex` among\nits siblings — the columns of the same band, or the top level — that are\nnot grouped (hidden ones count). Without bands that is the index among\nthe regular columns. The column stays in its band and in its block: fixed\nat the start, free, or fixed at the end. A grouped column is ungrouped."
|
|
1901
|
+
},
|
|
1902
|
+
{
|
|
1903
|
+
"kind": "method",
|
|
1904
|
+
"name": "setColumnWidth",
|
|
1905
|
+
"return": {
|
|
1906
|
+
"type": {
|
|
1907
|
+
"text": "void"
|
|
1908
|
+
}
|
|
1909
|
+
},
|
|
1910
|
+
"parameters": [
|
|
1911
|
+
{
|
|
1912
|
+
"name": "column",
|
|
1913
|
+
"type": {
|
|
1914
|
+
"text": "GridColumnDef"
|
|
1915
|
+
}
|
|
1916
|
+
},
|
|
1917
|
+
{
|
|
1918
|
+
"name": "width",
|
|
1919
|
+
"type": {
|
|
1920
|
+
"text": "number"
|
|
1921
|
+
}
|
|
1922
|
+
}
|
|
1923
|
+
],
|
|
1924
|
+
"description": "Sets the width (px) of a column, within its `minWidth`/`maxWidth`. A band does nothing."
|
|
1925
|
+
},
|
|
1926
|
+
{
|
|
1927
|
+
"kind": "method",
|
|
1928
|
+
"name": "autoSizeColumn",
|
|
1929
|
+
"return": {
|
|
1930
|
+
"type": {
|
|
1931
|
+
"text": "void"
|
|
1932
|
+
}
|
|
1933
|
+
},
|
|
1934
|
+
"parameters": [
|
|
1935
|
+
{
|
|
1936
|
+
"name": "column",
|
|
1937
|
+
"type": {
|
|
1938
|
+
"text": "GridColumnDef"
|
|
1939
|
+
}
|
|
1940
|
+
}
|
|
1941
|
+
],
|
|
1942
|
+
"description": "Fits the width of a column to its header and rendered cells; for a band, each of its visible columns."
|
|
1943
|
+
},
|
|
1944
|
+
{
|
|
1945
|
+
"kind": "method",
|
|
1946
|
+
"name": "autoSizeAllColumns",
|
|
1947
|
+
"return": {
|
|
1948
|
+
"type": {
|
|
1949
|
+
"text": "void"
|
|
1950
|
+
}
|
|
1951
|
+
},
|
|
1952
|
+
"description": "Fits the width of every visible column to its header and rendered cells\n(like `autoSizeColumn` on each one)."
|
|
1953
|
+
},
|
|
1954
|
+
{
|
|
1955
|
+
"kind": "method",
|
|
1956
|
+
"name": "resetColumns",
|
|
1957
|
+
"return": {
|
|
1958
|
+
"type": {
|
|
1959
|
+
"text": "void"
|
|
1960
|
+
}
|
|
1961
|
+
},
|
|
1962
|
+
"description": "Puts the column layout back to the column definitions: order, width,\nvisibility and pinning (a partial `setState` of the columns). Sorting,\nfiltering and grouping are kept. Like `resetState`, it fires only\n`u-grid-state-change` (no column event — also for \"Reset columns\" in\nthe column header menu, then with `sources: ['user']`), never moves the\nfocus nor announces anything."
|
|
1963
|
+
},
|
|
1964
|
+
{
|
|
1965
|
+
"kind": "method",
|
|
1966
|
+
"name": "refresh",
|
|
1967
|
+
"return": {
|
|
1968
|
+
"type": {
|
|
1969
|
+
"text": "Promise<void>"
|
|
1970
|
+
}
|
|
1971
|
+
},
|
|
1972
|
+
"description": "Reloads the data: with `dataSource`, discards the loaded blocks and asks\nagain (the rows shown stay until the answer); with `items`, recomputes\nsorting, filtering, grouping and summaries. Resolves when done (also on\nerror — see `u-grid-load-error`)."
|
|
1973
|
+
},
|
|
1974
|
+
{
|
|
1975
|
+
"kind": "method",
|
|
1976
|
+
"name": "applyChanges",
|
|
1977
|
+
"return": {
|
|
1978
|
+
"type": {
|
|
1979
|
+
"text": "void"
|
|
1980
|
+
}
|
|
1981
|
+
},
|
|
1982
|
+
"parameters": [
|
|
1983
|
+
{
|
|
1984
|
+
"name": "changes",
|
|
1985
|
+
"type": {
|
|
1986
|
+
"text": "GridDataChanges<TItem>"
|
|
1987
|
+
}
|
|
1988
|
+
}
|
|
1989
|
+
],
|
|
1990
|
+
"description": "Applies changes to the loaded rows of `dataSource` without reloading\neverything: `update` replaces items by key in place (no re-sorting nor\nre-filtering, as the reference `push`, unless `reshapeOnChanges`),\n`remove` takes rows out, `add` appends at the end (with\n`reshapeOnChanges`, at its sorted place). With remote paging or grouping, `update` patches the\nloaded blocks and `add`/`remove` reload the shown rows. Selection, focus\nand group expansion are kept. `update`/`remove` need `keyExpr`. With\n`items` it does nothing (warning): set a new `items` array instead —\nrows keep their state by key."
|
|
1991
|
+
},
|
|
1992
|
+
{
|
|
1993
|
+
"kind": "method",
|
|
1994
|
+
"name": "getTotalCount",
|
|
1995
|
+
"return": {
|
|
1996
|
+
"type": {
|
|
1997
|
+
"text": "number"
|
|
1998
|
+
}
|
|
1999
|
+
},
|
|
2000
|
+
"description": "Number of data rows: with `items` or a single-load `dataSource`, the\nrows that pass the filter; with remote paging or grouping, the server\ntotal (`-1` while unknown, e.g. infinite scrolling)."
|
|
2001
|
+
},
|
|
2002
|
+
{
|
|
2003
|
+
"kind": "method",
|
|
2004
|
+
"name": "clearFilter",
|
|
2005
|
+
"return": {
|
|
2006
|
+
"type": {
|
|
2007
|
+
"text": "void"
|
|
2008
|
+
}
|
|
2009
|
+
},
|
|
2010
|
+
"description": "Removes every filter: `filterValue` and `searchText`. Fires `u-grid-filter-change` (`source: 'api'`) when something changed."
|
|
2011
|
+
},
|
|
2012
|
+
{
|
|
2013
|
+
"kind": "method",
|
|
2014
|
+
"name": "getCombinedFilter",
|
|
2015
|
+
"return": {
|
|
2016
|
+
"type": {
|
|
2017
|
+
"text": "GridFilterExpression | null"
|
|
2018
|
+
}
|
|
2019
|
+
},
|
|
2020
|
+
"description": "The effective filter: `filterValue` `and` the search, as an expression\n(copy). The search becomes `[path, 'contains', text]` joined by `or`\nover the visible filterable columns (number and date columns included:\n`contains` matches their displayed text). `null` without filter."
|
|
2021
|
+
},
|
|
2022
|
+
{
|
|
2023
|
+
"kind": "method",
|
|
2024
|
+
"name": "openColumnChooser",
|
|
2025
|
+
"return": {
|
|
2026
|
+
"type": {
|
|
2027
|
+
"text": "void"
|
|
2028
|
+
}
|
|
2029
|
+
},
|
|
2030
|
+
"description": "Opens the column chooser (also without the `column-chooser` button)."
|
|
2031
|
+
},
|
|
2032
|
+
{
|
|
2033
|
+
"kind": "method",
|
|
2034
|
+
"name": "closeColumnChooser",
|
|
2035
|
+
"return": {
|
|
2036
|
+
"type": {
|
|
2037
|
+
"text": "void"
|
|
2038
|
+
}
|
|
2039
|
+
},
|
|
2040
|
+
"description": "Closes the column chooser."
|
|
2041
|
+
},
|
|
2042
|
+
{
|
|
2043
|
+
"kind": "method",
|
|
2044
|
+
"name": "showColumnChooser",
|
|
2045
|
+
"return": {
|
|
2046
|
+
"type": {
|
|
2047
|
+
"text": "void"
|
|
2048
|
+
}
|
|
2049
|
+
},
|
|
2050
|
+
"deprecated": "Use `openColumnChooser()`."
|
|
2051
|
+
},
|
|
2052
|
+
{
|
|
2053
|
+
"kind": "method",
|
|
2054
|
+
"name": "selectRows",
|
|
2055
|
+
"return": {
|
|
2056
|
+
"type": {
|
|
2057
|
+
"text": "void"
|
|
2058
|
+
}
|
|
2059
|
+
},
|
|
2060
|
+
"parameters": [
|
|
2061
|
+
{
|
|
2062
|
+
"name": "keys",
|
|
2063
|
+
"type": {
|
|
2064
|
+
"text": "readonly unknown[]"
|
|
2065
|
+
}
|
|
2066
|
+
},
|
|
2067
|
+
{
|
|
2068
|
+
"name": "options",
|
|
2069
|
+
"default": "{}",
|
|
2070
|
+
"type": {
|
|
2071
|
+
"text": "{ append?: boolean }"
|
|
2072
|
+
}
|
|
2073
|
+
}
|
|
2074
|
+
],
|
|
2075
|
+
"description": "Selects the rows of `keys`. Without `append` they replace the selection;\nwith it they are added. In `single` mode only the last key is kept; in\n`none` it does nothing."
|
|
2076
|
+
},
|
|
2077
|
+
{
|
|
2078
|
+
"kind": "method",
|
|
2079
|
+
"name": "deselectRows",
|
|
2080
|
+
"return": {
|
|
2081
|
+
"type": {
|
|
2082
|
+
"text": "void"
|
|
2083
|
+
}
|
|
2084
|
+
},
|
|
2085
|
+
"parameters": [
|
|
2086
|
+
{
|
|
2087
|
+
"name": "keys",
|
|
2088
|
+
"type": {
|
|
2089
|
+
"text": "readonly unknown[]"
|
|
2090
|
+
}
|
|
2091
|
+
}
|
|
2092
|
+
],
|
|
2093
|
+
"description": "Removes the rows of `keys` from the selection (nothing in `none` mode)."
|
|
2094
|
+
},
|
|
2095
|
+
{
|
|
2096
|
+
"kind": "method",
|
|
2097
|
+
"name": "selectAll",
|
|
2098
|
+
"return": {
|
|
2099
|
+
"type": {
|
|
2100
|
+
"text": "void"
|
|
2101
|
+
}
|
|
2102
|
+
},
|
|
2103
|
+
"description": "Selects every row that passes the filter, including rows of collapsed groups (`multiple` mode only)."
|
|
2104
|
+
},
|
|
2105
|
+
{
|
|
2106
|
+
"kind": "method",
|
|
2107
|
+
"name": "deselectAll",
|
|
2108
|
+
"return": {
|
|
2109
|
+
"type": {
|
|
2110
|
+
"text": "void"
|
|
2111
|
+
}
|
|
2112
|
+
},
|
|
2113
|
+
"description": "Deselects every row that passes the filter (`multiple` mode only); other keys stay selected."
|
|
2114
|
+
},
|
|
2115
|
+
{
|
|
2116
|
+
"kind": "method",
|
|
2117
|
+
"name": "clearSelection",
|
|
2118
|
+
"return": {
|
|
2119
|
+
"type": {
|
|
2120
|
+
"text": "void"
|
|
2121
|
+
}
|
|
2122
|
+
},
|
|
2123
|
+
"description": "Removes every key from the selection (also keys not in `items`)."
|
|
2124
|
+
},
|
|
2125
|
+
{
|
|
2126
|
+
"kind": "method",
|
|
2127
|
+
"name": "isRowSelected",
|
|
2128
|
+
"return": {
|
|
2129
|
+
"type": {
|
|
2130
|
+
"text": "boolean"
|
|
2131
|
+
}
|
|
2132
|
+
},
|
|
2133
|
+
"parameters": [
|
|
2134
|
+
{
|
|
2135
|
+
"name": "key",
|
|
2136
|
+
"type": {
|
|
2137
|
+
"text": "unknown"
|
|
2138
|
+
}
|
|
2139
|
+
}
|
|
2140
|
+
],
|
|
2141
|
+
"description": "Whether the row of `key` is selected."
|
|
2142
|
+
},
|
|
2143
|
+
{
|
|
2144
|
+
"kind": "method",
|
|
2145
|
+
"name": "getSelectedItems",
|
|
2146
|
+
"return": {
|
|
2147
|
+
"type": {
|
|
2148
|
+
"text": "any[]"
|
|
2149
|
+
}
|
|
2150
|
+
},
|
|
2151
|
+
"description": "Items of the selected keys that are loaded (all of `items`; with a remote source, the loaded blocks), in selection order."
|
|
2152
|
+
},
|
|
2153
|
+
{
|
|
2154
|
+
"kind": "method",
|
|
2155
|
+
"name": "focusCell",
|
|
2156
|
+
"return": {
|
|
2157
|
+
"type": {
|
|
2158
|
+
"text": "boolean"
|
|
2159
|
+
}
|
|
2160
|
+
},
|
|
2161
|
+
"parameters": [
|
|
2162
|
+
{
|
|
2163
|
+
"name": "rowKey",
|
|
2164
|
+
"type": {
|
|
2165
|
+
"text": "unknown"
|
|
2166
|
+
}
|
|
2167
|
+
},
|
|
2168
|
+
{
|
|
2169
|
+
"name": "column",
|
|
2170
|
+
"optional": true,
|
|
2171
|
+
"type": {
|
|
2172
|
+
"text": "GridColumnRef | null"
|
|
2173
|
+
}
|
|
2174
|
+
},
|
|
2175
|
+
{
|
|
2176
|
+
"name": "options",
|
|
2177
|
+
"optional": true,
|
|
2178
|
+
"type": {
|
|
2179
|
+
"text": "{ rowFixed?: GridRowFixed } | null"
|
|
2180
|
+
}
|
|
2181
|
+
}
|
|
2182
|
+
],
|
|
2183
|
+
"description": "Scrolls to the cell of the row `rowKey` and `column` (default: the first\nvisible column) and moves the DOM focus to it. Returns `false` when the\nrow is not in the grid (filtered out or in a collapsed group — groups are\nnot expanded) or `column` is not a shown (user-visible), ungrouped\ncolumn (a band returns `false`). A column hidden by `autoHideColumns`\nopens the row details (`u-grid-row-expansion-change`, `source: 'api'`)\nand focuses its value. Before the\nfirst render it only sets the active cell (the focus moves when it is\nrendered) and fires no event. `options.rowFixed` looks for the row among\nthe fixed rows of that side (`fixedTopItems`/`fixedBottomItems`) instead\nof the body (`false` when the key is not among them). In a full-width\nrow (`rowRenderer`) the focus goes to its single cell for any `column`."
|
|
2184
|
+
},
|
|
2185
|
+
{
|
|
2186
|
+
"kind": "method",
|
|
2187
|
+
"name": "editCell",
|
|
2188
|
+
"return": {
|
|
2189
|
+
"type": {
|
|
2190
|
+
"text": "boolean"
|
|
2191
|
+
}
|
|
2192
|
+
},
|
|
2193
|
+
"parameters": [
|
|
2194
|
+
{
|
|
2195
|
+
"name": "rowKey",
|
|
2196
|
+
"type": {
|
|
2197
|
+
"text": "unknown"
|
|
2198
|
+
}
|
|
2199
|
+
},
|
|
2200
|
+
{
|
|
2201
|
+
"name": "column",
|
|
2202
|
+
"type": {
|
|
2203
|
+
"text": "GridColumnRef"
|
|
2204
|
+
}
|
|
2205
|
+
}
|
|
2206
|
+
],
|
|
2207
|
+
"description": "Opens the editor of a cell (focus goes to it). In `row` mode it opens the\nwhole row with the focus on that cell. A column hidden by\n`autoHideColumns` opens the row details (`u-grid-row-expansion-change`,\n`source: 'api'`) and edits its value there. Returns `false` when the row is\nnot in the grid, the cell is not editable, a save is running or\n`u-grid-edit-starting` was canceled."
|
|
2208
|
+
},
|
|
2209
|
+
{
|
|
2210
|
+
"kind": "method",
|
|
2211
|
+
"name": "editRow",
|
|
2212
|
+
"return": {
|
|
2213
|
+
"type": {
|
|
2214
|
+
"text": "boolean"
|
|
2215
|
+
}
|
|
2216
|
+
},
|
|
2217
|
+
"parameters": [
|
|
2218
|
+
{
|
|
2219
|
+
"name": "rowKey",
|
|
2220
|
+
"type": {
|
|
2221
|
+
"text": "unknown"
|
|
2222
|
+
}
|
|
2223
|
+
}
|
|
2224
|
+
],
|
|
2225
|
+
"description": "Opens a whole row for editing (`editMode=\"row\"` only; `false` otherwise or as `editCell`)."
|
|
2226
|
+
},
|
|
2227
|
+
{
|
|
2228
|
+
"kind": "method",
|
|
2229
|
+
"name": "addRow",
|
|
2230
|
+
"return": {
|
|
2231
|
+
"type": {
|
|
2232
|
+
"text": "unknown"
|
|
2233
|
+
}
|
|
2234
|
+
},
|
|
2235
|
+
"parameters": [
|
|
2236
|
+
{
|
|
2237
|
+
"name": "data",
|
|
2238
|
+
"default": "{}",
|
|
2239
|
+
"type": {
|
|
2240
|
+
"text": "Partial<TItem>"
|
|
2241
|
+
}
|
|
2242
|
+
},
|
|
2243
|
+
{
|
|
2244
|
+
"name": "options",
|
|
2245
|
+
"optional": true,
|
|
2246
|
+
"type": {
|
|
2247
|
+
"text": "GridAddRowOptions | null"
|
|
2248
|
+
}
|
|
2249
|
+
}
|
|
2250
|
+
],
|
|
2251
|
+
"description": "Adds a new row at the top of the visible rows (of the current page with\n`paging`) and opens its first editable cell. `data` gives initial values\n(also editable in `u-grid-row-adding`). Returns the opaque provisional key\nof the row (focus and selection move to the real key when it is saved),\nor `null` without `allowAdding`, during a save or when canceled. Tree\ndata: with `options.parentKey` the row is the first child of that node,\nwhich expands with its ancestors (`u-grid-node-expansion-change`); a key\nthat is not a node adds nothing (`null`, console warning)."
|
|
2252
|
+
},
|
|
2253
|
+
{
|
|
2254
|
+
"kind": "method",
|
|
2255
|
+
"name": "removeRow",
|
|
2256
|
+
"return": {
|
|
2257
|
+
"type": {
|
|
2258
|
+
"text": "Promise<boolean>"
|
|
2259
|
+
}
|
|
2260
|
+
},
|
|
2261
|
+
"parameters": [
|
|
2262
|
+
{
|
|
2263
|
+
"name": "rowKey",
|
|
2264
|
+
"type": {
|
|
2265
|
+
"text": "unknown"
|
|
2266
|
+
}
|
|
2267
|
+
}
|
|
2268
|
+
],
|
|
2269
|
+
"description": "Deletes a row: in `cell` and `row` modes it is saved at once\n(`u-grid-saving`); in `batch` mode it is marked for removal. Never asks\nfor confirmation. Resolves `false` when nothing was removed (row not\nfound, `u-grid-row-removing` or `u-grid-saving` canceled, save failed)."
|
|
2270
|
+
},
|
|
2271
|
+
{
|
|
2272
|
+
"kind": "method",
|
|
2273
|
+
"name": "restoreRow",
|
|
2274
|
+
"return": {
|
|
2275
|
+
"type": {
|
|
2276
|
+
"text": "void"
|
|
2277
|
+
}
|
|
2278
|
+
},
|
|
2279
|
+
"parameters": [
|
|
2280
|
+
{
|
|
2281
|
+
"name": "rowKey",
|
|
2282
|
+
"type": {
|
|
2283
|
+
"text": "unknown"
|
|
2284
|
+
}
|
|
2285
|
+
}
|
|
2286
|
+
],
|
|
2287
|
+
"description": "Restores a row marked for removal (`editMode=\"batch\"`)."
|
|
2288
|
+
},
|
|
2289
|
+
{
|
|
2290
|
+
"kind": "method",
|
|
2291
|
+
"name": "saveChanges",
|
|
2292
|
+
"return": {
|
|
2293
|
+
"type": {
|
|
2294
|
+
"text": "Promise<boolean>"
|
|
2295
|
+
}
|
|
2296
|
+
},
|
|
2297
|
+
"description": "Commits the open editor, validates and saves every pending change\n(`u-grid-row-validating`, `u-grid-saving`, `u-grid-save`). Resolves\n`true` when saved (or nothing was pending)."
|
|
2298
|
+
},
|
|
2299
|
+
{
|
|
2300
|
+
"kind": "method",
|
|
2301
|
+
"name": "discardChanges",
|
|
2302
|
+
"return": {
|
|
2303
|
+
"type": {
|
|
2304
|
+
"text": "void"
|
|
2305
|
+
}
|
|
2306
|
+
},
|
|
2307
|
+
"description": "Closes the editor and discards every pending change (`u-grid-edit-cancel` when there was any)."
|
|
2308
|
+
},
|
|
2309
|
+
{
|
|
2310
|
+
"kind": "method",
|
|
2311
|
+
"name": "hasChanges",
|
|
2312
|
+
"return": {
|
|
2313
|
+
"type": {
|
|
2314
|
+
"text": "boolean"
|
|
2315
|
+
}
|
|
2316
|
+
},
|
|
2317
|
+
"description": "Whether there are pending changes (or an editor with a changed value)."
|
|
2318
|
+
},
|
|
2319
|
+
{
|
|
2320
|
+
"kind": "method",
|
|
2321
|
+
"name": "getChanges",
|
|
2322
|
+
"return": {
|
|
2323
|
+
"type": {
|
|
2324
|
+
"text": "GridEditChange[]"
|
|
2325
|
+
}
|
|
2326
|
+
},
|
|
2327
|
+
"description": "The pending changes, in the order they started (copies). The value of an open editor is not included until committed."
|
|
2328
|
+
},
|
|
2329
|
+
{
|
|
2330
|
+
"kind": "method",
|
|
2331
|
+
"name": "getExportData",
|
|
2332
|
+
"return": {
|
|
2333
|
+
"type": {
|
|
2334
|
+
"text": "Promise<GridExportData>"
|
|
2335
|
+
}
|
|
2336
|
+
},
|
|
2337
|
+
"parameters": [
|
|
2338
|
+
{
|
|
2339
|
+
"name": "options",
|
|
2340
|
+
"default": "{}",
|
|
2341
|
+
"type": {
|
|
2342
|
+
"text": "GridExportOptions"
|
|
2343
|
+
}
|
|
2344
|
+
}
|
|
2345
|
+
],
|
|
2346
|
+
"description": "The columns and rows the user sees, ready to build any file (Excel, PDF):\nvisible exportable columns in the current order, filter, sorting, groups\n(collapsed ones included) and summaries. The state is read when called;\nrows are built in time slices, so a million rows do not freeze the page.\nWith a `dataSource` whose server pages or groups, only the rows already\nloaded are exported (in screen order, without group rows; totals from the\nserver): ask the server for the full file instead."
|
|
2347
|
+
},
|
|
2348
|
+
{
|
|
2349
|
+
"kind": "method",
|
|
2350
|
+
"name": "exportCsv",
|
|
2351
|
+
"return": {
|
|
2352
|
+
"type": {
|
|
2353
|
+
"text": "Promise<Blob>"
|
|
2354
|
+
}
|
|
2355
|
+
},
|
|
2356
|
+
"parameters": [
|
|
2357
|
+
{
|
|
2358
|
+
"name": "options",
|
|
2359
|
+
"default": "{}",
|
|
2360
|
+
"type": {
|
|
2361
|
+
"text": "GridCsvOptions"
|
|
2362
|
+
}
|
|
2363
|
+
}
|
|
2364
|
+
],
|
|
2365
|
+
"description": "CSV (RFC 4180) of what the user sees (see `getExportData`): formatted\ntexts, UTF-8 with BOM, `;` as separator in languages with a decimal\ncomma, cells that a spreadsheet would run as formulas prefixed with `'`."
|
|
2366
|
+
},
|
|
2367
|
+
{
|
|
2368
|
+
"kind": "method",
|
|
2369
|
+
"name": "downloadCsv",
|
|
2370
|
+
"return": {
|
|
2371
|
+
"type": {
|
|
2372
|
+
"text": "Promise<void>"
|
|
2373
|
+
}
|
|
2374
|
+
},
|
|
2375
|
+
"parameters": [
|
|
2376
|
+
{
|
|
2377
|
+
"name": "options",
|
|
2378
|
+
"default": "{}",
|
|
2379
|
+
"type": {
|
|
2380
|
+
"text": "GridCsvDownloadOptions"
|
|
2381
|
+
}
|
|
2382
|
+
}
|
|
2383
|
+
],
|
|
2384
|
+
"description": "Builds the CSV (`exportCsv`) and downloads it as `fileName` (default `export.csv`)."
|
|
2385
|
+
},
|
|
2386
|
+
{
|
|
2387
|
+
"kind": "method",
|
|
2388
|
+
"name": "getCellRanges",
|
|
2389
|
+
"return": {
|
|
2390
|
+
"type": {
|
|
2391
|
+
"text": "GridCellRange[]"
|
|
2392
|
+
}
|
|
2393
|
+
},
|
|
2394
|
+
"description": "Ranges of selected cells, in creation order (the last one is the active range). A copy."
|
|
2395
|
+
},
|
|
2396
|
+
{
|
|
2397
|
+
"kind": "method",
|
|
2398
|
+
"name": "selectCellRange",
|
|
2399
|
+
"return": {
|
|
2400
|
+
"type": {
|
|
2401
|
+
"text": "boolean"
|
|
2402
|
+
}
|
|
2403
|
+
},
|
|
2404
|
+
"parameters": [
|
|
2405
|
+
{
|
|
2406
|
+
"name": "range",
|
|
2407
|
+
"type": {
|
|
2408
|
+
"text": "GridCellRangeInit"
|
|
2409
|
+
}
|
|
2410
|
+
},
|
|
2411
|
+
{
|
|
2412
|
+
"name": "options",
|
|
2413
|
+
"default": "{}",
|
|
2414
|
+
"type": {
|
|
2415
|
+
"text": "{ append?: boolean }"
|
|
2416
|
+
}
|
|
2417
|
+
}
|
|
2418
|
+
],
|
|
2419
|
+
"description": "Selects a range of data cells (`startRowIndex`/`endRowIndex` as in\n`getRowIndex`; columns by definition, `name` or `path`). With `append`\n(`cell-selection-mode=\"multiple\"`) it is added to the current ranges;\notherwise it replaces them. The active cell moves to the `end` corner\n(`u-grid-focus-change` with `source: 'api'`) without moving the DOM focus.\nReturns `false` (nothing changes) when the mode is `none`, a column is\nnot a visible data column, a row is not a data row of the displayed body,\nor the range is a single cell without `append`."
|
|
2420
|
+
},
|
|
2421
|
+
{
|
|
2422
|
+
"kind": "method",
|
|
2423
|
+
"name": "clearCellRanges",
|
|
2424
|
+
"return": {
|
|
2425
|
+
"type": {
|
|
2426
|
+
"text": "void"
|
|
2427
|
+
}
|
|
2428
|
+
},
|
|
2429
|
+
"description": "Clears the cell ranges (fires `u-grid-cell-range-change` if there were any)."
|
|
2430
|
+
},
|
|
2431
|
+
{
|
|
2432
|
+
"kind": "method",
|
|
2433
|
+
"name": "getCellRangeSummary",
|
|
2434
|
+
"return": {
|
|
2435
|
+
"type": {
|
|
2436
|
+
"text": "Promise<GridCellRangeSummary>"
|
|
2437
|
+
}
|
|
2438
|
+
},
|
|
2439
|
+
"parameters": [
|
|
2440
|
+
{
|
|
2441
|
+
"name": "options",
|
|
2442
|
+
"default": "{}",
|
|
2443
|
+
"type": {
|
|
2444
|
+
"text": "{ signal?: AbortSignal }"
|
|
2445
|
+
}
|
|
2446
|
+
}
|
|
2447
|
+
],
|
|
2448
|
+
"description": "Count, sum and average of the selected cells (each cell once), computed\nin slices so that millions of cells do not block the page. It reads the\nranges at the call; rejects only through `signal`, with its `reason`\n(an `AbortError` by default).\nRows not loaded yet (remote data source) are left out (`complete: false`)."
|
|
2449
|
+
},
|
|
2450
|
+
{
|
|
2451
|
+
"kind": "method",
|
|
2452
|
+
"name": "getRowIndex",
|
|
2453
|
+
"return": {
|
|
2454
|
+
"type": {
|
|
2455
|
+
"text": "number"
|
|
2456
|
+
}
|
|
2457
|
+
},
|
|
2458
|
+
"parameters": [
|
|
2459
|
+
{
|
|
2460
|
+
"name": "rowKey",
|
|
2461
|
+
"type": {
|
|
2462
|
+
"text": "unknown"
|
|
2463
|
+
}
|
|
2464
|
+
}
|
|
2465
|
+
],
|
|
2466
|
+
"description": "Position of the data row `rowKey` in the displayed body (the index used\nby `GridCellRange`; the current page with `paging`); `-1` when the row is\nnot displayed (filtered out, collapsed group, other page, not loaded)."
|
|
2467
|
+
},
|
|
2468
|
+
{
|
|
2469
|
+
"kind": "method",
|
|
2470
|
+
"name": "getRowKey",
|
|
2471
|
+
"return": {
|
|
2472
|
+
"type": {
|
|
2473
|
+
"text": "unknown"
|
|
2474
|
+
}
|
|
2475
|
+
},
|
|
2476
|
+
"parameters": [
|
|
2477
|
+
{
|
|
2478
|
+
"name": "rowIndex",
|
|
2479
|
+
"type": {
|
|
2480
|
+
"text": "number"
|
|
2481
|
+
}
|
|
2482
|
+
}
|
|
2483
|
+
],
|
|
2484
|
+
"description": "Key of the data row at `rowIndex` (see `getRowIndex`); `undefined` for group, detail and footer rows and rows not loaded."
|
|
2485
|
+
},
|
|
2486
|
+
{
|
|
2487
|
+
"kind": "method",
|
|
2488
|
+
"name": "focus",
|
|
2489
|
+
"return": {
|
|
2490
|
+
"type": {
|
|
2491
|
+
"text": "void"
|
|
2492
|
+
}
|
|
2493
|
+
},
|
|
2494
|
+
"parameters": [
|
|
2495
|
+
{
|
|
2496
|
+
"name": "options",
|
|
2497
|
+
"optional": true,
|
|
2498
|
+
"type": {
|
|
2499
|
+
"text": "FocusOptions"
|
|
2500
|
+
}
|
|
2501
|
+
}
|
|
2502
|
+
],
|
|
2503
|
+
"description": "Moves the focus to the active cell of the grid (the one keyboard navigation starts from)."
|
|
2504
|
+
},
|
|
2505
|
+
{
|
|
2506
|
+
"kind": "method",
|
|
2507
|
+
"name": "getAdaptiveColumns",
|
|
2508
|
+
"return": {
|
|
2509
|
+
"type": {
|
|
2510
|
+
"text": "GridColumnDef[]"
|
|
2511
|
+
}
|
|
2512
|
+
},
|
|
2513
|
+
"description": "Columns hidden now because the grid is too narrow (`autoHideColumns`),\nin column order: their values are in the row details. A copy; `[]` when\n`autoHideColumns` is off, before the first layout and on the server."
|
|
2514
|
+
},
|
|
2515
|
+
{
|
|
2516
|
+
"kind": "method",
|
|
2517
|
+
"name": "cancelExport",
|
|
2518
|
+
"return": {
|
|
2519
|
+
"type": {
|
|
2520
|
+
"text": "void"
|
|
2521
|
+
}
|
|
2522
|
+
},
|
|
2523
|
+
"description": "Cancels the export started from the export UI (toolbar, row menu), if\nany: the exporter gets an aborted `signal`; no `u-grid-export-error`; the\ngrid announces \"Export canceled\"."
|
|
2524
|
+
},
|
|
2525
|
+
{
|
|
2526
|
+
"kind": "method",
|
|
2527
|
+
"name": "copySelection",
|
|
2528
|
+
"return": {
|
|
2529
|
+
"type": {
|
|
2530
|
+
"text": "Promise<boolean>"
|
|
2531
|
+
}
|
|
2532
|
+
},
|
|
2533
|
+
"description": "Copies like Ctrl/Cmd+C: the cell ranges, else the selected rows (current\norder and filter), else the active cell — TSV and an HTML table through the\nasynchronous Clipboard API. Fires `u-grid-copying` (`source: 'api'`).\nResolves `false` when there is nothing to copy, `clipboardMode` is\n`none`, the listener canceled without setting data, the browser\ndenied the write, or the cell ranges exceed the cell limit (announced). Browsers need a user activation: call it inside the\nuser's gesture (click or key handler)."
|
|
2534
|
+
},
|
|
2535
|
+
{
|
|
2536
|
+
"kind": "method",
|
|
2537
|
+
"name": "openContextMenu",
|
|
2538
|
+
"return": {
|
|
2539
|
+
"type": {
|
|
2540
|
+
"text": "boolean"
|
|
2541
|
+
}
|
|
2542
|
+
},
|
|
2543
|
+
"parameters": [
|
|
2544
|
+
{
|
|
2545
|
+
"name": "target",
|
|
2546
|
+
"type": {
|
|
2547
|
+
"text": "{ rowKey: unknown; column?: GridColumnDef } | { column: GridColumnDef } | { groupPath: GridGroupPath }"
|
|
2548
|
+
}
|
|
2549
|
+
},
|
|
2550
|
+
{
|
|
2551
|
+
"name": "anchor",
|
|
2552
|
+
"optional": true,
|
|
2553
|
+
"type": {
|
|
2554
|
+
"text": "HTMLElement | null"
|
|
2555
|
+
}
|
|
2556
|
+
}
|
|
2557
|
+
],
|
|
2558
|
+
"description": "Opens the context menu (built-in items and `u-grid-context-menu-opening`)\nof a data row (`{ rowKey, column? }`), a column header (`{ column }`) or\na group row (`{ groupPath }`) — e.g. from a \"⋯\" button in a cell\n`renderer`. Under `anchor` (or the cell); the focus goes back to `anchor`\n(or the cell). Returns `false` when canceled, empty, the row or column is\nnot shown, or before the first render. `rowKey`: body rows only; on a\nfull-width row `column` is ignored."
|
|
2559
|
+
},
|
|
2560
|
+
{
|
|
2561
|
+
"kind": "method",
|
|
2562
|
+
"name": "closeContextMenu",
|
|
2563
|
+
"return": {
|
|
2564
|
+
"type": {
|
|
2565
|
+
"text": "void"
|
|
2566
|
+
}
|
|
2567
|
+
},
|
|
2568
|
+
"description": "Closes the context menu (no focus change)."
|
|
2569
|
+
}
|
|
2570
|
+
],
|
|
2571
|
+
"events": [
|
|
2572
|
+
{
|
|
2573
|
+
"name": "u-grid-node-expansion-change",
|
|
2574
|
+
"type": {
|
|
2575
|
+
"text": "CustomEvent<GridNodeExpansionChangeEventDetail>"
|
|
2576
|
+
},
|
|
2577
|
+
"description": "A tree node was expanded or collapsed (button, keys, methods); fired when asked, before remote children load."
|
|
2578
|
+
},
|
|
2579
|
+
{
|
|
2580
|
+
"name": "u-grid-state-change",
|
|
2581
|
+
"type": {
|
|
2582
|
+
"text": "CustomEvent<GridStateChangeEventDetail>"
|
|
2583
|
+
},
|
|
2584
|
+
"description": "`state-change-delay` ms after the last change of the user state (`getState`): user gesture, method, property or `setState` — once per burst, only if the state really changed — and after a restore from `stateStorage` (`sources: ['storage']`, not saved back). \"Reset columns\" (column header menu, `sources: ['user']`) and `resetColumns()` fire only this one, no column event."
|
|
2585
|
+
},
|
|
2586
|
+
{
|
|
2587
|
+
"name": "u-grid-page-change",
|
|
2588
|
+
"type": {
|
|
2589
|
+
"text": "CustomEvent<GridPageChangeEventDetail>"
|
|
2590
|
+
},
|
|
2591
|
+
"description": "The page or page size changed: pager, PageUp/PageDown, a filter gesture (back to the first page) or a clamp after the rows shrank (`source` of the change that caused it). Not the `pageIndex`/`pageSize` setters."
|
|
2592
|
+
},
|
|
2593
|
+
{
|
|
2594
|
+
"name": "u-grid-row-expansion-change",
|
|
2595
|
+
"type": {
|
|
2596
|
+
"text": "CustomEvent<GridRowExpansionChangeEventDetail>"
|
|
2597
|
+
},
|
|
2598
|
+
"description": "A detail row was expanded or collapsed (toggle, keyboard, `expandRow`/`collapseRow`, a row edit or `focusCell`/`editCell` that opened the details of a column hidden by `autoHideColumns`; not `autoExpandRows`)."
|
|
2599
|
+
},
|
|
2600
|
+
{
|
|
2601
|
+
"name": "u-grid-group-expansion-change",
|
|
2602
|
+
"type": {
|
|
2603
|
+
"text": "CustomEvent<GridGroupExpansionChangeEventDetail>"
|
|
2604
|
+
},
|
|
2605
|
+
"description": "After groups were expanded or collapsed (user or API)."
|
|
2606
|
+
},
|
|
2607
|
+
{
|
|
2608
|
+
"name": "u-grid-group-change",
|
|
2609
|
+
"type": {
|
|
2610
|
+
"text": "CustomEvent<GridGroupEventDetail>"
|
|
2611
|
+
},
|
|
2612
|
+
"description": "After the grouping changed (user — drag, Ctrl+G, group panel or column header menu — or API)."
|
|
2613
|
+
},
|
|
2614
|
+
{
|
|
2615
|
+
"name": "u-grid-edit-starting",
|
|
2616
|
+
"type": {
|
|
2617
|
+
"text": "CustomEvent<GridEditStartingEventDetail>"
|
|
2618
|
+
},
|
|
2619
|
+
"description": "Before a cell editor (or a row, `editMode=\"row\"`) opens (user or API). Cancelable."
|
|
2620
|
+
},
|
|
2621
|
+
{
|
|
2622
|
+
"name": "u-grid-edit-cancel",
|
|
2623
|
+
"type": {
|
|
2624
|
+
"text": "CustomEvent<GridEditCancelEventDetail>"
|
|
2625
|
+
},
|
|
2626
|
+
"description": "Pending changes were discarded (Esc, Cancel, Discard changes, `discardChanges`)."
|
|
2627
|
+
},
|
|
2628
|
+
{
|
|
2629
|
+
"name": "u-grid-row-adding",
|
|
2630
|
+
"type": {
|
|
2631
|
+
"text": "CustomEvent<GridRowAddingEventDetail>"
|
|
2632
|
+
},
|
|
2633
|
+
"description": "Before a new row is added (Add row button or `addRow`): set its initial values in `detail.data`. Cancelable."
|
|
2634
|
+
},
|
|
2635
|
+
{
|
|
2636
|
+
"name": "u-grid-row-removing",
|
|
2637
|
+
"type": {
|
|
2638
|
+
"text": "CustomEvent<GridRowRemovingEventDetail>"
|
|
2639
|
+
},
|
|
2640
|
+
"description": "Before a row is deleted or marked for removal (Delete button, before the confirmation, or `removeRow`). Cancelable."
|
|
2641
|
+
},
|
|
2642
|
+
{
|
|
2643
|
+
"name": "u-grid-saving",
|
|
2644
|
+
"type": {
|
|
2645
|
+
"text": "CustomEvent<GridSavingEventDetail>"
|
|
2646
|
+
},
|
|
2647
|
+
"description": "Before saving the pending changes: save on the server with `waitUntil(promise)`. Cancelable: the changes stay pending."
|
|
2648
|
+
},
|
|
2649
|
+
{
|
|
2650
|
+
"name": "u-grid-save-error",
|
|
2651
|
+
"type": {
|
|
2652
|
+
"text": "CustomEvent<GridSaveErrorEventDetail>"
|
|
2653
|
+
},
|
|
2654
|
+
"description": "The `waitUntil` promise rejected; the changes stay pending."
|
|
2655
|
+
},
|
|
2656
|
+
{
|
|
2657
|
+
"name": "u-grid-save",
|
|
2658
|
+
"type": {
|
|
2659
|
+
"text": "CustomEvent<GridSaveEventDetail>"
|
|
2660
|
+
},
|
|
2661
|
+
"description": "The changes were saved and applied (`items` copy or `dataSource.applyChanges`)."
|
|
2662
|
+
},
|
|
2663
|
+
{
|
|
2664
|
+
"name": "u-grid-cell-range-change",
|
|
2665
|
+
"type": {
|
|
2666
|
+
"text": "CustomEvent<GridCellRangeChangeEventDetail>"
|
|
2667
|
+
},
|
|
2668
|
+
"description": "The cell ranges changed: user gesture (once, on release, for a drag), `selectCellRange`/`clearCellRanges`, or the grid cleared them because rows or columns changed (`source` of the cause: a gesture, or `api` for methods and setters such as `items`, `columns`, `cellSelectionMode`)."
|
|
2669
|
+
},
|
|
2670
|
+
{
|
|
2671
|
+
"name": "u-grid-pasting",
|
|
2672
|
+
"type": {
|
|
2673
|
+
"text": "CustomEvent<GridPasteEventDetail>"
|
|
2674
|
+
},
|
|
2675
|
+
"description": "Before Ctrl/Cmd+V or the cell menu \"Paste\" pastes into editable cells (`clipboard-mode=\"copy-paste\"`; user only). Cancelable: nothing changes (on Ctrl/Cmd+V the native paste goes on)."
|
|
2676
|
+
},
|
|
2677
|
+
{
|
|
2678
|
+
"name": "u-grid-adaptive-columns-change",
|
|
2679
|
+
"type": {
|
|
2680
|
+
"text": "CustomEvent<GridAdaptiveColumnsChangeEventDetail>"
|
|
2681
|
+
},
|
|
2682
|
+
"description": "The columns hidden for lack of space changed (`autoHideColumns`: the grid width, the columns, their widths or the property itself), after the render. Layout only: no `source`, not cancelable."
|
|
2683
|
+
},
|
|
2684
|
+
{
|
|
2685
|
+
"name": "u-grid-column-reorder",
|
|
2686
|
+
"type": {
|
|
2687
|
+
"text": "CustomEvent<GridColumnReorderEventDetail>"
|
|
2688
|
+
},
|
|
2689
|
+
"description": "The user moved a column or a band (drag and drop on the header or in the column chooser, Alt+Shift+←/→ on the header, Alt+Shift+↑/↓ in the column chooser, or the column header menu)."
|
|
2690
|
+
},
|
|
2691
|
+
{
|
|
2692
|
+
"name": "u-grid-column-visibility-change",
|
|
2693
|
+
"type": {
|
|
2694
|
+
"text": "CustomEvent<GridColumnVisibilityChangeEventDetail>"
|
|
2695
|
+
},
|
|
2696
|
+
"description": "The user showed or hid a column (or a band) in the column chooser (one event per own change)."
|
|
2697
|
+
},
|
|
2698
|
+
{
|
|
2699
|
+
"name": "u-grid-column-fixed-change",
|
|
2700
|
+
"type": {
|
|
2701
|
+
"text": "CustomEvent<GridColumnFixedChangeEventDetail>"
|
|
2702
|
+
},
|
|
2703
|
+
"description": "The user fixed or unfixed a column (or a top-level band) from the column header menu (\"Pin column\")."
|
|
2704
|
+
},
|
|
2705
|
+
{
|
|
2706
|
+
"name": "u-grid-column-resize",
|
|
2707
|
+
"type": {
|
|
2708
|
+
"text": "CustomEvent<GridColumnResizeEventDetail>"
|
|
2709
|
+
},
|
|
2710
|
+
"description": "The user finished resizing a column (pointer release, keyboard, double-click auto-size or the column header menu)."
|
|
2711
|
+
},
|
|
2712
|
+
{
|
|
2713
|
+
"name": "u-grid-load",
|
|
2714
|
+
"type": {
|
|
2715
|
+
"text": "CustomEvent<GridLoadEventDetail>"
|
|
2716
|
+
},
|
|
2717
|
+
"description": "A `dataSource.load` call resolved (not fired for aborted calls)."
|
|
2718
|
+
},
|
|
2719
|
+
{
|
|
2720
|
+
"name": "u-grid-load-error",
|
|
2721
|
+
"type": {
|
|
2722
|
+
"text": "CustomEvent<GridLoadErrorEventDetail>"
|
|
2723
|
+
},
|
|
2724
|
+
"description": "A `dataSource.load` call rejected (not fired for aborted calls); the grid shows the error bar with \"Retry\"."
|
|
2725
|
+
},
|
|
2726
|
+
{
|
|
2727
|
+
"name": "u-grid-filter-change",
|
|
2728
|
+
"type": {
|
|
2729
|
+
"text": "CustomEvent<GridFilterEventDetail>"
|
|
2730
|
+
},
|
|
2731
|
+
"description": "After the user filtered (filter row, header filter, search panel) or `clearFilter()` ran. Setting `filterValue`/`searchText` does not fire it."
|
|
2732
|
+
},
|
|
2733
|
+
{
|
|
2734
|
+
"name": "u-grid-sort-change",
|
|
2735
|
+
"type": {
|
|
2736
|
+
"text": "CustomEvent<GridSortEventDetail>"
|
|
2737
|
+
},
|
|
2738
|
+
"description": "After the sorting changed (user or API)."
|
|
2739
|
+
},
|
|
2740
|
+
{
|
|
2741
|
+
"name": "u-grid-selection-change",
|
|
2742
|
+
"type": {
|
|
2743
|
+
"text": "CustomEvent<GridSelectionChangeEventDetail>"
|
|
2744
|
+
},
|
|
2745
|
+
"description": "The selection changed: user gesture, selection method, `multiple` → `single` (not the `selectedKeys` setter)."
|
|
2746
|
+
},
|
|
2747
|
+
{
|
|
2748
|
+
"name": "u-grid-focus-change",
|
|
2749
|
+
"type": {
|
|
2750
|
+
"text": "CustomEvent<GridFocusChangeEventDetail>"
|
|
2751
|
+
},
|
|
2752
|
+
"description": "The active cell changed: keyboard, click, `focusCell`, `selectCellRange` (not the `focusedRowKey` setter; a relocation fires only when the active column hides or comes back with `autoHideColumns`, `source: 'api'`)."
|
|
2753
|
+
},
|
|
2754
|
+
{
|
|
2755
|
+
"name": "u-grid-exporting",
|
|
2756
|
+
"type": {
|
|
2757
|
+
"text": "CustomEvent<GridExportingEventDetail>"
|
|
2758
|
+
},
|
|
2759
|
+
"description": "Before an export started from the UI (toolbar, \"More actions\", row menu). Cancelable: export your own way (e.g. another format)."
|
|
2760
|
+
},
|
|
2761
|
+
{
|
|
2762
|
+
"name": "u-grid-export",
|
|
2763
|
+
"type": {
|
|
2764
|
+
"text": "CustomEvent<GridExportEventDetail>"
|
|
2765
|
+
},
|
|
2766
|
+
"description": "An export started from the UI finished."
|
|
2767
|
+
},
|
|
2768
|
+
{
|
|
2769
|
+
"name": "u-grid-export-error",
|
|
2770
|
+
"type": {
|
|
2771
|
+
"text": "CustomEvent<GridExportErrorEventDetail>"
|
|
2772
|
+
},
|
|
2773
|
+
"description": "An export started from the UI failed (`detail.error`). Not fired when the export is canceled (`cancelExport()`, \"Cancel export\", an exporter rejecting with an `AbortError`)."
|
|
2774
|
+
},
|
|
2775
|
+
{
|
|
2776
|
+
"name": "u-grid-context-menu-opening",
|
|
2777
|
+
"type": {
|
|
2778
|
+
"text": "CustomEvent<GridContextMenuOpeningEventDetail>"
|
|
2779
|
+
},
|
|
2780
|
+
"description": "Before a context menu opens (header, group panel, row, group row: right-click, long press, Shift+F10, the context menu key, the header \"⋮\" button, `openContextMenu`): change `detail.menuItems` in place. Cancelable; canceled or empty, the browser menu stays."
|
|
2781
|
+
},
|
|
2782
|
+
{
|
|
2783
|
+
"name": "u-grid-copying",
|
|
2784
|
+
"type": {
|
|
2785
|
+
"text": "CustomEvent<GridCopyEventDetail>"
|
|
2786
|
+
},
|
|
2787
|
+
"description": "Before Ctrl/Cmd+C, the menu Copy items or `copySelection()` write the cell ranges, the selected rows (or the focused cell) to the clipboard (`source: 'user' | 'api'`). Cancelable."
|
|
2788
|
+
},
|
|
2789
|
+
{
|
|
2790
|
+
"type": {
|
|
2791
|
+
"text": "CustomEvent<GridSortEventDetail>"
|
|
2792
|
+
},
|
|
2793
|
+
"description": "Before the sorting changes (user or API). Cancelable.",
|
|
2794
|
+
"name": "u-grid-sorting"
|
|
2795
|
+
},
|
|
2796
|
+
{
|
|
2797
|
+
"type": {
|
|
2798
|
+
"text": "CustomEvent<GridLoadingEventDetail>"
|
|
2799
|
+
},
|
|
2800
|
+
"description": "Before each call to `dataSource.load` (`dataSource` only). Cancelable: the call is skipped and the rows shown stay.",
|
|
2801
|
+
"name": "u-grid-loading"
|
|
2802
|
+
},
|
|
2803
|
+
{
|
|
2804
|
+
"type": {
|
|
2805
|
+
"text": "CustomEvent<GridRowValidatingEventDetail>"
|
|
2806
|
+
},
|
|
2807
|
+
"description": "Before saving, for each added or edited row. Cancelable: `preventDefault()`/`setError` marks the row invalid.",
|
|
2808
|
+
"name": "u-grid-row-validating"
|
|
2809
|
+
}
|
|
2810
|
+
],
|
|
2811
|
+
"attributes": [
|
|
2812
|
+
{
|
|
2813
|
+
"name": "auto-expand-groups",
|
|
2814
|
+
"type": {
|
|
2815
|
+
"text": "boolean"
|
|
2816
|
+
},
|
|
2817
|
+
"default": "false",
|
|
2818
|
+
"description": "Groups start expanded. INITIAL default: afterwards expansion is grid\nstate (`expandGroup`, `expandAllGroups`…); changing it resets that state.",
|
|
2819
|
+
"fieldName": "autoExpandGroups"
|
|
2820
|
+
},
|
|
2821
|
+
{
|
|
2822
|
+
"name": "auto-expand-rows",
|
|
2823
|
+
"type": {
|
|
2824
|
+
"text": "boolean"
|
|
2825
|
+
},
|
|
2826
|
+
"default": "false",
|
|
2827
|
+
"description": "Detail rows start expanded (also the row details of `autoHideColumns`).\nINITIAL default: afterwards expansion is grid state (`expandRow`,\n`collapseRow`); changing it resets that state (no event).",
|
|
2828
|
+
"fieldName": "autoExpandRows"
|
|
2829
|
+
},
|
|
2830
|
+
{
|
|
2831
|
+
"name": "auto-hide-columns",
|
|
2832
|
+
"type": {
|
|
2833
|
+
"text": "boolean"
|
|
2834
|
+
},
|
|
2835
|
+
"default": "false",
|
|
2836
|
+
"description": "Hides columns automatically when the grid itself is too narrow for them\n(its own width, not the window's), by `hidingPriority` (or from the last\ncolumn); fixed columns never hide and at least one column stays. The\nvalues of the hidden (\"adaptive\") columns move to the row details: the\ntoggle column appears and `expandRow`/`collapseRow` work even without\n`detailRenderer`. Layout only: hidden columns stay visible in the column\nchooser, `getState()`, exports, row copies, the search and the filters.\nSee `getAdaptiveColumns()` and `u-grid-adaptive-columns-change`.",
|
|
2837
|
+
"fieldName": "autoHideColumns"
|
|
2838
|
+
},
|
|
2839
|
+
{
|
|
2840
|
+
"name": "key-expr",
|
|
2841
|
+
"type": {
|
|
2842
|
+
"text": "string"
|
|
2843
|
+
},
|
|
2844
|
+
"description": "Row key: a property `path` (dots allowed, attribute `key-expr`) or a\nfunction returning the key of an item. Selection (`selectedKeys`), focus\n(`focusedRowKey`, `focusCell`) and events use it; without it the key is\nthe item object itself. With a key, replacing `items` with new objects\nkeeps the selection, the focus and the group expansion. Changing it\nconverts the selection to the new keys (keys whose row is gone are\ndropped, firing `u-grid-selection-change` with `source: 'api'`).",
|
|
2845
|
+
"default": "null",
|
|
2846
|
+
"fieldName": "keyExpr"
|
|
2847
|
+
},
|
|
2848
|
+
{
|
|
2849
|
+
"name": "remote-operations",
|
|
2850
|
+
"type": {
|
|
2851
|
+
"text": "boolean"
|
|
2852
|
+
},
|
|
2853
|
+
"default": "false",
|
|
2854
|
+
"description": "What the server does with `dataSource` (attribute `remote-operations`:\nall or nothing). `false` (default): one call loads every row and the\ngrid filters, sorts, groups, summarizes and pages. `true`: everything on\nthe server. An object picks operations; remote `paging` or `grouping`\nalso turn on remote `filtering`, `sorting` and `summary` (paging also\ngrouping), with a console warning. Remote operations use the column\n`path` (not `valueGetter`, `comparator` nor `groupValueGetter`).",
|
|
2855
|
+
"fieldName": "remoteOperations"
|
|
2856
|
+
},
|
|
2857
|
+
{
|
|
2858
|
+
"name": "reshape-on-changes",
|
|
2859
|
+
"type": {
|
|
2860
|
+
"text": "boolean"
|
|
2861
|
+
},
|
|
2862
|
+
"default": "false",
|
|
2863
|
+
"description": "Makes `applyChanges()` re-apply filtering, sorting, grouping and\nsummaries (attribute `reshape-on-changes`): updated rows move to their\nsorted place, rows that stop matching the filter leave and added rows go\nto their sorted place instead of the end. Several calls in one frame are\nreshaped once. While keyboard focus is in the grid body or an editor is\nopen, values still update in place and the rows only move after focus\nleaves the body or the edit ends. With remote paging or grouping it\nreloads the rows in view from the server (one reload at a time). Only\n`applyChanges()`: saved edits keep their position. `false` (default):\nchanges are applied in place.",
|
|
2864
|
+
"fieldName": "reshapeOnChanges"
|
|
2865
|
+
},
|
|
2866
|
+
{
|
|
2867
|
+
"name": "tree-mode",
|
|
2868
|
+
"type": {
|
|
2869
|
+
"text": "GridTreeMode"
|
|
2870
|
+
},
|
|
2871
|
+
"default": "'none'",
|
|
2872
|
+
"description": "Tree data: `none` (default) shows `items` as a list; `nested` reads the\nchildren of each item by `childrenExpr` (`items` are the roots); `flat`\nbuilds the tree from `keyExpr` + `parentKeyExpr` (both needed). Grouping,\nmaster-detail and `rowRenderer` are ignored in a tree (console warning).\nWith `dataSource`, only `flat` (children load on demand with\n`hasChildrenExpr`).",
|
|
2873
|
+
"fieldName": "treeMode"
|
|
2874
|
+
},
|
|
2875
|
+
{
|
|
2876
|
+
"name": "children-expr",
|
|
2877
|
+
"type": {
|
|
2878
|
+
"text": "GridChildrenExpr | null"
|
|
2879
|
+
},
|
|
2880
|
+
"default": "'children'",
|
|
2881
|
+
"description": "Children of an item with `treeMode=\"nested\"`: a property `path` (attribute `children-expr`) or a function.",
|
|
2882
|
+
"fieldName": "childrenExpr"
|
|
2883
|
+
},
|
|
2884
|
+
{
|
|
2885
|
+
"name": "parent-key-expr",
|
|
2886
|
+
"type": {
|
|
2887
|
+
"text": "GridParentKeyExpr | null"
|
|
2888
|
+
},
|
|
2889
|
+
"default": "null",
|
|
2890
|
+
"description": "Key of the parent of an item with `treeMode=\"flat\"`: a property `path`\n(attribute `parent-key-expr`) or a function. `rootParentKey`, `null`,\n`undefined` or a key with no item = a root node.",
|
|
2891
|
+
"fieldName": "parentKeyExpr"
|
|
2892
|
+
},
|
|
2893
|
+
{
|
|
2894
|
+
"name": "root-parent-key",
|
|
2895
|
+
"type": {
|
|
2896
|
+
"text": "GridRowKey | null"
|
|
2897
|
+
},
|
|
2898
|
+
"default": "null",
|
|
2899
|
+
"description": "Parent key of the root nodes with `treeMode=\"flat\"` (also asked to a\n`dataSource` as the first `parentKeys`). Compared by its text (the\nattribute is text): `\"0\"` matches `0`.",
|
|
2900
|
+
"fieldName": "rootParentKey"
|
|
2901
|
+
},
|
|
2902
|
+
{
|
|
2903
|
+
"name": "has-children-expr",
|
|
2904
|
+
"type": {
|
|
2905
|
+
"text": "GridHasChildrenExpr | null"
|
|
2906
|
+
},
|
|
2907
|
+
"default": "null",
|
|
2908
|
+
"description": "With `dataSource`: whether a node has children not loaded yet (a\nproperty `path`, attribute `has-children-expr`, or a function); its\nchildren load when it expands.",
|
|
2909
|
+
"fieldName": "hasChildrenExpr"
|
|
2910
|
+
},
|
|
2911
|
+
{
|
|
2912
|
+
"name": "tree-column",
|
|
2913
|
+
"type": {
|
|
2914
|
+
"text": "GridColumnRef | null"
|
|
2915
|
+
},
|
|
2916
|
+
"default": "null",
|
|
2917
|
+
"description": "Column with the indent and the expand button (`name` or `path`, or the\ncolumn object). Default: the first visible data column.",
|
|
2918
|
+
"fieldName": "treeColumn"
|
|
2919
|
+
},
|
|
2920
|
+
{
|
|
2921
|
+
"name": "tree-filter-mode",
|
|
2922
|
+
"type": {
|
|
2923
|
+
"text": "GridTreeFilterMode"
|
|
2924
|
+
},
|
|
2925
|
+
"default": "'with-ancestors'",
|
|
2926
|
+
"description": "What filtering and the search show in a tree: `with-ancestors` (default)\nthe matching nodes and their ancestors; `full-branch` also all their\ndescendants; `match-only` only the matching nodes (each under its\nnearest shown ancestor).",
|
|
2927
|
+
"fieldName": "treeFilterMode"
|
|
2928
|
+
},
|
|
2929
|
+
{
|
|
2930
|
+
"name": "auto-expand-nodes",
|
|
2931
|
+
"type": {
|
|
2932
|
+
"text": "boolean"
|
|
2933
|
+
},
|
|
2934
|
+
"default": "false",
|
|
2935
|
+
"description": "Tree nodes start expanded. INITIAL default: afterwards expansion is grid\nstate (`expandNode`, `expandAllNodes`…); changing it resets that state.\nWith `dataSource` it only reaches loaded nodes (no cascade of loads).",
|
|
2936
|
+
"fieldName": "autoExpandNodes"
|
|
2937
|
+
},
|
|
2938
|
+
{
|
|
2939
|
+
"name": "recursive-selection",
|
|
2940
|
+
"type": {
|
|
2941
|
+
"text": "boolean"
|
|
2942
|
+
},
|
|
2943
|
+
"default": "false",
|
|
2944
|
+
"description": "Checking a node checks its descendants; a parent is checked when all its\nchildren are, and mixed when some are. Needs `selectionMode=\"multiple\"`\nand `showCheckboxes` (else ignored, with a console warning). Setting\n`selectedKeys` or `setState` applies the keys as given.",
|
|
2945
|
+
"fieldName": "recursiveSelection"
|
|
2946
|
+
},
|
|
2947
|
+
{
|
|
2948
|
+
"name": "paging",
|
|
2949
|
+
"type": {
|
|
2950
|
+
"text": "boolean"
|
|
2951
|
+
},
|
|
2952
|
+
"default": "false",
|
|
2953
|
+
"description": "Splits the rows into pages (group rows count) and shows the pager below the table.",
|
|
2954
|
+
"fieldName": "paging"
|
|
2955
|
+
},
|
|
2956
|
+
{
|
|
2957
|
+
"name": "page-size",
|
|
2958
|
+
"type": {
|
|
2959
|
+
"text": "number"
|
|
2960
|
+
},
|
|
2961
|
+
"default": "20",
|
|
2962
|
+
"description": "Rows per page; also the block size asked to a remote source in virtual and infinite scrolling. Default `20`.",
|
|
2963
|
+
"fieldName": "pageSize"
|
|
2964
|
+
},
|
|
2965
|
+
{
|
|
2966
|
+
"name": "page-index",
|
|
2967
|
+
"type": {
|
|
2968
|
+
"text": "number"
|
|
2969
|
+
},
|
|
2970
|
+
"description": "Current page (0-based; with `paging`). The pager writes it; out-of-range\nvalues are clamped. Setting it does not fire `u-grid-page-change`.",
|
|
2971
|
+
"default": "0",
|
|
2972
|
+
"fieldName": "pageIndex"
|
|
2973
|
+
},
|
|
2974
|
+
{
|
|
2975
|
+
"name": "page-size-options",
|
|
2976
|
+
"type": {
|
|
2977
|
+
"text": "string"
|
|
2978
|
+
},
|
|
2979
|
+
"default": "[10, 20, 50, 100]",
|
|
2980
|
+
"description": "Page sizes offered by the pager (attribute: a list, `\"10, 20, 50\"`);\nempty hides the selector. Default `[10, 20, 50, 100]`.",
|
|
2981
|
+
"fieldName": "pageSizeOptions"
|
|
2982
|
+
},
|
|
2983
|
+
{
|
|
2984
|
+
"name": "scroll-mode",
|
|
2985
|
+
"type": {
|
|
2986
|
+
"text": "GridScrollMode"
|
|
2987
|
+
},
|
|
2988
|
+
"default": "'virtual'",
|
|
2989
|
+
"description": "`virtual` (default): every row is in the scroll range and a remote\nsource loads the visible blocks. `infinite`: the next block loads when\nthe end is reached (remote paging only; with `paging` the pager wins).",
|
|
2990
|
+
"fieldName": "scrollMode"
|
|
2991
|
+
},
|
|
2992
|
+
{
|
|
2993
|
+
"name": "scroll-container",
|
|
2994
|
+
"type": {
|
|
2995
|
+
"text": "string | null"
|
|
2996
|
+
},
|
|
2997
|
+
"default": "null",
|
|
2998
|
+
"description": "Scrolls the grid with an outer container instead of its own scrollbar:\nthe id of an ANCESTOR of the grid (the first ancestor with this id,\ncrossing shadow boundaries, unlike IDREF attributes), or `window` for\nthe page (wins over an element with `id=\"window\"`). The grid grows to\nits content (do not give it a height), the container scrolls in both\ndirections, and rows and columns are still virtualized by the visible\npart of the container; toolbar, headers, totals, fixed rows and columns\nstick to it. The container's `scroll-padding-top`/`-bottom` offsets\nwhat the page sticks there (an app bar). `<html>` (or the\n`document.scrollingElement`) means the window; `<body>` only when it is\nthe scrolling element. Not found, not an ancestor or empty: a console\nwarning and the grid's own scrolling. An element between the grid and\nthe container that clips or scrolls (`overflow` other than\n`visible`/`clip`) also warns: sticky headers would stick to it. Resolved when\nthe grid connects and when this changes (changing the ancestor's id\nlater does not re-resolve). The attribute alone renders the outer mode\non the server.",
|
|
2999
|
+
"fieldName": "scrollContainer"
|
|
3000
|
+
},
|
|
3001
|
+
{
|
|
3002
|
+
"name": "sort-mode",
|
|
3003
|
+
"type": {
|
|
3004
|
+
"text": "GridSortMode"
|
|
3005
|
+
},
|
|
3006
|
+
"default": "'single'",
|
|
3007
|
+
"description": "How the user sorts by clicking the column headers: `single` (default)\nkeeps one sorted column, `multiple` adds columns with Shift+click and\n`none` disables header sorting (the API still works).",
|
|
3008
|
+
"fieldName": "sortMode"
|
|
3009
|
+
},
|
|
3010
|
+
{
|
|
3011
|
+
"name": "sorting",
|
|
3012
|
+
"type": {
|
|
3013
|
+
"text": "GridSortMode"
|
|
3014
|
+
},
|
|
3015
|
+
"deprecated": "Use `sortMode` (attribute `sort-mode`).",
|
|
3016
|
+
"fieldName": "sorting"
|
|
3017
|
+
},
|
|
3018
|
+
{
|
|
3019
|
+
"name": "row-height",
|
|
3020
|
+
"type": {
|
|
3021
|
+
"text": "number"
|
|
3022
|
+
},
|
|
3023
|
+
"default": "48",
|
|
3024
|
+
"description": "Row height in px, padding included (rows with `wrap` columns or taller content grow; the virtualizer measures them).",
|
|
3025
|
+
"fieldName": "rowHeight"
|
|
3026
|
+
},
|
|
3027
|
+
{
|
|
3028
|
+
"name": "striped",
|
|
3029
|
+
"type": {
|
|
3030
|
+
"text": "boolean"
|
|
3031
|
+
},
|
|
3032
|
+
"default": "false",
|
|
3033
|
+
"description": "Tints even rows.",
|
|
3034
|
+
"fieldName": "striped"
|
|
3035
|
+
},
|
|
3036
|
+
{
|
|
3037
|
+
"name": "show-group-panel",
|
|
3038
|
+
"type": {
|
|
3039
|
+
"text": "boolean"
|
|
3040
|
+
},
|
|
3041
|
+
"default": "true",
|
|
3042
|
+
"description": "Shows the group panel (drop a header there to group). Default `true`; `show-group-panel=\"false\"` hides it.",
|
|
3043
|
+
"fieldName": "showGroupPanel"
|
|
3044
|
+
},
|
|
3045
|
+
{
|
|
3046
|
+
"name": "show-column-headers",
|
|
3047
|
+
"type": {
|
|
3048
|
+
"text": "boolean"
|
|
3049
|
+
},
|
|
3050
|
+
"default": "true",
|
|
3051
|
+
"description": "Shows the column headers. Default `true`; `show-column-headers=\"false\"` hides them.",
|
|
3052
|
+
"fieldName": "showColumnHeaders"
|
|
3053
|
+
},
|
|
3054
|
+
{
|
|
3055
|
+
"name": "show-row-lines",
|
|
3056
|
+
"type": {
|
|
3057
|
+
"text": "boolean"
|
|
3058
|
+
},
|
|
3059
|
+
"default": "true",
|
|
3060
|
+
"description": "Horizontal row separators. Default `true`; `show-row-lines=\"false\"` hides them.",
|
|
3061
|
+
"fieldName": "showRowLines"
|
|
3062
|
+
},
|
|
3063
|
+
{
|
|
3064
|
+
"name": "show-column-lines",
|
|
3065
|
+
"type": {
|
|
3066
|
+
"text": "boolean"
|
|
3067
|
+
},
|
|
3068
|
+
"default": "false",
|
|
3069
|
+
"description": "Vertical column separators.",
|
|
3070
|
+
"fieldName": "showColumnLines"
|
|
3071
|
+
},
|
|
3072
|
+
{
|
|
3073
|
+
"name": "show-group-count",
|
|
3074
|
+
"type": {
|
|
3075
|
+
"text": "boolean"
|
|
3076
|
+
},
|
|
3077
|
+
"default": "true",
|
|
3078
|
+
"description": "Shows the number of rows in group rows (`\"Country: Brazil (3)\"`). Default `true`; `show-group-count=\"false\"` hides it.",
|
|
3079
|
+
"fieldName": "showGroupCount"
|
|
3080
|
+
},
|
|
3081
|
+
{
|
|
3082
|
+
"name": "group-panel-menu",
|
|
3083
|
+
"type": {
|
|
3084
|
+
"text": "boolean"
|
|
3085
|
+
},
|
|
3086
|
+
"default": "true",
|
|
3087
|
+
"description": "Built-in items of the group panel context menu (right-click, long press,\nShift+F10 or the context menu key on a group chip): ungroup, move the\nchip left/right (grouping level), ungroup all, expand/collapse all\ngroups. Default `true`; with `group-panel-menu=\"false\"` the host may\nstill add items through `u-grid-context-menu-opening`.",
|
|
3088
|
+
"fieldName": "groupPanelMenu"
|
|
3089
|
+
},
|
|
3090
|
+
{
|
|
3091
|
+
"name": "column-header-menu",
|
|
3092
|
+
"type": {
|
|
3093
|
+
"text": "boolean"
|
|
3094
|
+
},
|
|
3095
|
+
"default": "true",
|
|
3096
|
+
"description": "Built-in items of the column header menu (the \"⋮\" button, right-click,\nlong press, Shift+F10 or the context menu key on a header): sort, pin\n(a \"Pin column\" submenu), auto-size this or all columns, widen/narrow,\nmove left/right, group by the column, open the column chooser and reset\nthe columns. It is the single-pointer alternative to dragging (WCAG\n2.5.7): with `column-header-menu=\"false\"` the host must provide one\n(it may add items through `u-grid-context-menu-opening`). Only actions\nthat apply to the column are listed; without any, the browser menu is\nkept. Default `true`.",
|
|
3097
|
+
"fieldName": "columnHeaderMenu"
|
|
3098
|
+
},
|
|
3099
|
+
{
|
|
3100
|
+
"name": "show-column-header-menu-button",
|
|
3101
|
+
"type": {
|
|
3102
|
+
"text": "boolean"
|
|
3103
|
+
},
|
|
3104
|
+
"default": "true",
|
|
3105
|
+
"description": "Shows the \"⋮\" button that opens the column header menu in every leaf\nheader with menu items (`column-header-menu`; band menus open by\nright-click, long press, Shift+F10 or the context menu key). It is always visible and takes\nwidth in the header. Default `true`; `show-column-header-menu-button=\"false\"`\nhides it (the menu still opens by right-click, long press, Shift+F10 and\nthe context menu key).",
|
|
3106
|
+
"fieldName": "showColumnHeaderMenuButton"
|
|
3107
|
+
},
|
|
3108
|
+
{
|
|
3109
|
+
"name": "column-fixing",
|
|
3110
|
+
"type": {
|
|
3111
|
+
"text": "boolean"
|
|
3112
|
+
},
|
|
3113
|
+
"default": "true",
|
|
3114
|
+
"description": "Lets the user pin columns to the start or the end (\"Pin column\" in the\ncolumn header menu). Default `true`; `column-fixing=\"false\"` removes the\npin items. Columns pinned by `fixed` stay pinned.",
|
|
3115
|
+
"fieldName": "columnFixing"
|
|
3116
|
+
},
|
|
3117
|
+
{
|
|
3118
|
+
"name": "row-menu",
|
|
3119
|
+
"type": {
|
|
3120
|
+
"text": "boolean"
|
|
3121
|
+
},
|
|
3122
|
+
"default": "false",
|
|
3123
|
+
"description": "Built-in items of the row context menu (right-click, long press,\nShift+F10 or the context menu key on a cell): copy the cell or the\nselected rows, export the selected rows, edit, delete/restore, show/hide\nthe detail; on group rows, expand/collapse and ungroup. On a full-width\nrow (`rowRenderer`) Copy copies the row and there is no Edit; fixed rows\nhave no context menu (nor `u-grid-context-menu-opening`). Default `false`\n(unlike `columnHeaderMenu`/`groupPanelMenu`), so the browser menu of the\ncells stays; the host may still add items through\n`u-grid-context-menu-opening`. With `cell-selection-mode` the cell menu\nopens anyway with its cell range items (the single-pointer alternative to\ndragging); remove them in `u-grid-context-menu-opening` to keep the\nbrowser menu (empty = browser menu). The browser menu is always kept with\nselected text, on editable fields and with Ctrl+right-click.",
|
|
3124
|
+
"fieldName": "rowMenu"
|
|
3125
|
+
},
|
|
3126
|
+
{
|
|
3127
|
+
"name": "export-formats",
|
|
3128
|
+
"type": {
|
|
3129
|
+
"text": "string"
|
|
3130
|
+
},
|
|
3131
|
+
"description": "Formats of the export UI: the toolbar export button and the \"Export\nselected rows\" items of the row menu. Attribute: words separated by\nspaces or commas (`export-formats=\"csv xlsx pdf\"`). `xlsx` needs\n`xlsxExporter` and `pdf` needs `pdfExporter`. Default `[]` (no export\nUI; the export methods always work).",
|
|
3132
|
+
"fieldName": "exportFormats"
|
|
3133
|
+
},
|
|
3134
|
+
{
|
|
3135
|
+
"name": "show-filter-row",
|
|
3136
|
+
"type": {
|
|
3137
|
+
"text": "boolean"
|
|
3138
|
+
},
|
|
3139
|
+
"default": "false",
|
|
3140
|
+
"description": "Shows the filter row below the column headers (an editor and an operation menu per filterable column).",
|
|
3141
|
+
"fieldName": "showFilterRow"
|
|
3142
|
+
},
|
|
3143
|
+
{
|
|
3144
|
+
"name": "show-search-panel",
|
|
3145
|
+
"type": {
|
|
3146
|
+
"text": "boolean"
|
|
3147
|
+
},
|
|
3148
|
+
"default": "false",
|
|
3149
|
+
"description": "Shows the search box in the bar above the table (searches the displayed text of the visible filterable columns).",
|
|
3150
|
+
"fieldName": "showSearchPanel"
|
|
3151
|
+
},
|
|
3152
|
+
{
|
|
3153
|
+
"name": "header-filter",
|
|
3154
|
+
"type": {
|
|
3155
|
+
"text": "boolean"
|
|
3156
|
+
},
|
|
3157
|
+
"default": "false",
|
|
3158
|
+
"description": "Shows a filter button in the headers of filterable columns: a popover with the distinct values.",
|
|
3159
|
+
"fieldName": "headerFilter"
|
|
3160
|
+
},
|
|
3161
|
+
{
|
|
3162
|
+
"name": "search-text",
|
|
3163
|
+
"type": {
|
|
3164
|
+
"text": "string"
|
|
3165
|
+
},
|
|
3166
|
+
"description": "Text of the search panel (case and accent insensitive). Setting it does not fire `u-grid-filter-change`.",
|
|
3167
|
+
"fieldName": "searchText"
|
|
3168
|
+
},
|
|
3169
|
+
{
|
|
3170
|
+
"name": "column-resizing",
|
|
3171
|
+
"type": {
|
|
3172
|
+
"text": "boolean"
|
|
3173
|
+
},
|
|
3174
|
+
"default": "false",
|
|
3175
|
+
"description": "Lets the user resize columns from the header edge (pointer and keyboard).",
|
|
3176
|
+
"fieldName": "columnResizing"
|
|
3177
|
+
},
|
|
3178
|
+
{
|
|
3179
|
+
"name": "resize-mode",
|
|
3180
|
+
"type": {
|
|
3181
|
+
"text": "GridResizeMode"
|
|
3182
|
+
},
|
|
3183
|
+
"default": "'widget'",
|
|
3184
|
+
"description": "`widget`: only the column changes and the total width follows.\n`next-column`: the next column gives or takes the same amount (the\ntotal width is kept).",
|
|
3185
|
+
"fieldName": "resizeMode"
|
|
3186
|
+
},
|
|
3187
|
+
{
|
|
3188
|
+
"name": "column-chooser",
|
|
3189
|
+
"type": {
|
|
3190
|
+
"text": "boolean"
|
|
3191
|
+
},
|
|
3192
|
+
"default": "false",
|
|
3193
|
+
"description": "Shows the column chooser button in the bar above the table (and \"Choose\ncolumns\" in the column header menu). The chooser shows/hides columns,\nfilters them by a search box and reorders them by dragging or\nAlt+Shift+↑/↓. Pin a column from its header menu.",
|
|
3194
|
+
"fieldName": "columnChooser"
|
|
3195
|
+
},
|
|
3196
|
+
{
|
|
3197
|
+
"name": "column-auto-width",
|
|
3198
|
+
"type": {
|
|
3199
|
+
"text": "boolean"
|
|
3200
|
+
},
|
|
3201
|
+
"default": "false",
|
|
3202
|
+
"description": "Columns without `width` take the width of their content (header and rendered rows).",
|
|
3203
|
+
"fieldName": "columnAutoWidth"
|
|
3204
|
+
},
|
|
3205
|
+
{
|
|
3206
|
+
"name": "column-rendering-mode",
|
|
3207
|
+
"type": {
|
|
3208
|
+
"text": "GridColumnRenderingMode"
|
|
3209
|
+
},
|
|
3210
|
+
"default": "'auto'",
|
|
3211
|
+
"description": "How columns are rendered: `virtual` keeps only the columns in view (plus\nthe fixed columns and the focused one) in the DOM, for very wide grids;\n`standard` renders all; `auto` (default) is `virtual` with more than 50\nleaf columns defined (visible, hidden or grouped). Under `virtual` a\ncolumn without `width` takes its auto-size width or `max(minWidth, 150)` px.",
|
|
3212
|
+
"fieldName": "columnRenderingMode"
|
|
3213
|
+
},
|
|
3214
|
+
{
|
|
3215
|
+
"name": "selection-mode",
|
|
3216
|
+
"type": {
|
|
3217
|
+
"text": "GridSelectionMode"
|
|
3218
|
+
},
|
|
3219
|
+
"default": "'none'",
|
|
3220
|
+
"description": "Row selection: `none` (default; the selection methods do nothing),\n`single` or `multiple`. Click selects, Ctrl+click toggles, Shift+click\nextends; Space, Shift+Space, Shift+↑/↓ and Ctrl+A on the keyboard.",
|
|
3221
|
+
"fieldName": "selectionMode"
|
|
3222
|
+
},
|
|
3223
|
+
{
|
|
3224
|
+
"name": "show-checkboxes",
|
|
3225
|
+
"type": {
|
|
3226
|
+
"text": "boolean"
|
|
3227
|
+
},
|
|
3228
|
+
"default": "false",
|
|
3229
|
+
"description": "Shows a checkbox column (fixed at the start) with \"select all\" in the\nheader. Only with `selection-mode=\"multiple\"`; then a click on a row only\nmoves the focus and the checkbox (or Space) selects.",
|
|
3230
|
+
"fieldName": "showCheckboxes"
|
|
3231
|
+
},
|
|
3232
|
+
{
|
|
3233
|
+
"name": "clipboard-mode",
|
|
3234
|
+
"type": {
|
|
3235
|
+
"text": "GridClipboardMode"
|
|
3236
|
+
},
|
|
3237
|
+
"default": "'copy'",
|
|
3238
|
+
"description": "Ctrl/Cmd+C on a cell of the grid: `copy` (default) copies the cell\nranges, else the selected rows, else the focused cell, as tab separated\ntext and an HTML table; `copy-paste` also lets Ctrl/Cmd+V paste tab\nseparated text into editable cells (with `allowEditing`; fires\n`u-grid-pasting`); `none` leaves the clipboard alone. Text selected with\nthe mouse is copied natively.",
|
|
3239
|
+
"fieldName": "clipboardMode"
|
|
3240
|
+
},
|
|
3241
|
+
{
|
|
3242
|
+
"name": "cell-selection-mode",
|
|
3243
|
+
"type": {
|
|
3244
|
+
"text": "GridCellSelectionMode"
|
|
3245
|
+
},
|
|
3246
|
+
"default": "'none'",
|
|
3247
|
+
"description": "Cell range selection, like a spreadsheet: `none` (default), `single`\n(one rectangular range — not one cell) or `multiple` (Ctrl/Cmd+click,\nCtrl/Cmd+drag and Shift+F8 add ranges). Drag, Shift+click, Shift+arrows,\nShift+Home/End/PageUp/PageDown and Ctrl+A select data cells; with row\nselection on too, rows are selected with the checkbox column and Space.\nRanges are cleared when rows or columns change (sorting, filtering,\ngrouping, paging…). The cell context menu then opens (even without\n`row-menu`) with \"Copy selected cells\", \"Paste\" (`copy-paste`), \"Extend\nselection to this cell\" and \"Add cell to selection\".",
|
|
3248
|
+
"fieldName": "cellSelectionMode"
|
|
3249
|
+
},
|
|
3250
|
+
{
|
|
3251
|
+
"name": "show-cell-range-summary",
|
|
3252
|
+
"type": {
|
|
3253
|
+
"text": "boolean"
|
|
3254
|
+
},
|
|
3255
|
+
"default": "false",
|
|
3256
|
+
"description": "Shows a bar below the grid with the count, sum and average of the\nselected cells (two or more). Numbers are summed by value, not by text.",
|
|
3257
|
+
"fieldName": "showCellRangeSummary"
|
|
3258
|
+
},
|
|
3259
|
+
{
|
|
3260
|
+
"name": "edit-mode",
|
|
3261
|
+
"type": {
|
|
3262
|
+
"text": "GridEditMode"
|
|
3263
|
+
},
|
|
3264
|
+
"default": "'cell'",
|
|
3265
|
+
"description": "How rows are edited: `cell` (default; a committed cell is saved at once),\n`row` (Edit/Save/Cancel buttons per row) or `batch` (changes stay pending\nuntil \"Save changes\" or `saveChanges()`).",
|
|
3266
|
+
"fieldName": "editMode"
|
|
3267
|
+
},
|
|
3268
|
+
{
|
|
3269
|
+
"name": "allow-editing",
|
|
3270
|
+
"type": {
|
|
3271
|
+
"text": "boolean"
|
|
3272
|
+
},
|
|
3273
|
+
"default": "false",
|
|
3274
|
+
"description": "Lets the user edit cells (columns with `editable`, by default those with\n`path`). A function (property only) decides per row. The grid never\nmutates the items: changes are delivered in `u-grid-saving`. With\n`dataSource`, editing needs `keyExpr`.",
|
|
3275
|
+
"fieldName": "allowEditing"
|
|
3276
|
+
},
|
|
3277
|
+
{
|
|
3278
|
+
"name": "allow-adding",
|
|
3279
|
+
"type": {
|
|
3280
|
+
"text": "boolean"
|
|
3281
|
+
},
|
|
3282
|
+
"default": "false",
|
|
3283
|
+
"description": "Shows the \"Add row\" button and allows `addRow()`.",
|
|
3284
|
+
"fieldName": "allowAdding"
|
|
3285
|
+
},
|
|
3286
|
+
{
|
|
3287
|
+
"name": "allow-removing",
|
|
3288
|
+
"type": {
|
|
3289
|
+
"text": "boolean"
|
|
3290
|
+
},
|
|
3291
|
+
"default": "false",
|
|
3292
|
+
"description": "Shows the Delete button of each row and allows `removeRow()`. A function\n(property only) decides per row.",
|
|
3293
|
+
"fieldName": "allowRemoving"
|
|
3294
|
+
},
|
|
3295
|
+
{
|
|
3296
|
+
"name": "edit-trigger",
|
|
3297
|
+
"type": {
|
|
3298
|
+
"text": "GridEditTrigger"
|
|
3299
|
+
},
|
|
3300
|
+
"default": "'click'",
|
|
3301
|
+
"description": "Pointer gesture that opens a cell editor: `click` (default) or `dblclick`. Enter and F2 always open it.",
|
|
3302
|
+
"fieldName": "editTrigger"
|
|
3303
|
+
},
|
|
3304
|
+
{
|
|
3305
|
+
"name": "confirm-remove",
|
|
3306
|
+
"type": {
|
|
3307
|
+
"text": "boolean"
|
|
3308
|
+
},
|
|
3309
|
+
"default": "true",
|
|
3310
|
+
"description": "Asks before deleting a row with the Delete button (not in `batch` mode, where removal is pending, nor with `removeRow()`).",
|
|
3311
|
+
"fieldName": "confirmRemove"
|
|
3312
|
+
},
|
|
3313
|
+
{
|
|
3314
|
+
"name": "stripped",
|
|
3315
|
+
"type": {
|
|
3316
|
+
"text": "boolean"
|
|
3317
|
+
},
|
|
3318
|
+
"deprecated": "Use `striped`.",
|
|
3319
|
+
"fieldName": "stripped"
|
|
3320
|
+
},
|
|
3321
|
+
{
|
|
3322
|
+
"name": "showheader",
|
|
3323
|
+
"type": {
|
|
3324
|
+
"text": "boolean"
|
|
3325
|
+
},
|
|
3326
|
+
"deprecated": "Use `showGroupPanel` (attribute `show-group-panel`).",
|
|
3327
|
+
"fieldName": "showHeader"
|
|
3328
|
+
},
|
|
3329
|
+
{
|
|
3330
|
+
"name": "language",
|
|
3331
|
+
"type": {
|
|
3332
|
+
"text": "string"
|
|
3333
|
+
},
|
|
3334
|
+
"description": "Language used to resolve the built-in translations. When not set on the\ncomponent it is resolved, in order, from the Lit context, the document\n(`<html lang>` / content-language meta) and finally the browser.",
|
|
3335
|
+
"fieldName": "language"
|
|
3336
|
+
},
|
|
3337
|
+
{
|
|
3338
|
+
"name": "state-storage",
|
|
3339
|
+
"type": {
|
|
3340
|
+
"text": "'local' | 'session'"
|
|
3341
|
+
},
|
|
3342
|
+
"description": "Saves and restores the user state (see `getState`): `local` / `session`\n(`localStorage` / `sessionStorage`, attribute `state-storage`, needs\n`state-storage-key`) or an object with `load()` and `save()` (property\nonly). Read when the grid connects (and again when this or the key\nchanges), before the first render of data; while an asynchronous `load()`\nruns the grid shows the load panel and no rows. Saved\n`state-change-delay` ms after each change, and on disconnect or\n`pagehide` when a save is pending. A `setState()` before connecting skips\nthe read. Unreadable or invalid saved states are ignored with a console\nwarning.",
|
|
3343
|
+
"default": "null",
|
|
3344
|
+
"fieldName": "stateStorage"
|
|
3345
|
+
},
|
|
3346
|
+
{
|
|
3347
|
+
"name": "state-storage-key",
|
|
3348
|
+
"type": {
|
|
3349
|
+
"text": "string"
|
|
3350
|
+
},
|
|
3351
|
+
"description": "Key of the state in `localStorage` / `sessionStorage` (required by `state-storage=\"local|session\"`).",
|
|
3352
|
+
"default": "''",
|
|
3353
|
+
"fieldName": "stateStorageKey"
|
|
3354
|
+
},
|
|
3355
|
+
{
|
|
3356
|
+
"name": "state-change-delay",
|
|
3357
|
+
"type": {
|
|
3358
|
+
"text": "number"
|
|
3359
|
+
},
|
|
3360
|
+
"default": "500",
|
|
3361
|
+
"description": "Delay (ms) after the last change of the state before `u-grid-state-change` fires and the state is saved. Default `500`.",
|
|
3362
|
+
"fieldName": "stateChangeDelay"
|
|
3363
|
+
},
|
|
3364
|
+
{
|
|
3365
|
+
"name": "rowheight",
|
|
3366
|
+
"type": {
|
|
3367
|
+
"text": "number"
|
|
3368
|
+
},
|
|
3369
|
+
"description": "Deprecated alias of `row-height`.",
|
|
3370
|
+
"deprecated": "Use `row-height`.",
|
|
3371
|
+
"fieldName": "rowHeight"
|
|
3372
|
+
},
|
|
3373
|
+
{
|
|
3374
|
+
"name": "showrowlines",
|
|
3375
|
+
"type": {
|
|
3376
|
+
"text": "boolean"
|
|
3377
|
+
},
|
|
3378
|
+
"description": "Deprecated alias of `show-row-lines`.",
|
|
3379
|
+
"deprecated": "Use `show-row-lines`.",
|
|
3380
|
+
"fieldName": "showRowLines"
|
|
3381
|
+
},
|
|
3382
|
+
{
|
|
3383
|
+
"name": "showcolumnlines",
|
|
3384
|
+
"type": {
|
|
3385
|
+
"text": "boolean"
|
|
3386
|
+
},
|
|
3387
|
+
"description": "Deprecated alias of `show-column-lines`.",
|
|
3388
|
+
"deprecated": "Use `show-column-lines`.",
|
|
3389
|
+
"fieldName": "showColumnLines"
|
|
3390
|
+
}
|
|
3391
|
+
],
|
|
3392
|
+
"superclass": {
|
|
3393
|
+
"name": "LitElement",
|
|
3394
|
+
"package": "lit"
|
|
3395
|
+
},
|
|
3396
|
+
"summary": "Data grid web component.",
|
|
3397
|
+
"tagName": "u-grid",
|
|
3398
|
+
"customElement": true
|
|
3399
|
+
},
|
|
3400
|
+
{
|
|
3401
|
+
"kind": "variable",
|
|
3402
|
+
"name": "level",
|
|
3403
|
+
"default": "view.level[node]"
|
|
3404
|
+
},
|
|
3405
|
+
{
|
|
3406
|
+
"kind": "variable",
|
|
3407
|
+
"name": "column"
|
|
3408
|
+
},
|
|
3409
|
+
{
|
|
3410
|
+
"kind": "variable",
|
|
3411
|
+
"name": "sort"
|
|
3412
|
+
},
|
|
3413
|
+
{
|
|
3414
|
+
"kind": "variable",
|
|
3415
|
+
"name": "changes"
|
|
3416
|
+
},
|
|
3417
|
+
{
|
|
3418
|
+
"kind": "variable",
|
|
3419
|
+
"name": "anchorCol"
|
|
3420
|
+
},
|
|
3421
|
+
{
|
|
3422
|
+
"kind": "variable",
|
|
3423
|
+
"name": "endCol"
|
|
3424
|
+
}
|
|
3425
|
+
],
|
|
3426
|
+
"exports": [
|
|
3427
|
+
{
|
|
3428
|
+
"kind": "js",
|
|
3429
|
+
"name": "GridCellRenderContext",
|
|
3430
|
+
"declaration": {
|
|
3431
|
+
"name": "GridCellRenderContext",
|
|
3432
|
+
"module": "dist/grid-column-def.js"
|
|
3433
|
+
}
|
|
3434
|
+
},
|
|
3435
|
+
{
|
|
3436
|
+
"kind": "js",
|
|
3437
|
+
"name": "GridCellRenderer",
|
|
3438
|
+
"declaration": {
|
|
3439
|
+
"name": "GridCellRenderer",
|
|
3440
|
+
"module": "dist/grid-column-def.js"
|
|
3441
|
+
}
|
|
3442
|
+
},
|
|
3443
|
+
{
|
|
3444
|
+
"kind": "js",
|
|
3445
|
+
"name": "GridDetailRenderContext",
|
|
3446
|
+
"declaration": {
|
|
3447
|
+
"name": "GridDetailRenderContext",
|
|
3448
|
+
"module": "dist/grid-column-def.js"
|
|
3449
|
+
}
|
|
3450
|
+
},
|
|
3451
|
+
{
|
|
3452
|
+
"kind": "js",
|
|
3453
|
+
"name": "GridDetailRenderer",
|
|
3454
|
+
"declaration": {
|
|
3455
|
+
"name": "GridDetailRenderer",
|
|
3456
|
+
"module": "dist/grid-column-def.js"
|
|
3457
|
+
}
|
|
3458
|
+
},
|
|
3459
|
+
{
|
|
3460
|
+
"kind": "js",
|
|
3461
|
+
"name": "GridGroupRenderContext",
|
|
3462
|
+
"declaration": {
|
|
3463
|
+
"name": "GridGroupRenderContext",
|
|
3464
|
+
"module": "dist/grid-column-def.js"
|
|
3465
|
+
}
|
|
3466
|
+
},
|
|
3467
|
+
{
|
|
3468
|
+
"kind": "js",
|
|
3469
|
+
"name": "GridGroupRenderer",
|
|
3470
|
+
"declaration": {
|
|
3471
|
+
"name": "GridGroupRenderer",
|
|
3472
|
+
"module": "dist/grid-column-def.js"
|
|
3473
|
+
}
|
|
3474
|
+
},
|
|
3475
|
+
{
|
|
3476
|
+
"kind": "js",
|
|
3477
|
+
"name": "GridHeaderRenderContext",
|
|
3478
|
+
"declaration": {
|
|
3479
|
+
"name": "GridHeaderRenderContext",
|
|
3480
|
+
"module": "dist/grid-column-def.js"
|
|
3481
|
+
}
|
|
3482
|
+
},
|
|
3483
|
+
{
|
|
3484
|
+
"kind": "js",
|
|
3485
|
+
"name": "GridHeaderRenderer",
|
|
3486
|
+
"declaration": {
|
|
3487
|
+
"name": "GridHeaderRenderer",
|
|
3488
|
+
"module": "dist/grid-column-def.js"
|
|
3489
|
+
}
|
|
3490
|
+
},
|
|
3491
|
+
{
|
|
3492
|
+
"kind": "js",
|
|
3493
|
+
"name": "GridNoDataRenderContext",
|
|
3494
|
+
"declaration": {
|
|
3495
|
+
"name": "GridNoDataRenderContext",
|
|
3496
|
+
"module": "dist/grid-column-def.js"
|
|
3497
|
+
}
|
|
3498
|
+
},
|
|
3499
|
+
{
|
|
3500
|
+
"kind": "js",
|
|
3501
|
+
"name": "GridNoDataRenderer",
|
|
3502
|
+
"declaration": {
|
|
3503
|
+
"name": "GridNoDataRenderer",
|
|
3504
|
+
"module": "dist/grid-column-def.js"
|
|
3505
|
+
}
|
|
3506
|
+
},
|
|
3507
|
+
{
|
|
3508
|
+
"kind": "js",
|
|
3509
|
+
"name": "GridRenderContextBase",
|
|
3510
|
+
"declaration": {
|
|
3511
|
+
"name": "GridRenderContextBase",
|
|
3512
|
+
"module": "dist/grid-column-def.js"
|
|
3513
|
+
}
|
|
3514
|
+
},
|
|
3515
|
+
{
|
|
3516
|
+
"kind": "js",
|
|
3517
|
+
"name": "GridRenderResult",
|
|
3518
|
+
"declaration": {
|
|
3519
|
+
"name": "GridRenderResult",
|
|
3520
|
+
"module": "dist/grid-column-def.js"
|
|
3521
|
+
}
|
|
3522
|
+
},
|
|
3523
|
+
{
|
|
3524
|
+
"kind": "js",
|
|
3525
|
+
"name": "GridRowFixed",
|
|
3526
|
+
"declaration": {
|
|
3527
|
+
"name": "GridRowFixed",
|
|
3528
|
+
"module": "dist/grid-column-def.js"
|
|
3529
|
+
}
|
|
3530
|
+
},
|
|
3531
|
+
{
|
|
3532
|
+
"kind": "js",
|
|
3533
|
+
"name": "GridRowRenderContext",
|
|
3534
|
+
"declaration": {
|
|
3535
|
+
"name": "GridRowRenderContext",
|
|
3536
|
+
"module": "dist/grid-column-def.js"
|
|
3537
|
+
}
|
|
3538
|
+
},
|
|
3539
|
+
{
|
|
3540
|
+
"kind": "js",
|
|
3541
|
+
"name": "GridRowRenderer",
|
|
3542
|
+
"declaration": {
|
|
3543
|
+
"name": "GridRowRenderer",
|
|
3544
|
+
"module": "dist/grid-column-def.js"
|
|
3545
|
+
}
|
|
3546
|
+
},
|
|
3547
|
+
{
|
|
3548
|
+
"kind": "js",
|
|
3549
|
+
"name": "GridRowRenderResult",
|
|
3550
|
+
"declaration": {
|
|
3551
|
+
"name": "GridRowRenderResult",
|
|
3552
|
+
"module": "dist/grid-column-def.js"
|
|
3553
|
+
}
|
|
3554
|
+
},
|
|
3555
|
+
{
|
|
3556
|
+
"kind": "js",
|
|
3557
|
+
"name": "GridColumnAlignment",
|
|
3558
|
+
"declaration": {
|
|
3559
|
+
"name": "GridColumnAlignment",
|
|
3560
|
+
"module": "dist/grid-column-def.js"
|
|
3561
|
+
}
|
|
3562
|
+
},
|
|
3563
|
+
{
|
|
3564
|
+
"kind": "js",
|
|
3565
|
+
"name": "GridColumnBooleanDisplay",
|
|
3566
|
+
"declaration": {
|
|
3567
|
+
"name": "GridColumnBooleanDisplay",
|
|
3568
|
+
"module": "dist/grid-column-def.js"
|
|
3569
|
+
}
|
|
3570
|
+
},
|
|
3571
|
+
{
|
|
3572
|
+
"kind": "js",
|
|
3573
|
+
"name": "GridColumnComparator",
|
|
3574
|
+
"declaration": {
|
|
3575
|
+
"name": "GridColumnComparator",
|
|
3576
|
+
"module": "dist/grid-column-def.js"
|
|
3577
|
+
}
|
|
3578
|
+
},
|
|
3579
|
+
{
|
|
3580
|
+
"kind": "js",
|
|
3581
|
+
"name": "GridColumnDataType",
|
|
3582
|
+
"declaration": {
|
|
3583
|
+
"name": "GridColumnDataType",
|
|
3584
|
+
"module": "dist/grid-column-def.js"
|
|
3585
|
+
}
|
|
3586
|
+
},
|
|
3587
|
+
{
|
|
3588
|
+
"kind": "js",
|
|
3589
|
+
"name": "GridColumnDef",
|
|
3590
|
+
"declaration": {
|
|
3591
|
+
"name": "GridColumnDef",
|
|
3592
|
+
"module": "dist/grid-column-def.js"
|
|
3593
|
+
}
|
|
3594
|
+
},
|
|
3595
|
+
{
|
|
3596
|
+
"kind": "js",
|
|
3597
|
+
"name": "GridColumnFixed",
|
|
3598
|
+
"declaration": {
|
|
3599
|
+
"name": "GridColumnFixed",
|
|
3600
|
+
"module": "dist/grid-column-def.js"
|
|
3601
|
+
}
|
|
3602
|
+
},
|
|
3603
|
+
{
|
|
3604
|
+
"kind": "js",
|
|
3605
|
+
"name": "GridColumnRenderingMode",
|
|
3606
|
+
"declaration": {
|
|
3607
|
+
"name": "GridColumnRenderingMode",
|
|
3608
|
+
"module": "dist/grid-column-def.js"
|
|
3609
|
+
}
|
|
3610
|
+
},
|
|
3611
|
+
{
|
|
3612
|
+
"kind": "js",
|
|
3613
|
+
"name": "GridColumnFormat",
|
|
3614
|
+
"declaration": {
|
|
3615
|
+
"name": "GridColumnFormat",
|
|
3616
|
+
"module": "dist/grid-column-def.js"
|
|
3617
|
+
}
|
|
3618
|
+
},
|
|
3619
|
+
{
|
|
3620
|
+
"kind": "js",
|
|
3621
|
+
"name": "GridColumnFormatter",
|
|
3622
|
+
"declaration": {
|
|
3623
|
+
"name": "GridColumnFormatter",
|
|
3624
|
+
"module": "dist/grid-column-def.js"
|
|
3625
|
+
}
|
|
3626
|
+
},
|
|
3627
|
+
{
|
|
3628
|
+
"kind": "js",
|
|
3629
|
+
"name": "GridColumnRef",
|
|
3630
|
+
"declaration": {
|
|
3631
|
+
"name": "GridColumnRef",
|
|
3632
|
+
"module": "dist/grid-column-def.js"
|
|
3633
|
+
}
|
|
3634
|
+
},
|
|
3635
|
+
{
|
|
3636
|
+
"kind": "js",
|
|
3637
|
+
"name": "GridGroupPath",
|
|
3638
|
+
"declaration": {
|
|
3639
|
+
"name": "GridGroupPath",
|
|
3640
|
+
"module": "dist/grid-column-def.js"
|
|
3641
|
+
}
|
|
3642
|
+
},
|
|
3643
|
+
{
|
|
3644
|
+
"kind": "js",
|
|
3645
|
+
"name": "GridGroupSummaryItem",
|
|
3646
|
+
"declaration": {
|
|
3647
|
+
"name": "GridGroupSummaryItem",
|
|
3648
|
+
"module": "dist/grid-column-def.js"
|
|
3649
|
+
}
|
|
3650
|
+
},
|
|
3651
|
+
{
|
|
3652
|
+
"kind": "js",
|
|
3653
|
+
"name": "GridNodeSummaryItem",
|
|
3654
|
+
"declaration": {
|
|
3655
|
+
"name": "GridNodeSummaryItem",
|
|
3656
|
+
"module": "dist/grid-column-def.js"
|
|
3657
|
+
}
|
|
3658
|
+
},
|
|
3659
|
+
{
|
|
3660
|
+
"kind": "js",
|
|
3661
|
+
"name": "GridFilterCondition",
|
|
3662
|
+
"declaration": {
|
|
3663
|
+
"name": "GridFilterCondition",
|
|
3664
|
+
"module": "dist/grid-column-def.js"
|
|
3665
|
+
}
|
|
3666
|
+
},
|
|
3667
|
+
{
|
|
3668
|
+
"kind": "js",
|
|
3669
|
+
"name": "GridFilterExpression",
|
|
3670
|
+
"declaration": {
|
|
3671
|
+
"name": "GridFilterExpression",
|
|
3672
|
+
"module": "dist/grid-column-def.js"
|
|
3673
|
+
}
|
|
3674
|
+
},
|
|
3675
|
+
{
|
|
3676
|
+
"kind": "js",
|
|
3677
|
+
"name": "GridFilterOperation",
|
|
3678
|
+
"declaration": {
|
|
3679
|
+
"name": "GridFilterOperation",
|
|
3680
|
+
"module": "dist/grid-column-def.js"
|
|
3681
|
+
}
|
|
3682
|
+
},
|
|
3683
|
+
{
|
|
3684
|
+
"kind": "js",
|
|
3685
|
+
"name": "GridSort",
|
|
3686
|
+
"declaration": {
|
|
3687
|
+
"name": "GridSort",
|
|
3688
|
+
"module": "dist/grid-column-def.js"
|
|
3689
|
+
}
|
|
3690
|
+
},
|
|
3691
|
+
{
|
|
3692
|
+
"kind": "js",
|
|
3693
|
+
"name": "GridSortOrder",
|
|
3694
|
+
"declaration": {
|
|
3695
|
+
"name": "GridSortOrder",
|
|
3696
|
+
"module": "dist/grid-column-def.js"
|
|
3697
|
+
}
|
|
3698
|
+
},
|
|
3699
|
+
{
|
|
3700
|
+
"kind": "js",
|
|
3701
|
+
"name": "GridSummary",
|
|
3702
|
+
"declaration": {
|
|
3703
|
+
"name": "GridSummary",
|
|
3704
|
+
"module": "dist/grid-column-def.js"
|
|
3705
|
+
}
|
|
3706
|
+
},
|
|
3707
|
+
{
|
|
3708
|
+
"kind": "js",
|
|
3709
|
+
"name": "GridSummaryAggregator",
|
|
3710
|
+
"declaration": {
|
|
3711
|
+
"name": "GridSummaryAggregator",
|
|
3712
|
+
"module": "dist/grid-column-def.js"
|
|
3713
|
+
}
|
|
3714
|
+
},
|
|
3715
|
+
{
|
|
3716
|
+
"kind": "js",
|
|
3717
|
+
"name": "GridSummaryFormat",
|
|
3718
|
+
"declaration": {
|
|
3719
|
+
"name": "GridSummaryFormat",
|
|
3720
|
+
"module": "dist/grid-column-def.js"
|
|
3721
|
+
}
|
|
3722
|
+
},
|
|
3723
|
+
{
|
|
3724
|
+
"kind": "js",
|
|
3725
|
+
"name": "GridSummaryItem",
|
|
3726
|
+
"declaration": {
|
|
3727
|
+
"name": "GridSummaryItem",
|
|
3728
|
+
"module": "dist/grid-column-def.js"
|
|
3729
|
+
}
|
|
3730
|
+
},
|
|
3731
|
+
{
|
|
3732
|
+
"kind": "js",
|
|
3733
|
+
"name": "GridSummaryType",
|
|
3734
|
+
"declaration": {
|
|
3735
|
+
"name": "GridSummaryType",
|
|
3736
|
+
"module": "dist/grid-column-def.js"
|
|
3737
|
+
}
|
|
3738
|
+
},
|
|
3739
|
+
{
|
|
3740
|
+
"kind": "js",
|
|
3741
|
+
"name": "GridSummaryValue",
|
|
3742
|
+
"declaration": {
|
|
3743
|
+
"name": "GridSummaryValue",
|
|
3744
|
+
"module": "dist/grid-column-def.js"
|
|
3745
|
+
}
|
|
3746
|
+
},
|
|
3747
|
+
{
|
|
3748
|
+
"kind": "js",
|
|
3749
|
+
"name": "GridCustomRule",
|
|
3750
|
+
"declaration": {
|
|
3751
|
+
"name": "GridCustomRule",
|
|
3752
|
+
"module": "dist/grid-column-def.js"
|
|
3753
|
+
}
|
|
3754
|
+
},
|
|
3755
|
+
{
|
|
3756
|
+
"kind": "js",
|
|
3757
|
+
"name": "GridEditorRenderContext",
|
|
3758
|
+
"declaration": {
|
|
3759
|
+
"name": "GridEditorRenderContext",
|
|
3760
|
+
"module": "dist/grid-column-def.js"
|
|
3761
|
+
}
|
|
3762
|
+
},
|
|
3763
|
+
{
|
|
3764
|
+
"kind": "js",
|
|
3765
|
+
"name": "GridEditorRenderer",
|
|
3766
|
+
"declaration": {
|
|
3767
|
+
"name": "GridEditorRenderer",
|
|
3768
|
+
"module": "dist/grid-column-def.js"
|
|
3769
|
+
}
|
|
3770
|
+
},
|
|
3771
|
+
{
|
|
3772
|
+
"kind": "js",
|
|
3773
|
+
"name": "GridEmailRule",
|
|
3774
|
+
"declaration": {
|
|
3775
|
+
"name": "GridEmailRule",
|
|
3776
|
+
"module": "dist/grid-column-def.js"
|
|
3777
|
+
}
|
|
3778
|
+
},
|
|
3779
|
+
{
|
|
3780
|
+
"kind": "js",
|
|
3781
|
+
"name": "GridPatternRule",
|
|
3782
|
+
"declaration": {
|
|
3783
|
+
"name": "GridPatternRule",
|
|
3784
|
+
"module": "dist/grid-column-def.js"
|
|
3785
|
+
}
|
|
3786
|
+
},
|
|
3787
|
+
{
|
|
3788
|
+
"kind": "js",
|
|
3789
|
+
"name": "GridRangeRule",
|
|
3790
|
+
"declaration": {
|
|
3791
|
+
"name": "GridRangeRule",
|
|
3792
|
+
"module": "dist/grid-column-def.js"
|
|
3793
|
+
}
|
|
3794
|
+
},
|
|
3795
|
+
{
|
|
3796
|
+
"kind": "js",
|
|
3797
|
+
"name": "GridRequiredRule",
|
|
3798
|
+
"declaration": {
|
|
3799
|
+
"name": "GridRequiredRule",
|
|
3800
|
+
"module": "dist/grid-column-def.js"
|
|
3801
|
+
}
|
|
3802
|
+
},
|
|
3803
|
+
{
|
|
3804
|
+
"kind": "js",
|
|
3805
|
+
"name": "GridStringLengthRule",
|
|
3806
|
+
"declaration": {
|
|
3807
|
+
"name": "GridStringLengthRule",
|
|
3808
|
+
"module": "dist/grid-column-def.js"
|
|
3809
|
+
}
|
|
3810
|
+
},
|
|
3811
|
+
{
|
|
3812
|
+
"kind": "js",
|
|
3813
|
+
"name": "GridValidationContext",
|
|
3814
|
+
"declaration": {
|
|
3815
|
+
"name": "GridValidationContext",
|
|
3816
|
+
"module": "dist/grid-column-def.js"
|
|
3817
|
+
}
|
|
3818
|
+
},
|
|
3819
|
+
{
|
|
3820
|
+
"kind": "js",
|
|
3821
|
+
"name": "GridValidationRule",
|
|
3822
|
+
"declaration": {
|
|
3823
|
+
"name": "GridValidationRule",
|
|
3824
|
+
"module": "dist/grid-column-def.js"
|
|
3825
|
+
}
|
|
3826
|
+
},
|
|
3827
|
+
{
|
|
3828
|
+
"kind": "js",
|
|
3829
|
+
"name": "GridValidationRuleBase",
|
|
3830
|
+
"declaration": {
|
|
3831
|
+
"name": "GridValidationRuleBase",
|
|
3832
|
+
"module": "dist/grid-column-def.js"
|
|
3833
|
+
}
|
|
3834
|
+
},
|
|
3835
|
+
{
|
|
3836
|
+
"kind": "js",
|
|
3837
|
+
"name": "GridValueSetter",
|
|
3838
|
+
"declaration": {
|
|
3839
|
+
"name": "GridValueSetter",
|
|
3840
|
+
"module": "dist/grid-column-def.js"
|
|
3841
|
+
}
|
|
3842
|
+
},
|
|
3843
|
+
{
|
|
3844
|
+
"kind": "js",
|
|
3845
|
+
"name": "GRID_DEFAULT_TOOLBAR_ITEMS",
|
|
3846
|
+
"declaration": {
|
|
3847
|
+
"name": "GRID_DEFAULT_TOOLBAR_ITEMS",
|
|
3848
|
+
"module": "dist/grid.js"
|
|
3849
|
+
}
|
|
3850
|
+
},
|
|
3851
|
+
{
|
|
3852
|
+
"kind": "js",
|
|
3853
|
+
"name": "DataGridColumn",
|
|
3854
|
+
"declaration": {
|
|
3855
|
+
"name": "DataGridColumn",
|
|
3856
|
+
"module": "dist/grid-column.js"
|
|
3857
|
+
}
|
|
3858
|
+
},
|
|
3859
|
+
{
|
|
3860
|
+
"kind": "js",
|
|
3861
|
+
"name": "setGridLanguage",
|
|
3862
|
+
"declaration": {
|
|
3863
|
+
"name": "setGridLanguage",
|
|
3864
|
+
"module": "dist/grid-i18n.js"
|
|
3865
|
+
}
|
|
3866
|
+
},
|
|
3867
|
+
{
|
|
3868
|
+
"kind": "js",
|
|
3869
|
+
"name": "setGridTranslation",
|
|
3870
|
+
"declaration": {
|
|
3871
|
+
"name": "setGridTranslation",
|
|
3872
|
+
"module": "dist/grid-i18n.js"
|
|
3873
|
+
}
|
|
3874
|
+
},
|
|
3875
|
+
{
|
|
3876
|
+
"kind": "js",
|
|
3877
|
+
"name": "gridLanguageContext",
|
|
3878
|
+
"declaration": {
|
|
3879
|
+
"name": "gridLanguageContext",
|
|
3880
|
+
"module": "dist/grid-i18n.js"
|
|
3881
|
+
}
|
|
3882
|
+
},
|
|
3883
|
+
{
|
|
3884
|
+
"kind": "js",
|
|
3885
|
+
"name": "GridI18n",
|
|
3886
|
+
"declaration": {
|
|
3887
|
+
"name": "GridI18n",
|
|
3888
|
+
"module": "dist/grid-i18n.js"
|
|
3889
|
+
}
|
|
3890
|
+
},
|
|
3891
|
+
{
|
|
3892
|
+
"kind": "js",
|
|
3893
|
+
"name": "GridI18nInput",
|
|
3894
|
+
"declaration": {
|
|
3895
|
+
"name": "GridI18nInput",
|
|
3896
|
+
"module": "dist/grid-i18n.js"
|
|
3897
|
+
}
|
|
3898
|
+
},
|
|
3899
|
+
{
|
|
3900
|
+
"kind": "js",
|
|
3901
|
+
"name": "DataGrid",
|
|
3902
|
+
"declaration": {
|
|
3903
|
+
"name": "DataGrid",
|
|
3904
|
+
"module": "dist/grid.js"
|
|
3905
|
+
}
|
|
3906
|
+
},
|
|
3907
|
+
{
|
|
3908
|
+
"kind": "custom-element-definition",
|
|
3909
|
+
"name": "u-grid",
|
|
3910
|
+
"declaration": {
|
|
3911
|
+
"name": "DataGrid",
|
|
3912
|
+
"module": "dist/grid.js"
|
|
3913
|
+
}
|
|
3914
|
+
}
|
|
3915
|
+
]
|
|
3916
|
+
},
|
|
3917
|
+
{
|
|
3918
|
+
"kind": "javascript-module",
|
|
3919
|
+
"path": "dist/grid-column.js",
|
|
3920
|
+
"declarations": [
|
|
3921
|
+
{
|
|
3922
|
+
"kind": "class",
|
|
3923
|
+
"description": "Declarative column of a `<u-grid>`: one direct child `<u-grid-column>` per\ncolumn. The text content is the header label. Every option mirrors a\n`GridColumnDef` field with the same property name. A `<u-grid-column>`\nwith nested `<u-grid-column>` elements is a band (multi-level header).",
|
|
3924
|
+
"name": "DataGridColumn",
|
|
3925
|
+
"slots": [
|
|
3926
|
+
{
|
|
3927
|
+
"description": "Header label text and, in a band, the nested `<u-grid-column>` elements.",
|
|
3928
|
+
"name": ""
|
|
3929
|
+
}
|
|
3930
|
+
],
|
|
3931
|
+
"members": [
|
|
3932
|
+
{
|
|
3933
|
+
"kind": "field",
|
|
3934
|
+
"name": "width",
|
|
3935
|
+
"type": {
|
|
3936
|
+
"text": "number | null"
|
|
3937
|
+
},
|
|
3938
|
+
"description": "Width in px. Changing it after the column is rendered overrides the width\nchosen by the user. Under virtual column rendering (`columnRenderingMode`)\na column without `width` takes its auto-size width or `max(minWidth, 150)` px.",
|
|
3939
|
+
"attribute": "width"
|
|
3940
|
+
},
|
|
3941
|
+
{
|
|
3942
|
+
"kind": "field",
|
|
3943
|
+
"name": "groupIndex",
|
|
3944
|
+
"type": {
|
|
3945
|
+
"text": "number | null"
|
|
3946
|
+
},
|
|
3947
|
+
"description": "INITIAL grouping level. Afterwards grouping is grid state: use\n`grid.groupColumn()` / `grid.ungroupColumn()`. Changing it after the\ncolumn is rendered still regroups, but is deprecated.",
|
|
3948
|
+
"attribute": "group-index"
|
|
3949
|
+
},
|
|
3950
|
+
{
|
|
3951
|
+
"kind": "field",
|
|
3952
|
+
"name": "path",
|
|
3953
|
+
"type": {
|
|
3954
|
+
"text": "string"
|
|
3955
|
+
},
|
|
3956
|
+
"default": "''",
|
|
3957
|
+
"description": "Dot path of the cell value in the row item (`\"address.city\"`).",
|
|
3958
|
+
"attribute": "path"
|
|
3959
|
+
},
|
|
3960
|
+
{
|
|
3961
|
+
"kind": "field",
|
|
3962
|
+
"name": "name",
|
|
3963
|
+
"type": {
|
|
3964
|
+
"text": "string"
|
|
3965
|
+
},
|
|
3966
|
+
"default": "''",
|
|
3967
|
+
"description": "Stable id of the column in the grid state (`getState`, `stateStorage`)\nand in string column references (`summary` items look it up before\n`path`). Default: `path`. A column without `name` and `path` is left out\nof the state.",
|
|
3968
|
+
"attribute": "name"
|
|
3969
|
+
},
|
|
3970
|
+
{
|
|
3971
|
+
"kind": "field",
|
|
3972
|
+
"name": "renderer",
|
|
3973
|
+
"type": {
|
|
3974
|
+
"text": "GridCellRenderer | null"
|
|
3975
|
+
},
|
|
3976
|
+
"default": "null",
|
|
3977
|
+
"description": "Builds the cell content (property only): a Lit `TemplateResult`\n(recommended), a string (text) or an `HTMLElement` (placed in the grid's\nlight DOM). `null`, `undefined` and Lit's `nothing` render an empty cell."
|
|
3978
|
+
},
|
|
3979
|
+
{
|
|
3980
|
+
"kind": "field",
|
|
3981
|
+
"name": "headerRenderer",
|
|
3982
|
+
"type": {
|
|
3983
|
+
"text": "GridHeaderRenderer | null"
|
|
3984
|
+
},
|
|
3985
|
+
"default": "null",
|
|
3986
|
+
"description": "Builds the header label (property only); sort arrow, filter button and resize handle stay. Keep\nthe text content: it still names the column outside the header (menus, chooser, announcements, export)."
|
|
3987
|
+
},
|
|
3988
|
+
{
|
|
3989
|
+
"kind": "field",
|
|
3990
|
+
"name": "groupRenderer",
|
|
3991
|
+
"type": {
|
|
3992
|
+
"text": "GridGroupRenderer | null"
|
|
3993
|
+
},
|
|
3994
|
+
"default": "null",
|
|
3995
|
+
"description": "Builds the label of the group rows of this column (property only); the expand button and aligned summaries stay."
|
|
3996
|
+
},
|
|
3997
|
+
{
|
|
3998
|
+
"kind": "field",
|
|
3999
|
+
"name": "dataType",
|
|
4000
|
+
"type": {
|
|
4001
|
+
"text": "GridColumnDataType | null"
|
|
4002
|
+
},
|
|
4003
|
+
"default": "null",
|
|
4004
|
+
"description": "Data type of the column (`string`, `number`, `date`, `datetime`,\n`boolean`); attribute `type`. Without it, inferred from the first\nnon-null value. The `data-type` attribute is deprecated (`data-*`\nbelongs to the page author).",
|
|
4005
|
+
"attribute": "type"
|
|
4006
|
+
},
|
|
4007
|
+
{
|
|
4008
|
+
"kind": "field",
|
|
4009
|
+
"name": "format",
|
|
4010
|
+
"type": {
|
|
4011
|
+
"text": "GridColumnFormat | null"
|
|
4012
|
+
},
|
|
4013
|
+
"default": "null",
|
|
4014
|
+
"description": "`Intl` options or a formatter function (property only)."
|
|
4015
|
+
},
|
|
4016
|
+
{
|
|
4017
|
+
"kind": "field",
|
|
4018
|
+
"name": "alignment",
|
|
4019
|
+
"type": {
|
|
4020
|
+
"text": "GridColumnAlignment | null"
|
|
4021
|
+
},
|
|
4022
|
+
"default": "null",
|
|
4023
|
+
"description": "Logical alignment (`start`, `center`, `end`); follows RTL. Default by data type. In a band, of the header label (default `start`).",
|
|
4024
|
+
"attribute": "alignment"
|
|
4025
|
+
},
|
|
4026
|
+
{
|
|
4027
|
+
"kind": "field",
|
|
4028
|
+
"name": "valueGetter",
|
|
4029
|
+
"type": {
|
|
4030
|
+
"text": "((item: any) => unknown) | null"
|
|
4031
|
+
},
|
|
4032
|
+
"default": "null",
|
|
4033
|
+
"description": "Computes the cell value used to group, sort and filter (property only). Default: read `path`."
|
|
4034
|
+
},
|
|
4035
|
+
{
|
|
4036
|
+
"kind": "field",
|
|
4037
|
+
"name": "displayValue",
|
|
4038
|
+
"type": {
|
|
4039
|
+
"text": "((value: unknown, item: any) => string) | null"
|
|
4040
|
+
},
|
|
4041
|
+
"default": "null",
|
|
4042
|
+
"description": "Displayed text (cell and group row); wins over `format` (property only)."
|
|
4043
|
+
},
|
|
4044
|
+
{
|
|
4045
|
+
"kind": "field",
|
|
4046
|
+
"name": "booleanDisplay",
|
|
4047
|
+
"type": {
|
|
4048
|
+
"text": "GridColumnBooleanDisplay | null"
|
|
4049
|
+
},
|
|
4050
|
+
"default": "null",
|
|
4051
|
+
"description": "`text` (default) or `icon` (read-only check icon) for boolean columns.",
|
|
4052
|
+
"attribute": "boolean-display"
|
|
4053
|
+
},
|
|
4054
|
+
{
|
|
4055
|
+
"kind": "field",
|
|
4056
|
+
"name": "wrap",
|
|
4057
|
+
"type": {
|
|
4058
|
+
"text": "boolean"
|
|
4059
|
+
},
|
|
4060
|
+
"default": "false",
|
|
4061
|
+
"description": "Wraps the text in several lines instead of an ellipsis (`wrap=\"false\"` turns it off).",
|
|
4062
|
+
"attribute": "wrap"
|
|
4063
|
+
},
|
|
4064
|
+
{
|
|
4065
|
+
"kind": "field",
|
|
4066
|
+
"name": "minWidth",
|
|
4067
|
+
"type": {
|
|
4068
|
+
"text": "number | null"
|
|
4069
|
+
},
|
|
4070
|
+
"default": "null",
|
|
4071
|
+
"description": "Minimum width in px (also when resizing and auto-sizing).",
|
|
4072
|
+
"attribute": "min-width"
|
|
4073
|
+
},
|
|
4074
|
+
{
|
|
4075
|
+
"kind": "field",
|
|
4076
|
+
"name": "emptyText",
|
|
4077
|
+
"type": {
|
|
4078
|
+
"text": "string | null"
|
|
4079
|
+
},
|
|
4080
|
+
"default": "null",
|
|
4081
|
+
"description": "Text for empty values (`null`/`undefined`).",
|
|
4082
|
+
"attribute": "empty-text"
|
|
4083
|
+
},
|
|
4084
|
+
{
|
|
4085
|
+
"kind": "field",
|
|
4086
|
+
"name": "maxWidth",
|
|
4087
|
+
"type": {
|
|
4088
|
+
"text": "number | null"
|
|
4089
|
+
},
|
|
4090
|
+
"default": "null",
|
|
4091
|
+
"description": "Maximum width in px when resizing and auto-sizing.",
|
|
4092
|
+
"attribute": "max-width"
|
|
4093
|
+
},
|
|
4094
|
+
{
|
|
4095
|
+
"kind": "field",
|
|
4096
|
+
"name": "hidingPriority",
|
|
4097
|
+
"type": {
|
|
4098
|
+
"text": "number | null"
|
|
4099
|
+
},
|
|
4100
|
+
"default": "null",
|
|
4101
|
+
"description": "Order in which the column leaves the table when the grid is too narrow\n(`auto-hide-columns`; its values move to the row details): the lowest\ngoes first, ties from the end. When any column has a `hiding-priority`\n(grouped or hidden ones included), only those columns hide; otherwise\ncolumns hide from the last one. Fixed columns never hide. Empty or not a\nnumber = none. Ignored on bands.",
|
|
4102
|
+
"attribute": "hiding-priority"
|
|
4103
|
+
},
|
|
4104
|
+
{
|
|
4105
|
+
"kind": "field",
|
|
4106
|
+
"name": "resizable",
|
|
4107
|
+
"type": {
|
|
4108
|
+
"text": "boolean | null"
|
|
4109
|
+
},
|
|
4110
|
+
"default": "null",
|
|
4111
|
+
"description": "`resizable=\"false\"` prevents resizing this column even with `column-resizing`.",
|
|
4112
|
+
"attribute": "resizable"
|
|
4113
|
+
},
|
|
4114
|
+
{
|
|
4115
|
+
"kind": "field",
|
|
4116
|
+
"name": "fixed",
|
|
4117
|
+
"type": {
|
|
4118
|
+
"text": "GridColumnFixed"
|
|
4119
|
+
},
|
|
4120
|
+
"default": "null",
|
|
4121
|
+
"description": "Fixes the column at the `start` or `end` of the scrollable area (logical:\nmirrors in RTL). A fixed band fixes its columns; ignored on nested columns.",
|
|
4122
|
+
"attribute": "fixed"
|
|
4123
|
+
},
|
|
4124
|
+
{
|
|
4125
|
+
"kind": "field",
|
|
4126
|
+
"name": "visible",
|
|
4127
|
+
"type": {
|
|
4128
|
+
"text": "boolean | null"
|
|
4129
|
+
},
|
|
4130
|
+
"default": "null",
|
|
4131
|
+
"description": "INITIAL visibility (`visible=\"false\"` hides). Afterwards the user changes it in the chooser.",
|
|
4132
|
+
"attribute": "visible"
|
|
4133
|
+
},
|
|
4134
|
+
{
|
|
4135
|
+
"kind": "field",
|
|
4136
|
+
"name": "showInChooser",
|
|
4137
|
+
"type": {
|
|
4138
|
+
"text": "boolean | null"
|
|
4139
|
+
},
|
|
4140
|
+
"default": "null",
|
|
4141
|
+
"description": "`show-in-chooser=\"false\"` removes the column from the chooser (the user cannot hide it).",
|
|
4142
|
+
"attribute": "show-in-chooser"
|
|
4143
|
+
},
|
|
4144
|
+
{
|
|
4145
|
+
"kind": "field",
|
|
4146
|
+
"name": "sortable",
|
|
4147
|
+
"type": {
|
|
4148
|
+
"text": "boolean | null"
|
|
4149
|
+
},
|
|
4150
|
+
"default": "null",
|
|
4151
|
+
"description": "Allows sorting by this column. Default: `true` when it has a `path`, `valueGetter` or `comparator`.",
|
|
4152
|
+
"attribute": "sortable"
|
|
4153
|
+
},
|
|
4154
|
+
{
|
|
4155
|
+
"kind": "field",
|
|
4156
|
+
"name": "sortOrder",
|
|
4157
|
+
"type": {
|
|
4158
|
+
"text": "GridSortOrder | null"
|
|
4159
|
+
},
|
|
4160
|
+
"default": "null",
|
|
4161
|
+
"description": "Initial sort direction. Afterwards the sorting is grid state.",
|
|
4162
|
+
"attribute": "sort-order"
|
|
4163
|
+
},
|
|
4164
|
+
{
|
|
4165
|
+
"kind": "field",
|
|
4166
|
+
"name": "sortIndex",
|
|
4167
|
+
"type": {
|
|
4168
|
+
"text": "number | null"
|
|
4169
|
+
},
|
|
4170
|
+
"default": "null",
|
|
4171
|
+
"description": "Priority of the initial sort among columns (lower first).",
|
|
4172
|
+
"attribute": "sort-index"
|
|
4173
|
+
},
|
|
4174
|
+
{
|
|
4175
|
+
"kind": "field",
|
|
4176
|
+
"name": "comparator",
|
|
4177
|
+
"type": {
|
|
4178
|
+
"text": "GridColumnComparator | null"
|
|
4179
|
+
},
|
|
4180
|
+
"default": "null",
|
|
4181
|
+
"description": "Custom ascending comparator: `(valueA, valueB, itemA, itemB) => number`."
|
|
4182
|
+
},
|
|
4183
|
+
{
|
|
4184
|
+
"kind": "field",
|
|
4185
|
+
"name": "groupValueGetter",
|
|
4186
|
+
"type": {
|
|
4187
|
+
"text": "((item: any) => unknown) | null"
|
|
4188
|
+
},
|
|
4189
|
+
"default": "null",
|
|
4190
|
+
"description": "Value used to GROUP by this column (a range or bucket: decade, initial\nletter), property only. Groups are identified, sorted and shown by the\nreturned value; `dataType`, `comparator`, `format` and `displayValue` do\nnot apply to it."
|
|
4191
|
+
},
|
|
4192
|
+
{
|
|
4193
|
+
"kind": "field",
|
|
4194
|
+
"name": "groupable",
|
|
4195
|
+
"type": {
|
|
4196
|
+
"text": "boolean | null"
|
|
4197
|
+
},
|
|
4198
|
+
"default": "null",
|
|
4199
|
+
"description": "Allows the user to group by this column (`groupable=\"false\"` prevents\nit). Default: `true` when it has a `path`, `valueGetter` or\n`groupValueGetter`. Only limits the user: `groupColumn()` still works.",
|
|
4200
|
+
"attribute": "groupable"
|
|
4201
|
+
},
|
|
4202
|
+
{
|
|
4203
|
+
"kind": "field",
|
|
4204
|
+
"name": "filterable",
|
|
4205
|
+
"type": {
|
|
4206
|
+
"text": "boolean | null"
|
|
4207
|
+
},
|
|
4208
|
+
"default": "null",
|
|
4209
|
+
"description": "Allows filtering by this column (filter row, header filter and, by\ndefault, the search panel). Default (`null`): `true` when the column has\na `path`. `filterable=\"false\"` disables it.",
|
|
4210
|
+
"attribute": "filterable"
|
|
4211
|
+
},
|
|
4212
|
+
{
|
|
4213
|
+
"kind": "field",
|
|
4214
|
+
"name": "exportable",
|
|
4215
|
+
"type": {
|
|
4216
|
+
"text": "boolean | null"
|
|
4217
|
+
},
|
|
4218
|
+
"default": "null",
|
|
4219
|
+
"description": "Includes this column in exports (`exportCsv`, `getExportData`, the\nxlsx adapter) and in Ctrl+C. Default (`null`): `true` when it has a\n`path`, `valueGetter` or `displayValue` (a `renderer`-only column has no\ntext). `exportable=\"false\"` leaves it out.",
|
|
4220
|
+
"attribute": "exportable"
|
|
4221
|
+
},
|
|
4222
|
+
{
|
|
4223
|
+
"kind": "field",
|
|
4224
|
+
"name": "filterOperations",
|
|
4225
|
+
"type": {
|
|
4226
|
+
"text": "readonly GridFilterOperation[] | null"
|
|
4227
|
+
},
|
|
4228
|
+
"default": "null",
|
|
4229
|
+
"description": "Operations of the filter row operation menu. Attribute: space separated\nlist (`filter-operations=\"contains startswith =\"`); unknown tokens are\nignored with a warning. Default by data type.",
|
|
4230
|
+
"attribute": "filter-operations"
|
|
4231
|
+
},
|
|
4232
|
+
{
|
|
4233
|
+
"kind": "field",
|
|
4234
|
+
"name": "defaultFilterOperation",
|
|
4235
|
+
"type": {
|
|
4236
|
+
"text": "GridFilterOperation | null"
|
|
4237
|
+
},
|
|
4238
|
+
"default": "null",
|
|
4239
|
+
"description": "Operation of the filter row editor. Default: `contains` for text, `=`\notherwise; one outside `filterOperations` falls back to the first of the\nlist. Unknown attribute values are ignored with a warning.",
|
|
4240
|
+
"attribute": "default-filter-operation"
|
|
4241
|
+
},
|
|
4242
|
+
{
|
|
4243
|
+
"kind": "field",
|
|
4244
|
+
"name": "editable",
|
|
4245
|
+
"type": {
|
|
4246
|
+
"text": "boolean | null"
|
|
4247
|
+
},
|
|
4248
|
+
"default": "null",
|
|
4249
|
+
"description": "Allows editing the cells of this column (with `allow-editing` on the\ngrid). Default (`null`): `true` when it has a `path` or a\n`valueSetter`. `editable=\"false\"` makes it read-only.",
|
|
4250
|
+
"attribute": "editable"
|
|
4251
|
+
},
|
|
4252
|
+
{
|
|
4253
|
+
"kind": "field",
|
|
4254
|
+
"name": "editorRenderer",
|
|
4255
|
+
"type": {
|
|
4256
|
+
"text": "GridEditorRenderer | null"
|
|
4257
|
+
},
|
|
4258
|
+
"default": "null",
|
|
4259
|
+
"description": "Builds the cell editor instead of the built-in one (property only). See `GridEditorRenderer`."
|
|
4260
|
+
},
|
|
4261
|
+
{
|
|
4262
|
+
"kind": "field",
|
|
4263
|
+
"name": "validationRules",
|
|
4264
|
+
"type": {
|
|
4265
|
+
"text": "readonly GridValidationRule[] | null"
|
|
4266
|
+
},
|
|
4267
|
+
"default": "null",
|
|
4268
|
+
"description": "Rules checked when a value is committed and before saving (property only). See `GridValidationRule`."
|
|
4269
|
+
},
|
|
4270
|
+
{
|
|
4271
|
+
"kind": "field",
|
|
4272
|
+
"name": "valueSetter",
|
|
4273
|
+
"type": {
|
|
4274
|
+
"text": "GridValueSetter | null"
|
|
4275
|
+
},
|
|
4276
|
+
"default": "null",
|
|
4277
|
+
"description": "Writes an edited value into the pending change of the row (property only). Default: sets `path`."
|
|
4278
|
+
},
|
|
4279
|
+
{
|
|
4280
|
+
"kind": "field",
|
|
4281
|
+
"name": "columns",
|
|
4282
|
+
"type": {
|
|
4283
|
+
"text": "readonly DataGridColumn[] | null"
|
|
4284
|
+
},
|
|
4285
|
+
"description": "Nested `<u-grid-column>` elements (read-only): when there is at least\none, this column is a band. `null` without nested columns. The array is\nfrozen and stays the same while the nested columns don't change.",
|
|
4286
|
+
"readonly": true
|
|
4287
|
+
},
|
|
4288
|
+
{
|
|
4289
|
+
"kind": "field",
|
|
4290
|
+
"name": "label",
|
|
4291
|
+
"type": {
|
|
4292
|
+
"text": "string"
|
|
4293
|
+
},
|
|
4294
|
+
"description": "Header label: the trimmed text content of the element, without the text of nested columns. Also\nthe column's name outside the header. Empty: the header shows `path`; elsewhere `path`, then `name`, as is.",
|
|
4295
|
+
"readonly": true
|
|
4296
|
+
}
|
|
4297
|
+
],
|
|
4298
|
+
"attributes": [
|
|
4299
|
+
{
|
|
4300
|
+
"name": "width",
|
|
4301
|
+
"type": {
|
|
4302
|
+
"text": "number | null"
|
|
4303
|
+
},
|
|
4304
|
+
"description": "Width in px. Changing it after the column is rendered overrides the width\nchosen by the user. Under virtual column rendering (`columnRenderingMode`)\na column without `width` takes its auto-size width or `max(minWidth, 150)` px.",
|
|
4305
|
+
"fieldName": "width"
|
|
4306
|
+
},
|
|
4307
|
+
{
|
|
4308
|
+
"name": "group-index",
|
|
4309
|
+
"type": {
|
|
4310
|
+
"text": "number | null"
|
|
4311
|
+
},
|
|
4312
|
+
"description": "INITIAL grouping level. Afterwards grouping is grid state: use\n`grid.groupColumn()` / `grid.ungroupColumn()`. Changing it after the\ncolumn is rendered still regroups, but is deprecated.",
|
|
4313
|
+
"fieldName": "groupIndex"
|
|
4314
|
+
},
|
|
4315
|
+
{
|
|
4316
|
+
"name": "path",
|
|
4317
|
+
"type": {
|
|
4318
|
+
"text": "string"
|
|
4319
|
+
},
|
|
4320
|
+
"default": "''",
|
|
4321
|
+
"description": "Dot path of the cell value in the row item (`\"address.city\"`).",
|
|
4322
|
+
"fieldName": "path"
|
|
4323
|
+
},
|
|
4324
|
+
{
|
|
4325
|
+
"name": "name",
|
|
4326
|
+
"type": {
|
|
4327
|
+
"text": "string"
|
|
4328
|
+
},
|
|
4329
|
+
"default": "''",
|
|
4330
|
+
"description": "Stable id of the column in the grid state (`getState`, `stateStorage`)\nand in string column references (`summary` items look it up before\n`path`). Default: `path`. A column without `name` and `path` is left out\nof the state.",
|
|
4331
|
+
"fieldName": "name"
|
|
4332
|
+
},
|
|
4333
|
+
{
|
|
4334
|
+
"name": "type",
|
|
4335
|
+
"type": {
|
|
4336
|
+
"text": "GridColumnDataType | null"
|
|
4337
|
+
},
|
|
4338
|
+
"default": "null",
|
|
4339
|
+
"description": "Data type of the column (`string`, `number`, `date`, `datetime`,\n`boolean`); attribute `type`. Without it, inferred from the first\nnon-null value. The `data-type` attribute is deprecated (`data-*`\nbelongs to the page author).",
|
|
4340
|
+
"fieldName": "dataType"
|
|
4341
|
+
},
|
|
4342
|
+
{
|
|
4343
|
+
"name": "alignment",
|
|
4344
|
+
"type": {
|
|
4345
|
+
"text": "GridColumnAlignment | null"
|
|
4346
|
+
},
|
|
4347
|
+
"default": "null",
|
|
4348
|
+
"description": "Logical alignment (`start`, `center`, `end`); follows RTL. Default by data type. In a band, of the header label (default `start`).",
|
|
4349
|
+
"fieldName": "alignment"
|
|
4350
|
+
},
|
|
4351
|
+
{
|
|
4352
|
+
"name": "boolean-display",
|
|
4353
|
+
"type": {
|
|
4354
|
+
"text": "GridColumnBooleanDisplay | null"
|
|
4355
|
+
},
|
|
4356
|
+
"default": "null",
|
|
4357
|
+
"description": "`text` (default) or `icon` (read-only check icon) for boolean columns.",
|
|
4358
|
+
"fieldName": "booleanDisplay"
|
|
4359
|
+
},
|
|
4360
|
+
{
|
|
4361
|
+
"name": "wrap",
|
|
4362
|
+
"type": {
|
|
4363
|
+
"text": "boolean"
|
|
4364
|
+
},
|
|
4365
|
+
"default": "false",
|
|
4366
|
+
"description": "Wraps the text in several lines instead of an ellipsis (`wrap=\"false\"` turns it off).",
|
|
4367
|
+
"fieldName": "wrap"
|
|
4368
|
+
},
|
|
4369
|
+
{
|
|
4370
|
+
"name": "min-width",
|
|
4371
|
+
"type": {
|
|
4372
|
+
"text": "number | null"
|
|
4373
|
+
},
|
|
4374
|
+
"default": "null",
|
|
4375
|
+
"description": "Minimum width in px (also when resizing and auto-sizing).",
|
|
4376
|
+
"fieldName": "minWidth"
|
|
4377
|
+
},
|
|
4378
|
+
{
|
|
4379
|
+
"name": "empty-text",
|
|
4380
|
+
"type": {
|
|
4381
|
+
"text": "string | null"
|
|
4382
|
+
},
|
|
4383
|
+
"default": "null",
|
|
4384
|
+
"description": "Text for empty values (`null`/`undefined`).",
|
|
4385
|
+
"fieldName": "emptyText"
|
|
4386
|
+
},
|
|
4387
|
+
{
|
|
4388
|
+
"name": "max-width",
|
|
4389
|
+
"type": {
|
|
4390
|
+
"text": "number | null"
|
|
4391
|
+
},
|
|
4392
|
+
"default": "null",
|
|
4393
|
+
"description": "Maximum width in px when resizing and auto-sizing.",
|
|
4394
|
+
"fieldName": "maxWidth"
|
|
4395
|
+
},
|
|
4396
|
+
{
|
|
4397
|
+
"name": "hiding-priority",
|
|
4398
|
+
"type": {
|
|
4399
|
+
"text": "number | null"
|
|
4400
|
+
},
|
|
4401
|
+
"default": "null",
|
|
4402
|
+
"description": "Order in which the column leaves the table when the grid is too narrow\n(`auto-hide-columns`; its values move to the row details): the lowest\ngoes first, ties from the end. When any column has a `hiding-priority`\n(grouped or hidden ones included), only those columns hide; otherwise\ncolumns hide from the last one. Fixed columns never hide. Empty or not a\nnumber = none. Ignored on bands.",
|
|
4403
|
+
"fieldName": "hidingPriority"
|
|
4404
|
+
},
|
|
4405
|
+
{
|
|
4406
|
+
"name": "resizable",
|
|
4407
|
+
"type": {
|
|
4408
|
+
"text": "boolean | null"
|
|
4409
|
+
},
|
|
4410
|
+
"default": "null",
|
|
4411
|
+
"description": "`resizable=\"false\"` prevents resizing this column even with `column-resizing`.",
|
|
4412
|
+
"fieldName": "resizable"
|
|
4413
|
+
},
|
|
4414
|
+
{
|
|
4415
|
+
"name": "fixed",
|
|
4416
|
+
"type": {
|
|
4417
|
+
"text": "GridColumnFixed"
|
|
4418
|
+
},
|
|
4419
|
+
"default": "null",
|
|
4420
|
+
"description": "Fixes the column at the `start` or `end` of the scrollable area (logical:\nmirrors in RTL). A fixed band fixes its columns; ignored on nested columns.",
|
|
4421
|
+
"fieldName": "fixed"
|
|
4422
|
+
},
|
|
4423
|
+
{
|
|
4424
|
+
"name": "visible",
|
|
4425
|
+
"type": {
|
|
4426
|
+
"text": "boolean | null"
|
|
4427
|
+
},
|
|
4428
|
+
"default": "null",
|
|
4429
|
+
"description": "INITIAL visibility (`visible=\"false\"` hides). Afterwards the user changes it in the chooser.",
|
|
4430
|
+
"fieldName": "visible"
|
|
4431
|
+
},
|
|
4432
|
+
{
|
|
4433
|
+
"name": "show-in-chooser",
|
|
4434
|
+
"type": {
|
|
4435
|
+
"text": "boolean | null"
|
|
4436
|
+
},
|
|
4437
|
+
"default": "null",
|
|
4438
|
+
"description": "`show-in-chooser=\"false\"` removes the column from the chooser (the user cannot hide it).",
|
|
4439
|
+
"fieldName": "showInChooser"
|
|
4440
|
+
},
|
|
4441
|
+
{
|
|
4442
|
+
"name": "sortable",
|
|
4443
|
+
"type": {
|
|
4444
|
+
"text": "boolean | null"
|
|
4445
|
+
},
|
|
4446
|
+
"default": "null",
|
|
4447
|
+
"description": "Allows sorting by this column. Default: `true` when it has a `path`, `valueGetter` or `comparator`.",
|
|
4448
|
+
"fieldName": "sortable"
|
|
4449
|
+
},
|
|
4450
|
+
{
|
|
4451
|
+
"name": "sort-order",
|
|
4452
|
+
"type": {
|
|
4453
|
+
"text": "GridSortOrder | null"
|
|
4454
|
+
},
|
|
4455
|
+
"default": "null",
|
|
4456
|
+
"description": "Initial sort direction. Afterwards the sorting is grid state.",
|
|
4457
|
+
"fieldName": "sortOrder"
|
|
4458
|
+
},
|
|
4459
|
+
{
|
|
4460
|
+
"name": "sort-index",
|
|
4461
|
+
"type": {
|
|
4462
|
+
"text": "number | null"
|
|
4463
|
+
},
|
|
4464
|
+
"default": "null",
|
|
4465
|
+
"description": "Priority of the initial sort among columns (lower first).",
|
|
4466
|
+
"fieldName": "sortIndex"
|
|
4467
|
+
},
|
|
4468
|
+
{
|
|
4469
|
+
"name": "groupable",
|
|
4470
|
+
"type": {
|
|
4471
|
+
"text": "boolean | null"
|
|
4472
|
+
},
|
|
4473
|
+
"default": "null",
|
|
4474
|
+
"description": "Allows the user to group by this column (`groupable=\"false\"` prevents\nit). Default: `true` when it has a `path`, `valueGetter` or\n`groupValueGetter`. Only limits the user: `groupColumn()` still works.",
|
|
4475
|
+
"fieldName": "groupable"
|
|
4476
|
+
},
|
|
4477
|
+
{
|
|
4478
|
+
"name": "filterable",
|
|
4479
|
+
"type": {
|
|
4480
|
+
"text": "boolean | null"
|
|
4481
|
+
},
|
|
4482
|
+
"default": "null",
|
|
4483
|
+
"description": "Allows filtering by this column (filter row, header filter and, by\ndefault, the search panel). Default (`null`): `true` when the column has\na `path`. `filterable=\"false\"` disables it.",
|
|
4484
|
+
"fieldName": "filterable"
|
|
4485
|
+
},
|
|
4486
|
+
{
|
|
4487
|
+
"name": "exportable",
|
|
4488
|
+
"type": {
|
|
4489
|
+
"text": "boolean | null"
|
|
4490
|
+
},
|
|
4491
|
+
"default": "null",
|
|
4492
|
+
"description": "Includes this column in exports (`exportCsv`, `getExportData`, the\nxlsx adapter) and in Ctrl+C. Default (`null`): `true` when it has a\n`path`, `valueGetter` or `displayValue` (a `renderer`-only column has no\ntext). `exportable=\"false\"` leaves it out.",
|
|
4493
|
+
"fieldName": "exportable"
|
|
4494
|
+
},
|
|
4495
|
+
{
|
|
4496
|
+
"name": "filter-operations",
|
|
4497
|
+
"type": {
|
|
4498
|
+
"text": "readonly GridFilterOperation[] | null"
|
|
4499
|
+
},
|
|
4500
|
+
"default": "null",
|
|
4501
|
+
"description": "Operations of the filter row operation menu. Attribute: space separated\nlist (`filter-operations=\"contains startswith =\"`); unknown tokens are\nignored with a warning. Default by data type.",
|
|
4502
|
+
"fieldName": "filterOperations"
|
|
4503
|
+
},
|
|
4504
|
+
{
|
|
4505
|
+
"name": "default-filter-operation",
|
|
4506
|
+
"type": {
|
|
4507
|
+
"text": "GridFilterOperation | null"
|
|
4508
|
+
},
|
|
4509
|
+
"default": "null",
|
|
4510
|
+
"description": "Operation of the filter row editor. Default: `contains` for text, `=`\notherwise; one outside `filterOperations` falls back to the first of the\nlist. Unknown attribute values are ignored with a warning.",
|
|
4511
|
+
"fieldName": "defaultFilterOperation"
|
|
4512
|
+
},
|
|
4513
|
+
{
|
|
4514
|
+
"name": "editable",
|
|
4515
|
+
"type": {
|
|
4516
|
+
"text": "boolean | null"
|
|
4517
|
+
},
|
|
4518
|
+
"default": "null",
|
|
4519
|
+
"description": "Allows editing the cells of this column (with `allow-editing` on the\ngrid). Default (`null`): `true` when it has a `path` or a\n`valueSetter`. `editable=\"false\"` makes it read-only.",
|
|
4520
|
+
"fieldName": "editable"
|
|
4521
|
+
},
|
|
4522
|
+
{
|
|
4523
|
+
"name": "data-type",
|
|
4524
|
+
"type": {
|
|
4525
|
+
"text": "GridColumnDataType | null"
|
|
4526
|
+
},
|
|
4527
|
+
"description": "Deprecated alias of `type`.",
|
|
4528
|
+
"deprecated": "Use `type`.",
|
|
4529
|
+
"fieldName": "dataType"
|
|
4530
|
+
}
|
|
4531
|
+
],
|
|
4532
|
+
"superclass": {
|
|
4533
|
+
"name": "LitElement",
|
|
4534
|
+
"package": "lit"
|
|
4535
|
+
},
|
|
4536
|
+
"tagName": "u-grid-column",
|
|
4537
|
+
"customElement": true
|
|
4538
|
+
}
|
|
4539
|
+
],
|
|
4540
|
+
"exports": [
|
|
4541
|
+
{
|
|
4542
|
+
"kind": "js",
|
|
4543
|
+
"name": "DataGridColumn",
|
|
4544
|
+
"declaration": {
|
|
4545
|
+
"name": "DataGridColumn",
|
|
4546
|
+
"module": "dist/grid-column.js"
|
|
4547
|
+
}
|
|
4548
|
+
},
|
|
4549
|
+
{
|
|
4550
|
+
"kind": "custom-element-definition",
|
|
4551
|
+
"name": "u-grid-column",
|
|
4552
|
+
"declaration": {
|
|
4553
|
+
"name": "DataGridColumn",
|
|
4554
|
+
"module": "dist/grid-column.js"
|
|
4555
|
+
}
|
|
4556
|
+
}
|
|
4557
|
+
]
|
|
4558
|
+
},
|
|
4559
|
+
{
|
|
4560
|
+
"kind": "javascript-module",
|
|
4561
|
+
"path": "dist/grid-column-def.js",
|
|
4562
|
+
"declarations": [],
|
|
4563
|
+
"exports": []
|
|
4564
|
+
},
|
|
4565
|
+
{
|
|
4566
|
+
"kind": "javascript-module",
|
|
4567
|
+
"path": "dist/grid-i18n.js",
|
|
4568
|
+
"declarations": [
|
|
4569
|
+
{
|
|
4570
|
+
"kind": "variable",
|
|
4571
|
+
"name": "gridLanguageContext",
|
|
4572
|
+
"description": "Lit context carrying the default language for every grid in the subtree.\nUses a shared symbol so duplicate module copies resolve to the same context."
|
|
4573
|
+
},
|
|
4574
|
+
{
|
|
4575
|
+
"kind": "function",
|
|
4576
|
+
"name": "setGridTranslation",
|
|
4577
|
+
"return": {
|
|
4578
|
+
"type": {
|
|
4579
|
+
"text": "void"
|
|
4580
|
+
}
|
|
4581
|
+
},
|
|
4582
|
+
"parameters": [
|
|
4583
|
+
{
|
|
4584
|
+
"name": "language",
|
|
4585
|
+
"type": {
|
|
4586
|
+
"text": "string"
|
|
4587
|
+
}
|
|
4588
|
+
},
|
|
4589
|
+
{
|
|
4590
|
+
"name": "translation",
|
|
4591
|
+
"type": {
|
|
4592
|
+
"text": "GridI18nInput"
|
|
4593
|
+
}
|
|
4594
|
+
}
|
|
4595
|
+
],
|
|
4596
|
+
"description": "Overrides part (or all) of a built-in translation. Missing keys keep their\nprevious value, so a partial object is enough. The deprecated key names\n(`clearSorting`, `pinStart`, `pinEnd`, `unpin`, `groupPanelMenu`) are still accepted, with a\nconsole warning."
|
|
4597
|
+
},
|
|
4598
|
+
{
|
|
4599
|
+
"kind": "function",
|
|
4600
|
+
"name": "setGridLanguage",
|
|
4601
|
+
"return": {
|
|
4602
|
+
"type": {
|
|
4603
|
+
"text": "void"
|
|
4604
|
+
}
|
|
4605
|
+
},
|
|
4606
|
+
"parameters": [
|
|
4607
|
+
{
|
|
4608
|
+
"name": "language",
|
|
4609
|
+
"type": {
|
|
4610
|
+
"text": "string"
|
|
4611
|
+
}
|
|
4612
|
+
},
|
|
4613
|
+
{
|
|
4614
|
+
"name": "host",
|
|
4615
|
+
"default": "document.body",
|
|
4616
|
+
"type": {
|
|
4617
|
+
"text": "HTMLElement"
|
|
4618
|
+
}
|
|
4619
|
+
}
|
|
4620
|
+
],
|
|
4621
|
+
"description": "Provides a default language through Lit context on `host` (the document body\nby default). Every grid without an explicit `language` inherits this value."
|
|
4622
|
+
}
|
|
4623
|
+
],
|
|
4624
|
+
"exports": [
|
|
4625
|
+
{
|
|
4626
|
+
"kind": "js",
|
|
4627
|
+
"name": "gridLanguageContext",
|
|
4628
|
+
"declaration": {
|
|
4629
|
+
"name": "gridLanguageContext",
|
|
4630
|
+
"module": "dist/grid-i18n.js"
|
|
4631
|
+
}
|
|
4632
|
+
},
|
|
4633
|
+
{
|
|
4634
|
+
"kind": "js",
|
|
4635
|
+
"name": "setGridTranslation",
|
|
4636
|
+
"declaration": {
|
|
4637
|
+
"name": "setGridTranslation",
|
|
4638
|
+
"module": "dist/grid-i18n.js"
|
|
4639
|
+
}
|
|
4640
|
+
},
|
|
4641
|
+
{
|
|
4642
|
+
"kind": "js",
|
|
4643
|
+
"name": "setGridLanguage",
|
|
4644
|
+
"declaration": {
|
|
4645
|
+
"name": "setGridLanguage",
|
|
4646
|
+
"module": "dist/grid-i18n.js"
|
|
4647
|
+
}
|
|
4648
|
+
}
|
|
4649
|
+
]
|
|
4650
|
+
}
|
|
4651
|
+
]
|
|
4652
|
+
}
|