@syncfusion/ej2-angular-treegrid 32.1.21 → 32.1.22-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-treegrid.es5.js +798 -0
- package/@syncfusion/ej2-angular-treegrid.es5.js.map +1 -0
- package/@syncfusion/ej2-angular-treegrid.js +748 -0
- package/@syncfusion/ej2-angular-treegrid.js.map +1 -0
- package/CHANGELOG.md +65 -14
- package/README.md +8 -16
- package/dist/ej2-angular-treegrid.umd.js +979 -0
- package/dist/ej2-angular-treegrid.umd.js.map +1 -0
- package/dist/ej2-angular-treegrid.umd.min.js +11 -0
- package/dist/ej2-angular-treegrid.umd.min.js.map +1 -0
- package/ej2-angular-treegrid.d.ts +5 -0
- package/ej2-angular-treegrid.metadata.json +1 -0
- package/license +10 -0
- package/package.json +48 -45
- package/postinstall/tagchange.js +18 -0
- package/schematics/utils/lib-details.js +2 -2
- package/schematics/utils/lib-details.ts +2 -2
- package/src/treegrid/aggregate-columns.directive.d.ts +28 -31
- package/src/treegrid/aggregates.directive.d.ts +2 -7
- package/src/treegrid/columns.directive.d.ts +77 -70
- package/src/treegrid/stacked-column.directive.d.ts +77 -70
- package/src/treegrid/treegrid-all.module.d.ts +0 -6
- package/src/treegrid/treegrid.component.d.ts +1 -23
- package/src/treegrid/treegrid.module.d.ts +0 -10
- package/styles/bootstrap-dark.scss +1 -1
- package/styles/bootstrap.scss +1 -1
- package/styles/bootstrap4.scss +1 -1
- package/styles/bootstrap5-dark.scss +1 -1
- package/styles/bootstrap5.scss +1 -1
- package/styles/fabric-dark.scss +1 -1
- package/styles/fabric.scss +1 -1
- package/styles/fluent-dark.scss +1 -1
- package/styles/fluent.scss +1 -1
- package/styles/highcontrast-light.scss +1 -1
- package/styles/highcontrast.scss +1 -1
- package/styles/material-dark.scss +1 -1
- package/styles/material.scss +1 -1
- package/styles/material3-dark.scss +2 -1
- package/styles/material3.scss +2 -1
- package/styles/tailwind-dark.scss +1 -1
- package/styles/tailwind.scss +1 -1
- package/styles/treegrid/bootstrap-dark.scss +1 -1
- package/styles/treegrid/bootstrap.scss +1 -1
- package/styles/treegrid/bootstrap4.scss +1 -1
- package/styles/treegrid/bootstrap5-dark.scss +1 -1
- package/styles/treegrid/bootstrap5.scss +1 -1
- package/styles/treegrid/fabric-dark.scss +1 -1
- package/styles/treegrid/fabric.scss +1 -1
- package/styles/treegrid/fluent-dark.scss +1 -1
- package/styles/treegrid/fluent.scss +1 -1
- package/styles/treegrid/highcontrast-light.scss +1 -1
- package/styles/treegrid/highcontrast.scss +1 -1
- package/styles/treegrid/material-dark.scss +1 -1
- package/styles/treegrid/material.scss +1 -1
- package/styles/treegrid/material3-dark.scss +2 -1
- package/styles/treegrid/material3.scss +2 -1
- package/styles/treegrid/tailwind-dark.scss +1 -1
- package/styles/treegrid/tailwind.scss +1 -1
- package/esm2020/public_api.mjs +0 -2
- package/esm2020/src/index.mjs +0 -9
- package/esm2020/src/treegrid/aggregate-columns.directive.mjs +0 -72
- package/esm2020/src/treegrid/aggregates.directive.mjs +0 -69
- package/esm2020/src/treegrid/columns.directive.mjs +0 -100
- package/esm2020/src/treegrid/stacked-column.directive.mjs +0 -100
- package/esm2020/src/treegrid/treegrid-all.module.mjs +0 -89
- package/esm2020/src/treegrid/treegrid.component.mjs +0 -271
- package/esm2020/src/treegrid/treegrid.module.mjs +0 -61
- package/esm2020/syncfusion-ej2-angular-treegrid.mjs +0 -5
- package/fesm2015/syncfusion-ej2-angular-treegrid.mjs +0 -734
- package/fesm2015/syncfusion-ej2-angular-treegrid.mjs.map +0 -1
- package/fesm2020/syncfusion-ej2-angular-treegrid.mjs +0 -734
- package/fesm2020/syncfusion-ej2-angular-treegrid.mjs.map +0 -1
- package/styles/bds-lite.css +0 -1
- package/styles/bds-lite.scss +0 -1
- package/styles/bds.css +0 -1
- package/styles/bds.scss +0 -1
- package/styles/bootstrap-dark-lite.css +0 -1
- package/styles/bootstrap-dark-lite.scss +0 -1
- package/styles/bootstrap-lite.css +0 -1
- package/styles/bootstrap-lite.scss +0 -1
- package/styles/bootstrap4-lite.css +0 -1
- package/styles/bootstrap4-lite.scss +0 -1
- package/styles/bootstrap5-dark-lite.css +0 -1
- package/styles/bootstrap5-dark-lite.scss +0 -1
- package/styles/bootstrap5-lite.css +0 -1
- package/styles/bootstrap5-lite.scss +0 -1
- package/styles/bootstrap5.3-lite.css +0 -1
- package/styles/bootstrap5.3-lite.scss +0 -1
- package/styles/bootstrap5.3.css +0 -1
- package/styles/bootstrap5.3.scss +0 -1
- package/styles/fabric-dark-lite.css +0 -1
- package/styles/fabric-dark-lite.scss +0 -1
- package/styles/fabric-lite.css +0 -1
- package/styles/fabric-lite.scss +0 -1
- package/styles/fluent-dark-lite.css +0 -1
- package/styles/fluent-dark-lite.scss +0 -1
- package/styles/fluent-lite.css +0 -1
- package/styles/fluent-lite.scss +0 -1
- package/styles/fluent2-lite.css +0 -1
- package/styles/fluent2-lite.scss +0 -1
- package/styles/fluent2.css +0 -1
- package/styles/fluent2.scss +0 -1
- package/styles/highcontrast-light-lite.css +0 -1
- package/styles/highcontrast-light-lite.scss +0 -1
- package/styles/highcontrast-lite.css +0 -1
- package/styles/highcontrast-lite.scss +0 -1
- package/styles/material-dark-lite.css +0 -1
- package/styles/material-dark-lite.scss +0 -1
- package/styles/material-lite.css +0 -1
- package/styles/material-lite.scss +0 -1
- package/styles/material3-dark-lite.css +0 -1
- package/styles/material3-dark-lite.scss +0 -1
- package/styles/material3-lite.css +0 -1
- package/styles/material3-lite.scss +0 -1
- package/styles/tailwind-dark-lite.css +0 -1
- package/styles/tailwind-dark-lite.scss +0 -1
- package/styles/tailwind-lite.css +0 -1
- package/styles/tailwind-lite.scss +0 -1
- package/styles/tailwind3-lite.css +0 -1
- package/styles/tailwind3-lite.scss +0 -1
- package/styles/tailwind3.css +0 -1
- package/styles/tailwind3.scss +0 -1
- package/styles/treegrid/bds.css +0 -1
- package/styles/treegrid/bds.scss +0 -1
- package/styles/treegrid/bootstrap5.3.css +0 -1
- package/styles/treegrid/bootstrap5.3.scss +0 -1
- package/styles/treegrid/fluent2.css +0 -1
- package/styles/treegrid/fluent2.scss +0 -1
- package/styles/treegrid/tailwind3.css +0 -1
- package/styles/treegrid/tailwind3.scss +0 -1
- package/syncfusion-ej2-angular-treegrid.d.ts +0 -5
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ViewContainerRef } from '@angular/core';
|
|
2
2
|
import { ComplexBase, ArrayBase } from '@syncfusion/ej2-angular-base';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
3
|
/**
|
|
5
4
|
* `e-aggregate->e-column` directive represent a aggregate column of the Angular TreeGrid.
|
|
6
5
|
* ```html
|
|
@@ -23,62 +22,62 @@ export declare class AggregateColumnDirective extends ComplexBase<AggregateColum
|
|
|
23
22
|
private viewContainerRef;
|
|
24
23
|
directivePropList: any;
|
|
25
24
|
/**
|
|
26
|
-
* Defines the aggregate type
|
|
27
|
-
* To
|
|
28
|
-
*
|
|
29
|
-
* *
|
|
30
|
-
* *
|
|
31
|
-
* *
|
|
32
|
-
* *
|
|
33
|
-
* *
|
|
34
|
-
* *
|
|
35
|
-
* *
|
|
36
|
-
* *
|
|
37
|
-
*
|
|
38
|
-
* Use `custom` to specify a custom aggregation.
|
|
39
|
-
*
|
|
25
|
+
* Defines the aggregate type of a particular column.
|
|
26
|
+
* To use multiple aggregates for single column, specify the `type` as array.
|
|
27
|
+
* Types of aggregate are,
|
|
28
|
+
* * sum
|
|
29
|
+
* * average
|
|
30
|
+
* * max
|
|
31
|
+
* * min
|
|
32
|
+
* * count
|
|
33
|
+
* * falsecount
|
|
34
|
+
* * truecount
|
|
35
|
+
* * custom
|
|
36
|
+
* > Specify the `type` value as `custom` to use custom aggregation.
|
|
40
37
|
* @asptype string
|
|
41
38
|
* @default null
|
|
42
39
|
*/
|
|
43
40
|
type: any;
|
|
44
41
|
/**
|
|
45
|
-
*
|
|
42
|
+
* Defines the column name to display the aggregate value. If `columnName` is not defined,
|
|
43
|
+
* then `field` name value will be assigned to the `columnName` property.
|
|
46
44
|
* @default null
|
|
47
45
|
*/
|
|
48
46
|
columnName: any;
|
|
49
47
|
/**
|
|
50
|
-
* Defines a
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
48
|
+
* Defines a function to calculate custom aggregate value. The `type` value should be set to `custom`.
|
|
49
|
+
* To use custom aggregate value in the template, use the key as `${custom}`.
|
|
50
|
+
* **Total aggregation**: The custom function will be called with the whole data and the current `AggregateColumn` object.
|
|
51
|
+
* **Group aggregation**: This will be called with the current group details and the `AggregateColumn` object.
|
|
54
52
|
* @default null
|
|
55
53
|
*/
|
|
56
54
|
customAggregate: any;
|
|
57
55
|
/**
|
|
58
|
-
*
|
|
56
|
+
* Defines the column name to perform aggregation.
|
|
59
57
|
* @default null
|
|
60
58
|
*/
|
|
61
59
|
field: any;
|
|
62
60
|
/**
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
* and [date](https://ej2.syncfusion.com/documentation/common/internationalization
|
|
61
|
+
* Format is applied to a calculated value before it is displayed.
|
|
62
|
+
* Gets the format from the user, which can be standard or custom
|
|
63
|
+
* [`number`](https://ej2.syncfusion.com/documentation/common/internationalization/#supported-format-string)
|
|
64
|
+
* and [`date`](https://ej2.syncfusion.com/documentation/common/internationalization/#supported-format-string-1) formats.
|
|
67
65
|
* @asptype string
|
|
68
66
|
* @default null
|
|
69
67
|
*/
|
|
70
68
|
format: any;
|
|
71
69
|
/**
|
|
72
|
-
* Defines
|
|
73
|
-
*
|
|
70
|
+
* Defines the footer cell template as a string for the aggregate column.
|
|
71
|
+
* The `type` name should be used to access aggregate values inside the template.
|
|
72
|
+
*
|
|
73
|
+
* {% codeBlock src="grid/footer-template-api/index.ts" %}{% endcodeBlock %}
|
|
74
|
+
*
|
|
74
75
|
* @default null
|
|
75
76
|
* @asptype string
|
|
76
77
|
|
|
77
78
|
*/
|
|
78
79
|
footerTemplate: any;
|
|
79
80
|
constructor(viewContainerRef: ViewContainerRef);
|
|
80
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AggregateColumnDirective, never>;
|
|
81
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AggregateColumnDirective, "ejs-treegrid>e-aggregates>e-aggregate>e-columns>e-column", never, { "columnName": "columnName"; "customAggregate": "customAggregate"; "field": "field"; "footerTemplate": "footerTemplate"; "format": "format"; "type": "type"; }, {}, ["footerTemplate"]>;
|
|
82
81
|
}
|
|
83
82
|
/**
|
|
84
83
|
* AggregateColumn Array Directive
|
|
@@ -86,6 +85,4 @@ export declare class AggregateColumnDirective extends ComplexBase<AggregateColum
|
|
|
86
85
|
*/
|
|
87
86
|
export declare class AggregateColumnsDirective extends ArrayBase<AggregateColumnsDirective> {
|
|
88
87
|
constructor();
|
|
89
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AggregateColumnsDirective, never>;
|
|
90
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AggregateColumnsDirective, "ejs-treegrid>e-aggregates>e-aggregate>e-columns", never, {}, {}, ["children"]>;
|
|
91
88
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ViewContainerRef } from '@angular/core';
|
|
2
2
|
import { ComplexBase, ArrayBase } from '@syncfusion/ej2-angular-base';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
3
|
/**
|
|
5
4
|
* `e-aggregate` directive represent a aggregate row of the Angular TreeGrid.
|
|
6
5
|
* It must be contained in a TreeGrid component(`ejs-treegrid`).
|
|
@@ -26,17 +25,15 @@ export declare class AggregateDirective extends ComplexBase<AggregateDirective>
|
|
|
26
25
|
childColumns: any;
|
|
27
26
|
tags: string[];
|
|
28
27
|
/**
|
|
29
|
-
* Configures the
|
|
28
|
+
* Configures the aggregate columns.
|
|
30
29
|
* @default []
|
|
31
30
|
*/
|
|
32
31
|
columns: any;
|
|
33
32
|
/**
|
|
34
|
-
*
|
|
33
|
+
* Display the childSummary for each parent.
|
|
35
34
|
*/
|
|
36
35
|
showChildSummary: any;
|
|
37
36
|
constructor(viewContainerRef: ViewContainerRef);
|
|
38
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AggregateDirective, never>;
|
|
39
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AggregateDirective, "ejs-treegrid>e-aggregates>e-aggregate", never, { "columns": "columns"; "showChildSummary": "showChildSummary"; }, {}, ["childColumns"]>;
|
|
40
37
|
}
|
|
41
38
|
/**
|
|
42
39
|
* Aggregate Array Directive
|
|
@@ -44,6 +41,4 @@ export declare class AggregateDirective extends ComplexBase<AggregateDirective>
|
|
|
44
41
|
*/
|
|
45
42
|
export declare class AggregatesDirective extends ArrayBase<AggregatesDirective> {
|
|
46
43
|
constructor();
|
|
47
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AggregatesDirective, never>;
|
|
48
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AggregatesDirective, "ejs-treegrid>e-aggregates", never, {}, {}, ["children"]>;
|
|
49
44
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ViewContainerRef } from '@angular/core';
|
|
2
2
|
import { ComplexBase, ArrayBase } from '@syncfusion/ej2-angular-base';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
3
|
/**
|
|
5
4
|
* `e-column` directive represent a column of the Angular TreeGrid.
|
|
6
5
|
* It must be contained in a TreeGrid component(`ejs-treegrid`).
|
|
@@ -19,53 +18,60 @@ export declare class ColumnDirective extends ComplexBase<ColumnDirective> {
|
|
|
19
18
|
childColumns: any;
|
|
20
19
|
tags: string[];
|
|
21
20
|
/**
|
|
22
|
-
* Defines the type of
|
|
21
|
+
* Defines the data type of the column.
|
|
23
22
|
* @default null
|
|
24
23
|
*/
|
|
25
24
|
type: any;
|
|
26
25
|
/**
|
|
27
|
-
*
|
|
26
|
+
* If `allowEditing` set to false, then it disables editing of a particular column.
|
|
27
|
+
* By default all columns are editable.
|
|
28
28
|
* @default true
|
|
29
29
|
*/
|
|
30
30
|
allowEditing: any;
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
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.
|
|
33
34
|
* @default true
|
|
34
35
|
*/
|
|
35
36
|
allowFiltering: any;
|
|
36
37
|
/**
|
|
37
|
-
*
|
|
38
|
+
* If `allowReordering` set to false, then it disables reorder of a particular column.
|
|
39
|
+
* By default all columns can be reorder.
|
|
38
40
|
* @default true
|
|
39
41
|
*/
|
|
40
42
|
allowReordering: any;
|
|
41
43
|
/**
|
|
42
|
-
*
|
|
44
|
+
* If `allowResizing` set to false, it disables resize option of a particular column.
|
|
43
45
|
* @default true
|
|
44
46
|
*/
|
|
45
47
|
allowResizing: any;
|
|
46
48
|
/**
|
|
47
|
-
*
|
|
49
|
+
* If `allowSorting` set to false, then it disables sorting option of a particular column.
|
|
50
|
+
* By default all columns are sortable.
|
|
48
51
|
* @default true
|
|
49
52
|
*/
|
|
50
53
|
allowSorting: any;
|
|
51
54
|
/**
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
* * `EllipsisWithTooltip`: Shows ellipsis and tooltip on hover.
|
|
55
|
+
* Defines the cell content's overflow mode. The available modes are
|
|
56
|
+
*
|
|
57
|
+
* also it will display tooltip while hover on ellipsis applied cell.
|
|
56
58
|
* @default Syncfusion.EJ2.Grids.ClipMode.Ellipsis
|
|
57
59
|
* @isenumeration true
|
|
58
60
|
* @asptype Syncfusion.EJ2.Grids.ClipMode
|
|
59
61
|
*/
|
|
60
62
|
clipMode: any;
|
|
61
63
|
/**
|
|
62
|
-
*
|
|
64
|
+
* Used to render multiple header rows(stacked headers) on TreeGrid header.
|
|
63
65
|
* @default null
|
|
64
66
|
*/
|
|
65
67
|
columns: any;
|
|
66
68
|
/**
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
+
* `commands` provides an option to display command buttons in every cell.
|
|
70
|
+
* The available built-in command buttons are
|
|
71
|
+
* * Edit - Edit the record.
|
|
72
|
+
* * Delete - Delete the record.
|
|
73
|
+
* * Save - Save the record.
|
|
74
|
+
* * Cancel - Cancel the edit state.
|
|
69
75
|
*
|
|
70
76
|
* The following code example implements the custom command column.
|
|
71
77
|
*```html
|
|
@@ -92,59 +98,55 @@ export declare class ColumnDirective extends ComplexBase<ColumnDirective> {
|
|
|
92
98
|
*/
|
|
93
99
|
commands: any;
|
|
94
100
|
/**
|
|
95
|
-
*
|
|
101
|
+
* The CSS styles and attributes of the content cells of a particular column can be customized.
|
|
96
102
|
* @default null
|
|
97
103
|
*/
|
|
98
104
|
customAttributes: any;
|
|
99
105
|
/**
|
|
100
|
-
*
|
|
106
|
+
* Defines default values for the component when adding a new record to the TreeGrid.
|
|
101
107
|
* @default null
|
|
102
108
|
*/
|
|
103
109
|
defaultValue: any;
|
|
104
110
|
/**
|
|
105
|
-
* If set to
|
|
111
|
+
* If `disableHtmlEncode` is set to true, it encodes the HTML of the header and content cells.
|
|
106
112
|
* @default true
|
|
107
113
|
*/
|
|
108
114
|
disableHtmlEncode: any;
|
|
109
115
|
/**
|
|
110
|
-
*
|
|
116
|
+
* If `displayAsCheckBox` is set to true, it displays the column value as a check box instead of Boolean value.
|
|
111
117
|
* @default false
|
|
112
118
|
*/
|
|
113
119
|
displayAsCheckBox: any;
|
|
114
120
|
/**
|
|
115
|
-
*
|
|
121
|
+
* Defines the `IEditCell` object to customize default edit cell.
|
|
116
122
|
* @default {}
|
|
117
123
|
*/
|
|
118
124
|
edit: any;
|
|
119
125
|
/**
|
|
120
|
-
*
|
|
126
|
+
* Defines the type of component for editing.
|
|
121
127
|
* @default 'stringedit'
|
|
122
128
|
*/
|
|
123
129
|
editType: any;
|
|
124
130
|
/**
|
|
125
|
-
*
|
|
126
|
-
*
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* Allows treegrid to perform row spanning on the specified column.
|
|
131
|
-
* @default true
|
|
132
|
-
*/
|
|
133
|
-
enableRowSpan: any;
|
|
134
|
-
/**
|
|
135
|
-
* Specifies the field name in the data source to which the column is bound. This field is used for operations like sorting and filtering.
|
|
136
|
-
* The field name must be a valid JavaScript identifier, beginning with a letter and avoiding spaces and special characters.
|
|
131
|
+
* Defines the field name of column which is mapped with mapping name of DataSource.
|
|
132
|
+
* The bounded columns can be sort, filter etc.,
|
|
133
|
+
* The `field` name must be a valid JavaScript identifier,
|
|
134
|
+
* the first character must be an alphabet and should not contain spaces and special characters.
|
|
137
135
|
* @default 'undefined'
|
|
138
136
|
*/
|
|
139
137
|
field: any;
|
|
140
138
|
/**
|
|
141
|
-
*
|
|
142
|
-
*
|
|
139
|
+
* Defines the filter options to customize filtering for the particular column.
|
|
140
|
+
*
|
|
141
|
+
* @default null
|
|
142
|
+
*
|
|
143
143
|
*/
|
|
144
144
|
filter: any;
|
|
145
145
|
/**
|
|
146
|
-
*
|
|
147
|
-
*
|
|
146
|
+
* The `filterBarTemplate` is used to add a custom component instead of default input component for filter bar.
|
|
147
|
+
* It have create and read functions.
|
|
148
|
+
* * create: It is used for creating custom components.
|
|
149
|
+
* * read: It is used to perform custom filter action.
|
|
148
150
|
*
|
|
149
151
|
* ```html
|
|
150
152
|
*<div id="TreeGrid"></div>
|
|
@@ -169,7 +171,7 @@ export declare class ColumnDirective extends ComplexBase<ColumnDirective> {
|
|
|
169
171
|
* gridObj.filterByColumn(args.element.id, 'equal', args.element.value);
|
|
170
172
|
* }
|
|
171
173
|
* }
|
|
172
|
-
*}],
|
|
174
|
+
* }],
|
|
173
175
|
* allowFiltering: true
|
|
174
176
|
*});
|
|
175
177
|
*gridObj.appendTo('#TreeGrid');
|
|
@@ -179,33 +181,35 @@ export declare class ColumnDirective extends ComplexBase<ColumnDirective> {
|
|
|
179
181
|
*/
|
|
180
182
|
filterBarTemplate: any;
|
|
181
183
|
/**
|
|
182
|
-
*
|
|
183
|
-
*
|
|
184
|
-
*
|
|
185
|
-
*and [date](https://ej2.syncfusion.com/documentation/common/internationalization
|
|
184
|
+
* It is used to change display value with the given format and does not affect the original data.
|
|
185
|
+
* Gets the format from the user which can be standard or custom
|
|
186
|
+
* [`number`](https://ej2.syncfusion.com/documentation/common/internationalization/#supported-format-string)
|
|
187
|
+
* and [`date`](https://ej2.syncfusion.com/documentation/common/internationalization/#supported-format-string-1) formats.
|
|
186
188
|
* @default null
|
|
187
189
|
* @asptype string
|
|
188
190
|
*/
|
|
189
191
|
format: any;
|
|
190
192
|
/**
|
|
191
|
-
*
|
|
193
|
+
* Defines the method which is used to achieve custom formatting from an external function.
|
|
194
|
+
* This function triggers before rendering of each cell.
|
|
192
195
|
* @default null
|
|
193
196
|
*/
|
|
194
197
|
formatter: any;
|
|
195
198
|
/**
|
|
196
|
-
*
|
|
199
|
+
* Defines which side the column need to freeze
|
|
197
200
|
* @default Syncfusion.EJ2.Grids.FreezeDirection.None
|
|
198
201
|
* @isenumeration true
|
|
199
202
|
* @asptype Syncfusion.EJ2.Grids.FreezeDirection
|
|
200
203
|
*/
|
|
201
204
|
freeze: any;
|
|
202
205
|
/**
|
|
203
|
-
*
|
|
206
|
+
* Defines the header text of column which is used to display in column header.
|
|
207
|
+
* If `headerText` is not defined, then field name value will be assigned to header text.
|
|
204
208
|
* @default 'undefined'
|
|
205
209
|
*/
|
|
206
210
|
headerText: any;
|
|
207
211
|
/**
|
|
208
|
-
*
|
|
212
|
+
* Define the alignment of column header which is used to align the text of column header.
|
|
209
213
|
* @default null
|
|
210
214
|
* @aspdefaultvalueignore
|
|
211
215
|
* @isenumeration true
|
|
@@ -213,119 +217,124 @@ export declare class ColumnDirective extends ComplexBase<ColumnDirective> {
|
|
|
213
217
|
*/
|
|
214
218
|
headerTextAlign: any;
|
|
215
219
|
/**
|
|
216
|
-
*
|
|
220
|
+
* Column visibility can change based on [`Media Queries`](http://cssmediaqueries.com/what-are-css-media-queries.html).
|
|
221
|
+
* `hideAtMedia` accepts only valid Media Queries.
|
|
217
222
|
* @default 'undefined'
|
|
218
223
|
*/
|
|
219
224
|
hideAtMedia: any;
|
|
220
225
|
/**
|
|
221
|
-
*
|
|
226
|
+
* You can use this property to freeze selected columns in grid.
|
|
222
227
|
* @default false
|
|
223
228
|
*/
|
|
224
229
|
isFrozen: any;
|
|
225
230
|
/**
|
|
226
|
-
*
|
|
231
|
+
* If `isIdentity` is set to true, then this column is considered as identity column.
|
|
227
232
|
* @default false
|
|
228
233
|
*/
|
|
229
234
|
isIdentity: any;
|
|
230
235
|
/**
|
|
231
|
-
*
|
|
236
|
+
* If `isPrimaryKey` is set to true, considers this column as the primary key constraint.
|
|
232
237
|
* @default false
|
|
233
238
|
*/
|
|
234
239
|
isPrimaryKey: any;
|
|
235
240
|
/**
|
|
236
|
-
*
|
|
241
|
+
* If `lockColumn` set to true, then it disables Reordering of a particular column.
|
|
242
|
+
* The locked column will be moved to first position.
|
|
237
243
|
* @default false
|
|
238
244
|
*/
|
|
239
245
|
lockColumn: any;
|
|
240
246
|
/**
|
|
241
|
-
* Defines the maximum
|
|
247
|
+
* Defines the maximum width of the column in pixels or percentage, which will restrict resizing beyond this pixels or percentage.
|
|
242
248
|
* @default 'undefined'
|
|
243
249
|
*/
|
|
244
250
|
maxWidth: any;
|
|
245
251
|
/**
|
|
246
|
-
*
|
|
252
|
+
* Defines the minimum width of the column in pixels or percentage.
|
|
247
253
|
* @default 'undefined'
|
|
248
254
|
*/
|
|
249
255
|
minWidth: any;
|
|
250
256
|
/**
|
|
251
|
-
*
|
|
257
|
+
* If `showCheckbox` set to true, then the checkboxes will be displayed in particular column.
|
|
252
258
|
* @default false
|
|
253
259
|
*/
|
|
254
260
|
showCheckbox: any;
|
|
255
261
|
/**
|
|
256
|
-
*
|
|
262
|
+
* If `showColumnMenu` set to false, then it disable the column menu of a particular column.
|
|
263
|
+
* By default column menu will show for all columns
|
|
257
264
|
* @default true
|
|
258
265
|
*/
|
|
259
266
|
showColumnMenu: any;
|
|
260
267
|
/**
|
|
261
|
-
*
|
|
268
|
+
* If `showInColumnChooser` set to false, then hide the particular column in column chooser.
|
|
269
|
+
* By default all columns are displayed in column Chooser.
|
|
262
270
|
* @default true
|
|
263
271
|
*/
|
|
264
272
|
showInColumnChooser: any;
|
|
265
273
|
/**
|
|
266
|
-
*
|
|
274
|
+
* Defines the sort comparer property.
|
|
267
275
|
* @default 'undefined'
|
|
268
276
|
*/
|
|
269
277
|
sortComparer: any;
|
|
270
278
|
/**
|
|
271
|
-
*
|
|
279
|
+
* Defines the alignment of the column in both header and content cells.
|
|
272
280
|
* @default Syncfusion.EJ2.Grids.TextAlign.Left
|
|
273
281
|
* @isenumeration true
|
|
274
282
|
* @asptype Syncfusion.EJ2.Grids.TextAlign
|
|
275
283
|
*/
|
|
276
284
|
textAlign: any;
|
|
277
285
|
/**
|
|
278
|
-
*
|
|
286
|
+
* Gets the unique identifier value of the column. It is used to get the object.
|
|
279
287
|
* @default 'undefined'
|
|
280
288
|
*/
|
|
281
289
|
uid: any;
|
|
282
290
|
/**
|
|
283
|
-
*
|
|
291
|
+
* Defines rules to validate data before creating and updating.
|
|
284
292
|
* @default null
|
|
285
293
|
*/
|
|
286
294
|
validationRules: any;
|
|
287
295
|
/**
|
|
288
|
-
*
|
|
296
|
+
* Defines the method used to apply custom cell values from external function and display this on each cell rendered.
|
|
289
297
|
* @default null
|
|
290
298
|
*/
|
|
291
299
|
valueAccessor: any;
|
|
292
300
|
/**
|
|
293
|
-
*
|
|
301
|
+
* If `visible` is set to false, hides the particular column. By default, columns are displayed.
|
|
294
302
|
* @default true
|
|
295
303
|
*/
|
|
296
304
|
visible: any;
|
|
297
305
|
/**
|
|
298
|
-
*
|
|
306
|
+
* Defines the width of the column in pixels or percentage.
|
|
299
307
|
* @default 'undefined'
|
|
300
308
|
*/
|
|
301
309
|
width: any;
|
|
302
310
|
/**
|
|
303
|
-
*
|
|
311
|
+
* Defines the column template that renders customized element in each cell of the column.
|
|
312
|
+
* It accepts either [template string](https://ej2.syncfusion.com/documentation/common/template-engine/) or HTML element ID.
|
|
304
313
|
* @default null
|
|
305
314
|
* @asptype string
|
|
306
315
|
*/
|
|
307
316
|
template: any;
|
|
308
317
|
/**
|
|
309
|
-
*
|
|
318
|
+
* Defines the header template as string or HTML element ID which is used to add customized element in the column header.
|
|
310
319
|
* @default null
|
|
311
320
|
* @asptype string
|
|
312
321
|
*/
|
|
313
322
|
headerTemplate: any;
|
|
314
323
|
filter_itemTemplate: any;
|
|
315
324
|
/**
|
|
316
|
-
*
|
|
325
|
+
* Defines the filter template/UI that is used as filter for a particular column.
|
|
326
|
+
* It accepts either template string or HTML element ID.
|
|
317
327
|
* @aspignore
|
|
318
328
|
*/
|
|
319
329
|
filterTemplate: any;
|
|
320
330
|
commandsTemplate: any;
|
|
321
331
|
/**
|
|
322
|
-
*
|
|
332
|
+
* Defines the cell edit template that used as editor for a particular column.
|
|
333
|
+
* It accepts either template string or HTML element ID.
|
|
323
334
|
* @aspignore
|
|
324
335
|
*/
|
|
325
336
|
editTemplate: any;
|
|
326
337
|
constructor(viewContainerRef: ViewContainerRef);
|
|
327
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ColumnDirective, never>;
|
|
328
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ColumnDirective, "ejs-treegrid>e-columns>e-column", never, { "allowEditing": "allowEditing"; "allowFiltering": "allowFiltering"; "allowReordering": "allowReordering"; "allowResizing": "allowResizing"; "allowSorting": "allowSorting"; "clipMode": "clipMode"; "columns": "columns"; "commands": "commands"; "customAttributes": "customAttributes"; "defaultValue": "defaultValue"; "disableHtmlEncode": "disableHtmlEncode"; "displayAsCheckBox": "displayAsCheckBox"; "edit": "edit"; "editTemplate": "editTemplate"; "editType": "editType"; "enableColumnSpan": "enableColumnSpan"; "enableRowSpan": "enableRowSpan"; "field": "field"; "filter": "filter"; "filterBarTemplate": "filterBarTemplate"; "filterTemplate": "filterTemplate"; "format": "format"; "formatter": "formatter"; "freeze": "freeze"; "headerTemplate": "headerTemplate"; "headerText": "headerText"; "headerTextAlign": "headerTextAlign"; "hideAtMedia": "hideAtMedia"; "isFrozen": "isFrozen"; "isIdentity": "isIdentity"; "isPrimaryKey": "isPrimaryKey"; "lockColumn": "lockColumn"; "maxWidth": "maxWidth"; "minWidth": "minWidth"; "showCheckbox": "showCheckbox"; "showColumnMenu": "showColumnMenu"; "showInColumnChooser": "showInColumnChooser"; "sortComparer": "sortComparer"; "template": "template"; "textAlign": "textAlign"; "type": "type"; "uid": "uid"; "validationRules": "validationRules"; "valueAccessor": "valueAccessor"; "visible": "visible"; "width": "width"; }, {}, ["template", "headerTemplate", "filter_itemTemplate", "filterTemplate", "commandsTemplate", "editTemplate", "childColumns"]>;
|
|
329
338
|
}
|
|
330
339
|
/**
|
|
331
340
|
* Column Array Directive
|
|
@@ -333,6 +342,4 @@ export declare class ColumnDirective extends ComplexBase<ColumnDirective> {
|
|
|
333
342
|
*/
|
|
334
343
|
export declare class ColumnsDirective extends ArrayBase<ColumnsDirective> {
|
|
335
344
|
constructor();
|
|
336
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ColumnsDirective, never>;
|
|
337
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ColumnsDirective, "ejs-treegrid>e-columns", never, {}, {}, ["children"]>;
|
|
338
345
|
}
|