@syncfusion/ej2-angular-grids 32.1.25 → 32.2.3-ngcc
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/@syncfusion/ej2-angular-grids.es5.js +1008 -0
- package/@syncfusion/ej2-angular-grids.es5.js.map +1 -0
- package/@syncfusion/ej2-angular-grids.js +947 -0
- package/@syncfusion/ej2-angular-grids.js.map +1 -0
- package/LICENSE +10 -0
- package/README.md +8 -16
- package/dist/ej2-angular-grids.umd.js +1634 -0
- package/dist/ej2-angular-grids.umd.js.map +1 -0
- package/dist/ej2-angular-grids.umd.min.js +11 -0
- package/dist/ej2-angular-grids.umd.min.js.map +1 -0
- package/ej2-angular-grids.d.ts +6 -0
- package/ej2-angular-grids.metadata.json +1 -0
- package/package.json +48 -30
- package/public_api.d.ts +1 -1
- package/schematics/utils/lib-details.js +2 -2
- package/schematics/utils/lib-details.ts +2 -2
- package/src/grid/aggregate-columns.directive.d.ts +114 -119
- package/src/grid/aggregates.directive.d.ts +40 -45
- package/src/grid/columns.directive.d.ts +479 -484
- package/src/grid/grid-all.module.d.ts +30 -36
- package/src/grid/grid.component.d.ts +163 -168
- package/src/grid/grid.module.d.ts +5 -15
- package/src/grid/stacked-column.directive.d.ts +481 -486
- package/src/index.d.ts +11 -11
- package/src/pager/pager-all.module.d.ts +5 -11
- package/src/pager/pager.component.d.ts +40 -43
- package/src/pager/pager.module.d.ts +5 -11
- package/styles/bds-lite.scss +1 -1
- package/styles/bds.scss +2 -2
- package/styles/bootstrap-dark-lite.scss +1 -1
- package/styles/bootstrap-dark.scss +2 -2
- package/styles/bootstrap-lite.scss +1 -1
- package/styles/bootstrap.scss +2 -2
- package/styles/bootstrap4-lite.scss +1 -1
- package/styles/bootstrap4.scss +2 -2
- package/styles/bootstrap5-dark-lite.scss +1 -1
- package/styles/bootstrap5-dark.scss +2 -2
- package/styles/bootstrap5-lite.scss +1 -1
- package/styles/bootstrap5.3-lite.scss +1 -1
- package/styles/bootstrap5.3.scss +2 -2
- package/styles/bootstrap5.scss +2 -2
- package/styles/excel-filter/bds.scss +1 -1
- package/styles/excel-filter/bootstrap-dark.scss +1 -1
- package/styles/excel-filter/bootstrap.scss +1 -1
- package/styles/excel-filter/bootstrap4.scss +1 -1
- package/styles/excel-filter/bootstrap5-dark.scss +1 -1
- package/styles/excel-filter/bootstrap5.3.scss +1 -1
- package/styles/excel-filter/bootstrap5.scss +1 -1
- package/styles/excel-filter/fabric-dark.scss +1 -1
- package/styles/excel-filter/fabric.scss +1 -1
- package/styles/excel-filter/fluent-dark.scss +1 -1
- package/styles/excel-filter/fluent.scss +1 -1
- package/styles/excel-filter/fluent2.scss +1 -1
- package/styles/excel-filter/highcontrast-light.scss +1 -1
- package/styles/excel-filter/highcontrast.scss +1 -1
- package/styles/excel-filter/material-dark.scss +1 -1
- package/styles/excel-filter/material.scss +1 -1
- package/styles/excel-filter/material3-dark.scss +2 -1
- package/styles/excel-filter/material3.scss +2 -1
- package/styles/excel-filter/tailwind-dark.scss +1 -1
- package/styles/excel-filter/tailwind.scss +1 -1
- package/styles/excel-filter/tailwind3.scss +1 -1
- package/styles/fabric-dark-lite.scss +1 -1
- package/styles/fabric-dark.scss +2 -2
- package/styles/fabric-lite.scss +1 -1
- package/styles/fabric.scss +2 -2
- package/styles/fluent-dark-lite.scss +1 -1
- package/styles/fluent-dark.scss +2 -2
- package/styles/fluent-lite.scss +1 -1
- package/styles/fluent.scss +2 -2
- package/styles/fluent2-lite.scss +1 -1
- package/styles/fluent2.scss +2 -2
- package/styles/grid/bds.scss +1 -1
- package/styles/grid/bootstrap-dark.scss +1 -1
- package/styles/grid/bootstrap.scss +1 -1
- package/styles/grid/bootstrap4.scss +1 -1
- package/styles/grid/bootstrap5-dark.scss +1 -1
- package/styles/grid/bootstrap5.3.scss +1 -1
- package/styles/grid/bootstrap5.scss +1 -1
- package/styles/grid/fabric-dark.scss +1 -1
- package/styles/grid/fabric.scss +1 -1
- package/styles/grid/fluent-dark.scss +1 -1
- package/styles/grid/fluent.scss +1 -1
- package/styles/grid/fluent2.scss +1 -1
- package/styles/grid/highcontrast-light.scss +1 -1
- package/styles/grid/highcontrast.scss +1 -1
- package/styles/grid/material-dark.scss +1 -1
- package/styles/grid/material.scss +1 -1
- package/styles/grid/material3-dark.scss +2 -1
- package/styles/grid/material3.scss +2 -1
- package/styles/grid/tailwind-dark.scss +1 -1
- package/styles/grid/tailwind.scss +1 -1
- package/styles/grid/tailwind3.scss +1 -1
- package/styles/highcontrast-light-lite.scss +1 -1
- package/styles/highcontrast-light.scss +2 -2
- package/styles/highcontrast-lite.scss +1 -1
- package/styles/highcontrast.scss +2 -2
- package/styles/material-dark-lite.scss +1 -1
- package/styles/material-dark.scss +2 -2
- package/styles/material-lite.scss +1 -1
- package/styles/material.scss +2 -2
- package/styles/material3-dark-lite.scss +1 -1
- package/styles/material3-dark.scss +3 -2
- package/styles/material3-lite.scss +1 -1
- package/styles/material3.scss +3 -2
- package/styles/tailwind-dark-lite.scss +1 -1
- package/styles/tailwind-dark.scss +2 -2
- package/styles/tailwind-lite.scss +1 -1
- package/styles/tailwind.scss +2 -2
- package/styles/tailwind3-lite.scss +1 -1
- package/styles/tailwind3.scss +2 -2
- package/CHANGELOG.md +0 -2853
- package/esm2020/public_api.mjs +0 -2
- package/esm2020/src/grid/aggregate-columns.directive.mjs +0 -84
- package/esm2020/src/grid/aggregates.directive.mjs +0 -69
- package/esm2020/src/grid/columns.directive.mjs +0 -100
- package/esm2020/src/grid/grid-all.module.mjs +0 -98
- package/esm2020/src/grid/grid.component.mjs +0 -298
- package/esm2020/src/grid/grid.module.mjs +0 -61
- package/esm2020/src/grid/stacked-column.directive.mjs +0 -100
- package/esm2020/src/index.mjs +0 -12
- package/esm2020/src/pager/pager-all.module.mjs +0 -23
- package/esm2020/src/pager/pager.component.mjs +0 -66
- package/esm2020/src/pager/pager.module.mjs +0 -25
- package/esm2020/syncfusion-ej2-angular-grids.mjs +0 -5
- package/fesm2015/syncfusion-ej2-angular-grids.mjs +0 -881
- package/fesm2015/syncfusion-ej2-angular-grids.mjs.map +0 -1
- package/fesm2020/syncfusion-ej2-angular-grids.mjs +0 -881
- package/fesm2020/syncfusion-ej2-angular-grids.mjs.map +0 -1
- package/syncfusion-ej2-angular-grids.d.ts +0 -5
|
@@ -1,484 +1,479 @@
|
|
|
1
|
-
import { ViewContainerRef } from '@angular/core';
|
|
2
|
-
import { ComplexBase, ArrayBase } from '@syncfusion/ej2-angular-base';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* <e-column field='
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
*
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
*
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
*
|
|
76
|
-
* * `
|
|
77
|
-
* * `
|
|
78
|
-
*
|
|
79
|
-
*
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
*
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
-
* *
|
|
92
|
-
* *
|
|
93
|
-
* *
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
*```
|
|
106
|
-
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
* { field: '
|
|
111
|
-
* {
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
*
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
*
|
|
122
|
-
*
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
*```
|
|
126
|
-
|
|
127
|
-
*
|
|
128
|
-
*
|
|
129
|
-
*
|
|
130
|
-
* {
|
|
131
|
-
*
|
|
132
|
-
*
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
*
|
|
136
|
-
*
|
|
137
|
-
*
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
*
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
*
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
*
|
|
151
|
-
* @
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
*
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
*
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
*
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
*
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
*
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
*
|
|
182
|
-
*
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
*
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
*
|
|
193
|
-
*
|
|
194
|
-
*
|
|
195
|
-
*
|
|
196
|
-
*
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
*
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
*
|
|
207
|
-
* It
|
|
208
|
-
* *
|
|
209
|
-
*
|
|
210
|
-
*
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
*```
|
|
214
|
-
|
|
215
|
-
*
|
|
216
|
-
*
|
|
217
|
-
*
|
|
218
|
-
* {
|
|
219
|
-
*
|
|
220
|
-
*
|
|
221
|
-
*
|
|
222
|
-
*
|
|
223
|
-
* input.
|
|
224
|
-
* input
|
|
225
|
-
*
|
|
226
|
-
* }
|
|
227
|
-
*
|
|
228
|
-
*
|
|
229
|
-
* }
|
|
230
|
-
*
|
|
231
|
-
*
|
|
232
|
-
*
|
|
233
|
-
*
|
|
234
|
-
*
|
|
235
|
-
*
|
|
236
|
-
*
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
*
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
*
|
|
245
|
-
*
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
*
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
*
|
|
256
|
-
*
|
|
257
|
-
* [`
|
|
258
|
-
*
|
|
259
|
-
* @
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
*
|
|
265
|
-
*
|
|
266
|
-
*
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
*```
|
|
270
|
-
|
|
271
|
-
*
|
|
272
|
-
*
|
|
273
|
-
*
|
|
274
|
-
*}
|
|
275
|
-
*
|
|
276
|
-
*
|
|
277
|
-
*
|
|
278
|
-
*
|
|
279
|
-
* { field: '
|
|
280
|
-
*
|
|
281
|
-
*
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
*
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
*
|
|
290
|
-
*
|
|
291
|
-
* *
|
|
292
|
-
* *
|
|
293
|
-
* *
|
|
294
|
-
*
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
*
|
|
300
|
-
*
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
*
|
|
306
|
-
* @
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
*
|
|
312
|
-
*
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
*```
|
|
316
|
-
|
|
317
|
-
*
|
|
318
|
-
*
|
|
319
|
-
*
|
|
320
|
-
* { field: '
|
|
321
|
-
*
|
|
322
|
-
*
|
|
323
|
-
*
|
|
324
|
-
*
|
|
325
|
-
*
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
*
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
*
|
|
334
|
-
*
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
*
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
*
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
*
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
*
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
*
|
|
360
|
-
*
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
*
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
*
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
*
|
|
376
|
-
*
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
*
|
|
382
|
-
*
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
*
|
|
392
|
-
*
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
*
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
*
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
*
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
*
|
|
413
|
-
*
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
*```
|
|
417
|
-
|
|
418
|
-
*
|
|
419
|
-
*
|
|
420
|
-
*
|
|
421
|
-
* { field: '
|
|
422
|
-
*
|
|
423
|
-
*
|
|
424
|
-
*
|
|
425
|
-
*
|
|
426
|
-
*
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
*
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
*
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
*
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
*
|
|
445
|
-
*
|
|
446
|
-
* @
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
*
|
|
452
|
-
* @
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
*
|
|
460
|
-
*
|
|
461
|
-
* @
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
*
|
|
467
|
-
*
|
|
468
|
-
* @
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
export declare class ColumnsDirective extends ArrayBase<ColumnsDirective> {
|
|
481
|
-
constructor();
|
|
482
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ColumnsDirective, never>;
|
|
483
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ColumnsDirective, "ejs-grid>e-columns", never, {}, {}, ["children"]>;
|
|
484
|
-
}
|
|
1
|
+
import { ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { ComplexBase, ArrayBase } from '@syncfusion/ej2-angular-base';
|
|
3
|
+
/**
|
|
4
|
+
* `e-column` directive represent a column of the Angular Grid.
|
|
5
|
+
* It must be contained in a Grid component(`ejs-grid`).
|
|
6
|
+
* ```html
|
|
7
|
+
* <ejs-grid [dataSource]='data' allowPaging='true' allowSorting='true'>
|
|
8
|
+
* <e-columns>
|
|
9
|
+
* <e-column field='ID' width='100'></e-column>
|
|
10
|
+
* <e-column field='name' headerText='Name' width='100'></e-column>
|
|
11
|
+
* </e-columns>
|
|
12
|
+
* </ejs-grid>
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
export declare class ColumnDirective extends ComplexBase<ColumnDirective> {
|
|
16
|
+
private viewContainerRef;
|
|
17
|
+
directivePropList: any;
|
|
18
|
+
childColumns: any;
|
|
19
|
+
tags: string[];
|
|
20
|
+
/**
|
|
21
|
+
* Defines the data type of the column.
|
|
22
|
+
* @default null
|
|
23
|
+
*/
|
|
24
|
+
type: any;
|
|
25
|
+
/**
|
|
26
|
+
* If `allowEditing` set to false, then it disables editing of a particular column.
|
|
27
|
+
* By default all columns are editable.
|
|
28
|
+
* @default true
|
|
29
|
+
*/
|
|
30
|
+
allowEditing: any;
|
|
31
|
+
/**
|
|
32
|
+
* If `allowFiltering` set to false, then it disables filtering option and filter bar element of a particular column.
|
|
33
|
+
* By default all columns are filterable.
|
|
34
|
+
* @default true
|
|
35
|
+
*/
|
|
36
|
+
allowFiltering: any;
|
|
37
|
+
/**
|
|
38
|
+
* If `allowGrouping` set to false, then it disables grouping of a particular column.
|
|
39
|
+
* By default all columns are groupable.
|
|
40
|
+
* @default true
|
|
41
|
+
*/
|
|
42
|
+
allowGrouping: any;
|
|
43
|
+
/**
|
|
44
|
+
* If `allowReordering` set to false, then it disables reorder of a particular column.
|
|
45
|
+
* By default all columns can be reorder.
|
|
46
|
+
* @default true
|
|
47
|
+
*/
|
|
48
|
+
allowReordering: any;
|
|
49
|
+
/**
|
|
50
|
+
* If `allowResizing` set to false, it disables resize option of a particular column.
|
|
51
|
+
* @default true
|
|
52
|
+
*/
|
|
53
|
+
allowResizing: any;
|
|
54
|
+
/**
|
|
55
|
+
* If `allowSearching` set to false, then it disables Searching of a particular column.
|
|
56
|
+
* By default all columns allow Searching.
|
|
57
|
+
* @default true
|
|
58
|
+
*/
|
|
59
|
+
allowSearching: any;
|
|
60
|
+
/**
|
|
61
|
+
* If `allowSorting` set to false, then it disables sorting option of a particular column.
|
|
62
|
+
* By default all columns are sortable.
|
|
63
|
+
* @default true
|
|
64
|
+
*/
|
|
65
|
+
allowSorting: any;
|
|
66
|
+
/**
|
|
67
|
+
* If `autoFit` set to true, then the particular column content width will be
|
|
68
|
+
* adjusted based on its content in the initial rendering itself.
|
|
69
|
+
* Setting this property as true is equivalent to calling `autoFitColumns` method in the `dataBound` event.
|
|
70
|
+
* @default false
|
|
71
|
+
*/
|
|
72
|
+
autoFit: any;
|
|
73
|
+
/**
|
|
74
|
+
* Defines the cell content's overflow mode. The available modes are
|
|
75
|
+
* * `Clip` - Truncates the cell content when it overflows its area.
|
|
76
|
+
* * `Ellipsis` - Displays ellipsis when the cell content overflows its area.
|
|
77
|
+
* * `EllipsisWithTooltip` - Displays ellipsis when the cell content overflows its area
|
|
78
|
+
* also it will display tooltip while hover on ellipsis applied cell.
|
|
79
|
+
* @default Ellipsis
|
|
80
|
+
*/
|
|
81
|
+
clipMode: any;
|
|
82
|
+
/**
|
|
83
|
+
* Used to render multiple header rows(stacked headers) on the Grid header.
|
|
84
|
+
* @default null
|
|
85
|
+
*/
|
|
86
|
+
columns: any;
|
|
87
|
+
/**
|
|
88
|
+
* `commands` provides an option to display command buttons in every cell.
|
|
89
|
+
* The available built-in command buttons are
|
|
90
|
+
* * Edit - Edit the record.
|
|
91
|
+
* * Delete - Delete the record.
|
|
92
|
+
* * Save - Save the record.
|
|
93
|
+
* * Cancel - Cancel the edit state.
|
|
94
|
+
*
|
|
95
|
+
* The following code example implements the custom command column.
|
|
96
|
+
*```html
|
|
97
|
+
*<style type="text/css" class="cssStyles">
|
|
98
|
+
*.details-icon:before
|
|
99
|
+
*{
|
|
100
|
+
* content:"\e74d";
|
|
101
|
+
*}
|
|
102
|
+
*</style>
|
|
103
|
+
*<div id="Grid"></div>
|
|
104
|
+
*```
|
|
105
|
+
*```typescript
|
|
106
|
+
*var gridObj = new Grid({
|
|
107
|
+
*datasource: window.gridData,
|
|
108
|
+
*columns : [
|
|
109
|
+
* { field: 'CustomerID', headerText: 'Customer ID' },
|
|
110
|
+
* { field: 'CustomerName', headerText: 'Customer Name' },
|
|
111
|
+
* {commands: [{buttonOption:{content: 'Details', click: onClick, cssClass: details-icon}}], headerText: 'Customer Details'}
|
|
112
|
+
*]
|
|
113
|
+
*gridObj.appendTo("#Grid");
|
|
114
|
+
*```
|
|
115
|
+
*
|
|
116
|
+
* @default null
|
|
117
|
+
*/
|
|
118
|
+
commands: any;
|
|
119
|
+
/**
|
|
120
|
+
* The CSS styles and attributes of the content cells of a particular column can be customized.
|
|
121
|
+
*
|
|
122
|
+
* ```html
|
|
123
|
+
*<div id="Grid"></div>
|
|
124
|
+
*```
|
|
125
|
+
*```typescript
|
|
126
|
+
*let gridObj: Grid = new Grid({
|
|
127
|
+
*dataSource: filterData,
|
|
128
|
+
*columns: [
|
|
129
|
+
* { field: 'OrderID', headerText: 'Order ID' },
|
|
130
|
+
* {
|
|
131
|
+
* field: 'EmployeeID', headerText: 'Employee ID', customAttributes: {
|
|
132
|
+
* class: 'employeeid',
|
|
133
|
+
* type: 'employee-id-cell'
|
|
134
|
+
* }
|
|
135
|
+
* }]
|
|
136
|
+
*});
|
|
137
|
+
*gridObj.appendTo('#Grid');
|
|
138
|
+
*```
|
|
139
|
+
*
|
|
140
|
+
* @default null
|
|
141
|
+
*/
|
|
142
|
+
customAttributes: any;
|
|
143
|
+
/**
|
|
144
|
+
* Defines the column data source which will act as foreign data source.
|
|
145
|
+
* @default null
|
|
146
|
+
*/
|
|
147
|
+
dataSource: any;
|
|
148
|
+
/**
|
|
149
|
+
* Defines default values for the component when adding a new record to the Grid.
|
|
150
|
+
* @default null
|
|
151
|
+
* @asptype object
|
|
152
|
+
*/
|
|
153
|
+
defaultValue: any;
|
|
154
|
+
/**
|
|
155
|
+
* If `disableHtmlEncode` is set to true, it encodes the HTML of the header and content cells.
|
|
156
|
+
* @default true
|
|
157
|
+
*/
|
|
158
|
+
disableHtmlEncode: any;
|
|
159
|
+
/**
|
|
160
|
+
* If `displayAsCheckBox` is set to true, it displays the column value as a check box instead of Boolean value.
|
|
161
|
+
* @default false
|
|
162
|
+
*/
|
|
163
|
+
displayAsCheckBox: any;
|
|
164
|
+
/**
|
|
165
|
+
* Defines the `IEditCell`(../../grid/edit/#cell-edit-template) object to customize default edit cell.
|
|
166
|
+
* @default {}
|
|
167
|
+
*/
|
|
168
|
+
edit: any;
|
|
169
|
+
/**
|
|
170
|
+
* Defines the type of component for editing.
|
|
171
|
+
* @default 'stringedit'
|
|
172
|
+
*/
|
|
173
|
+
editType: any;
|
|
174
|
+
/**
|
|
175
|
+
* Allows grid to perform column spanning on the specified column.
|
|
176
|
+
* @default true
|
|
177
|
+
*/
|
|
178
|
+
enableColumnSpan: any;
|
|
179
|
+
/**
|
|
180
|
+
* If `enableGroupByFormat` set to true, then it groups the particular column by formatted values.
|
|
181
|
+
* By default no columns are group by format.
|
|
182
|
+
* @default true
|
|
183
|
+
*/
|
|
184
|
+
enableGroupByFormat: any;
|
|
185
|
+
/**
|
|
186
|
+
* Allows grid to perform row spanning on the specified column.
|
|
187
|
+
* @default true
|
|
188
|
+
*/
|
|
189
|
+
enableRowSpan: any;
|
|
190
|
+
/**
|
|
191
|
+
* Defines the field name of column which is mapped with mapping name of DataSource.
|
|
192
|
+
* The bounded columns can be sort, filter and group etc.,
|
|
193
|
+
* If the `field` name contains “dot”, then it is considered as complex binding.
|
|
194
|
+
* The `field` name must be a valid JavaScript identifier,
|
|
195
|
+
* the first character must be an alphabet and should not contain spaces and special characters.
|
|
196
|
+
* @default ''
|
|
197
|
+
*/
|
|
198
|
+
field: any;
|
|
199
|
+
/**
|
|
200
|
+
* Defines the filter options to customize filtering for the particular column.
|
|
201
|
+
* @default {}
|
|
202
|
+
*/
|
|
203
|
+
filter: any;
|
|
204
|
+
/**
|
|
205
|
+
* The `filterBarTemplate` is used to add a custom component instead of default input component for filter bar.
|
|
206
|
+
* It have create and read functions.
|
|
207
|
+
* * create: It is used for creating custom components.
|
|
208
|
+
* * read: It is used to perform custom filter action.
|
|
209
|
+
*
|
|
210
|
+
* ```html
|
|
211
|
+
*<div id="Grid"></div>
|
|
212
|
+
*```
|
|
213
|
+
*```typescript
|
|
214
|
+
*let gridObj: Grid = new Grid({
|
|
215
|
+
*dataSource: filterData,
|
|
216
|
+
*columns: [
|
|
217
|
+
* { field: 'OrderID', headerText: 'Order ID' },
|
|
218
|
+
* {
|
|
219
|
+
* field: 'EmployeeID', filterBarTemplate: {
|
|
220
|
+
* create: (args: { element: Element, column: Column }) => {
|
|
221
|
+
* let input: HTMLInputElement = document.createElement('input');
|
|
222
|
+
* input.id = 'EmployeeID';
|
|
223
|
+
* input.type = 'text';
|
|
224
|
+
* return input;
|
|
225
|
+
* },
|
|
226
|
+
* write: (args: { element: Element, column: Column }) => {
|
|
227
|
+
* args.element.addEventListener('input', args.column.filterBarTemplate.read as EventListener);
|
|
228
|
+
* },
|
|
229
|
+
* read: (args: { element: HTMLInputElement, columnIndex: number, column: Column }) => {
|
|
230
|
+
* gridObj.filterByColumn(args.element.id, 'equal', args.element.value);
|
|
231
|
+
* }
|
|
232
|
+
* }
|
|
233
|
+
* }],
|
|
234
|
+
* allowFiltering: true
|
|
235
|
+
*});
|
|
236
|
+
*gridObj.appendTo('#Grid');
|
|
237
|
+
*```
|
|
238
|
+
*
|
|
239
|
+
* @default null
|
|
240
|
+
*/
|
|
241
|
+
filterBarTemplate: any;
|
|
242
|
+
/**
|
|
243
|
+
* Defines the mapping column name of the foreign data source.
|
|
244
|
+
* If it is not defined then the `columns.field` will be considered as mapping column name
|
|
245
|
+
* @default null
|
|
246
|
+
*/
|
|
247
|
+
foreignKeyField: any;
|
|
248
|
+
/**
|
|
249
|
+
* Defines the display column name from the foreign data source which will be obtained from comparing local and foreign data
|
|
250
|
+
* @default null
|
|
251
|
+
*/
|
|
252
|
+
foreignKeyValue: any;
|
|
253
|
+
/**
|
|
254
|
+
* It is used to change display value with the given format and does not affect the original data.
|
|
255
|
+
* Gets the format from the user which can be standard or custom
|
|
256
|
+
* [`number`](../../common/internationalization/#manipulating-numbers)
|
|
257
|
+
* and [`date`](../../common/internationalization/#manipulating-datetime) formats.
|
|
258
|
+
* @default null
|
|
259
|
+
* @asptype string
|
|
260
|
+
*/
|
|
261
|
+
format: any;
|
|
262
|
+
/**
|
|
263
|
+
* Defines the method which is used to achieve custom formatting from an external function.
|
|
264
|
+
* This function triggers before rendering of each cell.
|
|
265
|
+
*
|
|
266
|
+
* ```html
|
|
267
|
+
*<div id="Grid"></div>
|
|
268
|
+
*```
|
|
269
|
+
*```typescript
|
|
270
|
+
*class ExtendedFormatter implements ICellFormatter {
|
|
271
|
+
*public getValue(column: Column, data: Object): Object {
|
|
272
|
+
* return '<span style="color:' + (data['Verified'] ? 'green' : 'red') + '"><i>' + data['Verified'] + '</i><span>';
|
|
273
|
+
*}
|
|
274
|
+
*}
|
|
275
|
+
*let gridObj: Grid = new Grid({
|
|
276
|
+
* dataSource: filterData,
|
|
277
|
+
* columns: [
|
|
278
|
+
* { field: 'ShipName', headerText: 'Ship Name' },
|
|
279
|
+
* { field: 'Verified', headerText: 'Verified Status', formatter: ExtendedFormatter }]
|
|
280
|
+
*});
|
|
281
|
+
*gridObj.appendTo('#Grid');
|
|
282
|
+
*```
|
|
283
|
+
*
|
|
284
|
+
* @default null
|
|
285
|
+
*/
|
|
286
|
+
formatter: any;
|
|
287
|
+
/**
|
|
288
|
+
* defines which side the column need to freeze
|
|
289
|
+
* The available built-in freeze directions are
|
|
290
|
+
* * Left - Freeze the column at left side.
|
|
291
|
+
* * Right - Freeze the column at right side.
|
|
292
|
+
* * Fixed - Freeze the column at Center.
|
|
293
|
+
* * None - Does not freeze the column.
|
|
294
|
+
* @default None
|
|
295
|
+
*/
|
|
296
|
+
freeze: any;
|
|
297
|
+
/**
|
|
298
|
+
* Defines the header text of column which is used to display in column header.
|
|
299
|
+
* If `headerText` is not defined, then field name value will be assigned to header text.
|
|
300
|
+
* @default null
|
|
301
|
+
*/
|
|
302
|
+
headerText: any;
|
|
303
|
+
/**
|
|
304
|
+
* Define the alignment of column header which is used to align the text of column header.
|
|
305
|
+
* @aspdefaultvalueignore
|
|
306
|
+
* @default null
|
|
307
|
+
*/
|
|
308
|
+
headerTextAlign: any;
|
|
309
|
+
/**
|
|
310
|
+
* Defines the method used to apply custom header cell values from external function and display this on each cell rendered.
|
|
311
|
+
*
|
|
312
|
+
* ```html
|
|
313
|
+
*<div id="Grid"></div>
|
|
314
|
+
*```
|
|
315
|
+
*```typescript
|
|
316
|
+
*let gridObj: Grid = new Grid({
|
|
317
|
+
*dataSource: [{ EmployeeID: 1, EmployeeName: ['John', 'M'] }, { EmployeeID: 2, EmployeeName: ['Peter', 'A'] }],
|
|
318
|
+
*columns: [
|
|
319
|
+
* { field: 'EmployeeID', headerText: 'Employee ID' },
|
|
320
|
+
* { field: 'EmployeeName', headerText: 'Employee First Name',
|
|
321
|
+
* headerValueAccessor: (field: string,column: Column) => {
|
|
322
|
+
* return "newheadername";
|
|
323
|
+
* },
|
|
324
|
+
* }]
|
|
325
|
+
*});
|
|
326
|
+
*```
|
|
327
|
+
*
|
|
328
|
+
* @default null
|
|
329
|
+
*/
|
|
330
|
+
headerValueAccessor: any;
|
|
331
|
+
/**
|
|
332
|
+
* column visibility can change based on its [`Media Queries`](http://cssmediaqueries.com/what-are-css-media-queries.html).
|
|
333
|
+
* `hideAtMedia` accepts only valid Media Queries.
|
|
334
|
+
* @default ''
|
|
335
|
+
*/
|
|
336
|
+
hideAtMedia: any;
|
|
337
|
+
/**
|
|
338
|
+
* Gets the unique identifier value of the column. It is used to get the object.
|
|
339
|
+
* @default null
|
|
340
|
+
*/
|
|
341
|
+
index: any;
|
|
342
|
+
/**
|
|
343
|
+
* You can use this property to freeze selected columns in grid.
|
|
344
|
+
* @default false
|
|
345
|
+
*/
|
|
346
|
+
isFrozen: any;
|
|
347
|
+
/**
|
|
348
|
+
* If `isIdentity` is set to true, then this column is considered as identity column.
|
|
349
|
+
* @default false
|
|
350
|
+
*/
|
|
351
|
+
isIdentity: any;
|
|
352
|
+
/**
|
|
353
|
+
* If `isPrimaryKey` is set to true, considers this column as the primary key constraint.
|
|
354
|
+
* @default false
|
|
355
|
+
*/
|
|
356
|
+
isPrimaryKey: any;
|
|
357
|
+
/**
|
|
358
|
+
* Defines the mapping column name of the foreign data source.
|
|
359
|
+
* If it is not defined then the `columns.field` will be considered as mapping column name
|
|
360
|
+
* @default false
|
|
361
|
+
*/
|
|
362
|
+
lockColumn: any;
|
|
363
|
+
/**
|
|
364
|
+
* Defines the maximum width of the column in pixel or percentage, which will restrict resizing beyond this pixel or percentage.
|
|
365
|
+
* @default ''
|
|
366
|
+
*/
|
|
367
|
+
maxWidth: any;
|
|
368
|
+
/**
|
|
369
|
+
* Defines the minimum width of the column in pixels or percentage.
|
|
370
|
+
* @default ''
|
|
371
|
+
*/
|
|
372
|
+
minWidth: any;
|
|
373
|
+
/**
|
|
374
|
+
* If `showColumnMenu` set to false, then it disable the column menu of a particular column.
|
|
375
|
+
* By default column menu will show for all columns
|
|
376
|
+
* @default true
|
|
377
|
+
*/
|
|
378
|
+
showColumnMenu: any;
|
|
379
|
+
/**
|
|
380
|
+
* If `showInColumnChooser` set to false, then hides the particular column in column chooser.
|
|
381
|
+
* By default all columns are displayed in column Chooser.
|
|
382
|
+
* @default true
|
|
383
|
+
*/
|
|
384
|
+
showInColumnChooser: any;
|
|
385
|
+
/**
|
|
386
|
+
* It defines the custom sort comparer function.
|
|
387
|
+
*/
|
|
388
|
+
sortComparer: any;
|
|
389
|
+
/**
|
|
390
|
+
* Determines the behavior of the `aria-label` attribute for cells in template columns.
|
|
391
|
+
* If enableAriaLabel is set to false, the aria-label attribute is not applied to template column cells, which affects screen reader accessibility.
|
|
392
|
+
* @default {}
|
|
393
|
+
*/
|
|
394
|
+
templateOptions: any;
|
|
395
|
+
/**
|
|
396
|
+
* Defines the alignment of the column in both header and content cells.
|
|
397
|
+
* @default Left
|
|
398
|
+
*/
|
|
399
|
+
textAlign: any;
|
|
400
|
+
/**
|
|
401
|
+
* Gets the unique identifier value of the column. It is used to get the object.
|
|
402
|
+
* @default ''
|
|
403
|
+
*/
|
|
404
|
+
uid: any;
|
|
405
|
+
/**
|
|
406
|
+
* `editType`(../../grid/edit/#cell-edit-type-and-its-params) Defines rules to validate data before creating and updating.
|
|
407
|
+
* @default null
|
|
408
|
+
*/
|
|
409
|
+
validationRules: any;
|
|
410
|
+
/**
|
|
411
|
+
* Defines the method used to apply custom cell values from external function and display this on each cell rendered.
|
|
412
|
+
*
|
|
413
|
+
* ```html
|
|
414
|
+
*<div id="Grid"></div>
|
|
415
|
+
*```
|
|
416
|
+
*```typescript
|
|
417
|
+
*let gridObj: Grid = new Grid({
|
|
418
|
+
*dataSource: [{ EmployeeID: 1, EmployeeName: ['John', 'M'] }, { EmployeeID: 2, EmployeeName: ['Peter', 'A'] }],
|
|
419
|
+
*columns: [
|
|
420
|
+
* { field: 'EmployeeID', headerText: 'Employee ID' },
|
|
421
|
+
* { field: 'EmployeeName', headerText: 'Employee First Name',
|
|
422
|
+
* valueAccessor: (field: string, data: Object, column: Column) => {
|
|
423
|
+
* return data['EmployeeName'][0];
|
|
424
|
+
* },
|
|
425
|
+
* }]
|
|
426
|
+
*});
|
|
427
|
+
*```
|
|
428
|
+
*
|
|
429
|
+
* @default null
|
|
430
|
+
*/
|
|
431
|
+
valueAccessor: any;
|
|
432
|
+
/**
|
|
433
|
+
* If `visible` is set to false, hides the particular column. By default, all columns are displayed.
|
|
434
|
+
* @default true
|
|
435
|
+
*/
|
|
436
|
+
visible: any;
|
|
437
|
+
/**
|
|
438
|
+
* Defines the width of the column in pixels or percentage.
|
|
439
|
+
* @default ''
|
|
440
|
+
*/
|
|
441
|
+
width: any;
|
|
442
|
+
/**
|
|
443
|
+
* Defines the column template that renders customized element in each cell of the column.
|
|
444
|
+
* It accepts either [template string](../../common/template-engine/) or HTML element ID.
|
|
445
|
+
* @default null
|
|
446
|
+
* @asptype string
|
|
447
|
+
*/
|
|
448
|
+
template: any;
|
|
449
|
+
/**
|
|
450
|
+
* Defines the column template as string or HTML element ID which is used to add customized element in the column header.
|
|
451
|
+
* @default null
|
|
452
|
+
* @asptype string
|
|
453
|
+
*/
|
|
454
|
+
headerTemplate: any;
|
|
455
|
+
commandsTemplate: any;
|
|
456
|
+
filter_itemTemplate: any;
|
|
457
|
+
/**
|
|
458
|
+
* Defines the cell edit template that used as editor for a particular column.
|
|
459
|
+
* It accepts either template string or HTML element ID.
|
|
460
|
+
* @default null
|
|
461
|
+
* @asptype string
|
|
462
|
+
*/
|
|
463
|
+
editTemplate: any;
|
|
464
|
+
/**
|
|
465
|
+
* Defines the filter template/UI that used as filter for a particular column.
|
|
466
|
+
* It accepts either template string or HTML element ID.
|
|
467
|
+
* @default null
|
|
468
|
+
* @asptype string
|
|
469
|
+
*/
|
|
470
|
+
filterTemplate: any;
|
|
471
|
+
constructor(viewContainerRef: ViewContainerRef);
|
|
472
|
+
}
|
|
473
|
+
/**
|
|
474
|
+
* Column Array Directive
|
|
475
|
+
* @private
|
|
476
|
+
*/
|
|
477
|
+
export declare class ColumnsDirective extends ArrayBase<ColumnsDirective> {
|
|
478
|
+
constructor();
|
|
479
|
+
}
|