@syncfusion/ej2-treegrid 25.2.5 → 26.1.35-469198
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/.eslintrc.json +243 -259
- package/README.md +83 -83
- package/dist/ej2-treegrid.min.js +1 -10
- package/dist/ej2-treegrid.umd.min.js +1 -10
- package/dist/ej2-treegrid.umd.min.js.map +1 -1
- package/dist/es6/ej2-treegrid.es2015.js +706 -532
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +1222 -1047
- package/dist/es6/ej2-treegrid.es5.js.map +1 -1
- package/dist/global/ej2-treegrid.min.js +1 -10
- package/dist/global/ej2-treegrid.min.js.map +1 -1
- package/dist/global/index.d.ts +0 -9
- package/dist/ts/undefined +602 -0
- package/license +9 -9
- package/package.json +70 -70
- package/src/treegrid/actions/clipboard.js +13 -13
- package/src/treegrid/actions/edit.js +8 -7
- package/src/treegrid/actions/excel-export.js +4 -3
- package/src/treegrid/actions/logger.js +13 -13
- package/src/treegrid/actions/page.js +4 -0
- package/src/treegrid/actions/rowdragdrop.js +29 -14
- package/src/treegrid/actions/selection.js +4 -1
- package/src/treegrid/actions/virtual-scroll.js +13 -13
- package/src/treegrid/base/constant.js +2 -0
- package/src/treegrid/base/data.js +2 -1
- package/src/treegrid/base/interface.js +0 -1
- package/src/treegrid/base/treegrid-model.d.ts +875 -875
- package/src/treegrid/base/treegrid.js +260 -92
- package/src/treegrid/models/column-model.d.ts +6 -6
- package/src/treegrid/models/column.js +19 -19
- package/src/treegrid/models/edit-settings-model.d.ts +72 -72
- package/src/treegrid/models/edit-settings.js +19 -19
- package/src/treegrid/models/filter-settings-model.d.ts +206 -206
- package/src/treegrid/models/filter-settings.js +19 -19
- package/src/treegrid/models/infinite-scroll-settings-model.d.ts +16 -16
- package/src/treegrid/models/infinite-scroll-settings.js +19 -19
- package/src/treegrid/models/loading-indicator.js +19 -19
- package/src/treegrid/models/page-settings-model.d.ts +46 -46
- package/src/treegrid/models/page-settings.js +19 -19
- package/src/treegrid/models/rowdrop-settings-model.d.ts +6 -6
- package/src/treegrid/models/rowdrop-settings.js +19 -19
- package/src/treegrid/models/search-settings-model.d.ts +60 -60
- package/src/treegrid/models/search-settings.js +19 -19
- package/src/treegrid/models/selection-settings-model.d.ts +66 -66
- package/src/treegrid/models/selection-settings.js +19 -19
- package/src/treegrid/models/sort-settings-model.d.ts +24 -24
- package/src/treegrid/models/sort-settings.js +19 -19
- package/src/treegrid/models/summary-model.d.ts +64 -64
- package/src/treegrid/models/summary.js +19 -19
- package/src/treegrid/models/textwrap-settings-model.d.ts +9 -9
- package/src/treegrid/models/textwrap-settings.js +19 -19
- package/src/treegrid/renderer/render.js +3 -1
- package/src/treegrid/renderer/virtual-row-model-generator.js +15 -15
- package/src/treegrid/renderer/virtual-tree-content-render.js +15 -14
- package/styles/bds-lite.css +745 -0
- package/styles/bds-lite.scss +18 -0
- package/styles/bds.css +765 -0
- package/styles/bds.scss +19 -0
- package/styles/bootstrap-dark-lite.css +506 -0
- package/styles/bootstrap-dark-lite.scss +18 -0
- package/styles/bootstrap-dark.css +187 -117
- package/styles/bootstrap-dark.scss +19 -1
- package/styles/bootstrap-lite.css +509 -0
- package/styles/bootstrap-lite.scss +18 -0
- package/styles/bootstrap.css +190 -121
- package/styles/bootstrap.scss +19 -1
- package/styles/bootstrap4-lite.css +550 -0
- package/styles/bootstrap4-lite.scss +18 -0
- package/styles/bootstrap4.css +194 -133
- package/styles/bootstrap4.scss +19 -1
- package/styles/bootstrap5-dark-lite.css +545 -0
- package/styles/bootstrap5-dark-lite.scss +18 -0
- package/styles/bootstrap5-dark.css +189 -123
- package/styles/bootstrap5-dark.scss +19 -1
- package/styles/bootstrap5-lite.css +545 -0
- package/styles/bootstrap5-lite.scss +18 -0
- package/styles/bootstrap5.3-lite.css +1637 -0
- package/styles/bootstrap5.3-lite.scss +18 -0
- package/styles/bootstrap5.3.css +1657 -0
- package/styles/bootstrap5.3.scss +19 -0
- package/styles/bootstrap5.css +188 -122
- package/styles/bootstrap5.scss +19 -1
- package/styles/fabric-dark-lite.css +485 -0
- package/styles/fabric-dark-lite.scss +18 -0
- package/styles/fabric-dark.css +188 -118
- package/styles/fabric-dark.scss +19 -1
- package/styles/fabric-lite.css +485 -0
- package/styles/fabric-lite.scss +18 -0
- package/styles/fabric.css +188 -111
- package/styles/fabric.scss +19 -1
- package/styles/fluent-dark-lite.css +548 -0
- package/styles/fluent-dark-lite.scss +18 -0
- package/styles/fluent-dark.css +195 -116
- package/styles/fluent-dark.scss +19 -1
- package/styles/fluent-lite.css +548 -0
- package/styles/fluent-lite.scss +18 -0
- package/styles/fluent.css +195 -116
- package/styles/fluent.scss +19 -1
- package/styles/fluent2-lite.css +1856 -0
- package/styles/fluent2-lite.scss +18 -0
- package/styles/fluent2.css +1879 -0
- package/styles/fluent2.scss +19 -0
- package/styles/highcontrast-light-lite.css +491 -0
- package/styles/highcontrast-light-lite.scss +18 -0
- package/styles/highcontrast-light.css +185 -103
- package/styles/highcontrast-light.scss +19 -1
- package/styles/highcontrast-lite.css +498 -0
- package/styles/highcontrast-lite.scss +18 -0
- package/styles/highcontrast.css +196 -107
- package/styles/highcontrast.scss +19 -1
- package/styles/material-dark-lite.css +567 -0
- package/styles/material-dark-lite.scss +18 -0
- package/styles/material-dark.css +220 -105
- package/styles/material-dark.scss +19 -1
- package/styles/material-lite.css +591 -0
- package/styles/material-lite.scss +18 -0
- package/styles/material.css +234 -129
- package/styles/material.scss +19 -1
- package/styles/material3-dark-lite.css +1666 -0
- package/styles/material3-dark-lite.scss +18 -0
- package/styles/material3-dark.css +1310 -187
- package/styles/material3-dark.scss +19 -1
- package/styles/material3-lite.css +1668 -0
- package/styles/material3-lite.scss +18 -0
- package/styles/material3.css +1311 -242
- package/styles/material3.scss +19 -1
- package/styles/tailwind-dark-lite.css +518 -0
- package/styles/tailwind-dark-lite.scss +18 -0
- package/styles/tailwind-dark.css +196 -103
- package/styles/tailwind-dark.scss +19 -1
- package/styles/tailwind-lite.css +518 -0
- package/styles/tailwind-lite.scss +18 -0
- package/styles/tailwind.css +196 -103
- package/styles/tailwind.scss +19 -1
- package/styles/tailwind3-lite.css +1697 -0
- package/styles/tailwind3-lite.scss +18 -0
- package/styles/tailwind3.css +1717 -0
- package/styles/tailwind3.scss +19 -0
- package/styles/treegrid/_all.scss +2 -2
- package/styles/treegrid/_bds-definition.scss +49 -28
- package/styles/treegrid/_bigger.scss +66 -0
- package/styles/treegrid/_bootstrap-dark-definition.scss +54 -30
- package/styles/treegrid/_bootstrap-definition.scss +54 -30
- package/styles/treegrid/_bootstrap4-definition.scss +54 -30
- package/styles/treegrid/_bootstrap5-definition.scss +49 -28
- package/styles/treegrid/_bootstrap5.3-definition.scss +49 -0
- package/styles/treegrid/_fabric-dark-definition.scss +54 -30
- package/styles/treegrid/_fabric-definition.scss +54 -30
- package/styles/treegrid/_fluent-definition.scss +50 -29
- package/styles/treegrid/_fluent2-definition.scss +49 -0
- package/styles/treegrid/_fusionnew-definition.scss +49 -28
- package/styles/treegrid/_highcontrast-definition.scss +54 -30
- package/styles/treegrid/_highcontrast-light-definition.scss +54 -30
- package/styles/treegrid/_icons.scss +47 -37
- package/styles/treegrid/_layout.scss +530 -455
- package/styles/treegrid/_material-dark-definition.scss +54 -30
- package/styles/treegrid/_material-definition.scss +54 -30
- package/styles/treegrid/_material3-definition.scss +49 -28
- package/styles/treegrid/_tailwind-definition.scss +49 -28
- package/styles/treegrid/_tailwind3-definition.scss +49 -0
- package/styles/treegrid/_theme.scss +1 -1
- package/styles/treegrid/bds.css +765 -0
- package/styles/treegrid/bds.scss +19 -0
- package/styles/treegrid/bootstrap-dark.css +187 -117
- package/styles/treegrid/bootstrap-dark.scss +1 -0
- package/styles/treegrid/bootstrap.css +190 -121
- package/styles/treegrid/bootstrap.scss +1 -0
- package/styles/treegrid/bootstrap4.css +194 -133
- package/styles/treegrid/bootstrap4.scss +1 -0
- package/styles/treegrid/bootstrap5-dark.css +189 -123
- package/styles/treegrid/bootstrap5-dark.scss +1 -0
- package/styles/treegrid/bootstrap5.3.css +1657 -0
- package/styles/treegrid/bootstrap5.3.scss +19 -0
- package/styles/treegrid/bootstrap5.css +188 -122
- package/styles/treegrid/bootstrap5.scss +1 -0
- package/styles/treegrid/fabric-dark.css +188 -118
- package/styles/treegrid/fabric-dark.scss +1 -0
- package/styles/treegrid/fabric.css +188 -111
- package/styles/treegrid/fabric.scss +1 -0
- package/styles/treegrid/fluent-dark.css +195 -116
- package/styles/treegrid/fluent-dark.scss +1 -0
- package/styles/treegrid/fluent.css +195 -116
- package/styles/treegrid/fluent.scss +1 -0
- package/styles/treegrid/fluent2.css +1879 -0
- package/styles/treegrid/fluent2.scss +19 -0
- package/styles/treegrid/highcontrast-light.css +185 -103
- package/styles/treegrid/highcontrast-light.scss +1 -0
- package/styles/treegrid/highcontrast.css +196 -107
- package/styles/treegrid/highcontrast.scss +1 -0
- package/styles/treegrid/icons/_bds.scss +37 -37
- package/styles/treegrid/icons/_bootstrap-dark.scss +47 -37
- package/styles/treegrid/icons/_bootstrap.scss +47 -37
- package/styles/treegrid/icons/_bootstrap4.scss +47 -37
- package/styles/treegrid/icons/_bootstrap5.3.scss +47 -0
- package/styles/treegrid/icons/_bootstrap5.scss +47 -37
- package/styles/treegrid/icons/_fabric-dark.scss +47 -37
- package/styles/treegrid/icons/_fabric.scss +47 -37
- package/styles/treegrid/icons/_fluent.scss +47 -37
- package/styles/treegrid/icons/_fluent2.scss +47 -0
- package/styles/treegrid/icons/_fusionnew.scss +30 -26
- package/styles/treegrid/icons/_highcontrast-light.scss +47 -37
- package/styles/treegrid/icons/_highcontrast.scss +47 -37
- package/styles/treegrid/icons/_material-dark.scss +47 -37
- package/styles/treegrid/icons/_material.scss +47 -37
- package/styles/treegrid/icons/_material3.scss +47 -37
- package/styles/treegrid/icons/_tailwind-dark.scss +47 -37
- package/styles/treegrid/icons/_tailwind.scss +47 -37
- package/styles/treegrid/icons/_tailwind3.scss +47 -0
- package/styles/treegrid/material-dark.css +220 -105
- package/styles/treegrid/material-dark.scss +1 -0
- package/styles/treegrid/material.css +234 -129
- package/styles/treegrid/material.scss +1 -0
- package/styles/treegrid/material3-dark.css +1310 -187
- package/styles/treegrid/material3-dark.scss +2 -1
- package/styles/treegrid/material3.css +1311 -242
- package/styles/treegrid/material3.scss +2 -1
- package/styles/treegrid/tailwind-dark.css +196 -103
- package/styles/treegrid/tailwind-dark.scss +1 -0
- package/styles/treegrid/tailwind.css +196 -103
- package/styles/treegrid/tailwind.scss +1 -0
- package/styles/treegrid/tailwind3.css +1717 -0
- package/styles/treegrid/tailwind3.scss +19 -0
- package/CHANGELOG.md +0 -250
- package/helpers/e2e/index.d.ts +0 -1
- package/helpers/e2e/index.js +0 -8
- package/helpers/e2e/treegridhelper.d.ts +0 -21
- package/helpers/e2e/treegridhelper.js +0 -83
- package/index.d.ts +0 -4
- package/index.js +0 -4
- package/src/index.d.ts +0 -4
- package/src/treegrid/actions/batch-edit.d.ts +0 -73
- package/src/treegrid/actions/clipboard.d.ts +0 -36
- package/src/treegrid/actions/column-chooser.d.ts +0 -37
- package/src/treegrid/actions/column-menu.d.ts +0 -24
- package/src/treegrid/actions/command-column.d.ts +0 -24
- package/src/treegrid/actions/context-menu.d.ts +0 -42
- package/src/treegrid/actions/crud-actions.d.ts +0 -66
- package/src/treegrid/actions/detail-row.d.ts +0 -39
- package/src/treegrid/actions/edit.d.ts +0 -112
- package/src/treegrid/actions/excel-export.d.ts +0 -59
- package/src/treegrid/actions/filter.d.ts +0 -57
- package/src/treegrid/actions/freeze-column.d.ts +0 -28
- package/src/treegrid/actions/index.d.ts +0 -24
- package/src/treegrid/actions/infinite-scroll.d.ts +0 -96
- package/src/treegrid/actions/logger.d.ts +0 -25
- package/src/treegrid/actions/page.d.ts +0 -67
- package/src/treegrid/actions/pdf-export.d.ts +0 -55
- package/src/treegrid/actions/print.d.ts +0 -37
- package/src/treegrid/actions/reorder.d.ts +0 -36
- package/src/treegrid/actions/resize.d.ts +0 -36
- package/src/treegrid/actions/rowdragdrop.d.ts +0 -113
- package/src/treegrid/actions/selection.d.ts +0 -51
- package/src/treegrid/actions/sort.d.ts +0 -63
- package/src/treegrid/actions/summary.d.ts +0 -47
- package/src/treegrid/actions/toolbar.d.ts +0 -52
- package/src/treegrid/actions/virtual-scroll.d.ts +0 -53
- package/src/treegrid/base/constant.d.ts +0 -160
- package/src/treegrid/base/data.d.ts +0 -90
- package/src/treegrid/base/index.d.ts +0 -11
- package/src/treegrid/base/interface.d.ts +0 -182
- package/src/treegrid/base/treegrid.d.ts +0 -2186
- package/src/treegrid/enum.d.ts +0 -155
- package/src/treegrid/index.d.ts +0 -9
- package/src/treegrid/models/column.d.ts +0 -752
- package/src/treegrid/models/edit-settings.d.ts +0 -90
- package/src/treegrid/models/filter-settings.d.ts +0 -203
- package/src/treegrid/models/index.d.ts +0 -24
- package/src/treegrid/models/infinite-scroll-settings.d.ts +0 -25
- package/src/treegrid/models/loading-indicator.d.ts +0 -19
- package/src/treegrid/models/page-settings.d.ts +0 -60
- package/src/treegrid/models/rowdrop-settings.d.ts +0 -27
- package/src/treegrid/models/search-settings.d.ts +0 -71
- package/src/treegrid/models/selection-settings.d.ts +0 -79
- package/src/treegrid/models/sort-settings.d.ts +0 -40
- package/src/treegrid/models/summary.d.ts +0 -124
- package/src/treegrid/models/textwrap-settings.d.ts +0 -16
- package/src/treegrid/renderer/index.d.ts +0 -5
- package/src/treegrid/renderer/render.d.ts +0 -41
- package/src/treegrid/renderer/virtual-row-model-generator.d.ts +0 -16
- package/src/treegrid/renderer/virtual-tree-content-render.d.ts +0 -75
- package/src/treegrid/utils.d.ts +0 -70
- package/treegrid.d.ts +0 -4
- package/treegrid.js +0 -4
- package/tslint.json +0 -111
|
@@ -1,752 +0,0 @@
|
|
|
1
|
-
import { TextAlign, ClipMode, ValueAccessor, IFilter, IFilterUI, IEditCell, CommandModel, freezeDirection } from '@syncfusion/ej2-grids';
|
|
2
|
-
import { NumberFormatOptions, DateFormatOptions } from '@syncfusion/ej2-base';
|
|
3
|
-
import { ITreeGridCellFormatter } from '../base/interface';
|
|
4
|
-
import { SortComparer } from '@syncfusion/ej2-grids';
|
|
5
|
-
/**
|
|
6
|
-
* Represents TreeGrid `Column` model class.
|
|
7
|
-
*/
|
|
8
|
-
export declare class Column {
|
|
9
|
-
/**
|
|
10
|
-
* Defines the field name of column which is mapped with mapping name of DataSource.
|
|
11
|
-
* The bounded columns can be sort, filter etc.,
|
|
12
|
-
* The `field` name must be a valid JavaScript identifier,
|
|
13
|
-
* the first character must be an alphabet and should not contain spaces and special characters.
|
|
14
|
-
*
|
|
15
|
-
* @default 'undefined'
|
|
16
|
-
*/
|
|
17
|
-
field: string;
|
|
18
|
-
/**
|
|
19
|
-
* Defines the header text of column which is used to display in column header.
|
|
20
|
-
* If `headerText` is not defined, then field name value will be assigned to header text.
|
|
21
|
-
*
|
|
22
|
-
* @default 'undefined'
|
|
23
|
-
*/
|
|
24
|
-
headerText: string;
|
|
25
|
-
/**
|
|
26
|
-
* Gets the unique identifier value of the column. It is used to get the column object.
|
|
27
|
-
*
|
|
28
|
-
* @default 'undefined'
|
|
29
|
-
*/
|
|
30
|
-
uid: string;
|
|
31
|
-
/**
|
|
32
|
-
* If `allowEditing` set to false, then it disables editing of a particular column.
|
|
33
|
-
* By default all columns are editable.
|
|
34
|
-
*
|
|
35
|
-
* @default true
|
|
36
|
-
*/
|
|
37
|
-
allowEditing: boolean;
|
|
38
|
-
/**
|
|
39
|
-
* If `showCheckbox` set to true, then the checkboxes will be displayed in particular column.
|
|
40
|
-
*
|
|
41
|
-
* @default false
|
|
42
|
-
*/
|
|
43
|
-
showCheckbox: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* Defines the custom sort comparer function.
|
|
46
|
-
* The sort comparer function has the same functionality like
|
|
47
|
-
* [`Array.sort`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort) sort comparer.
|
|
48
|
-
* {% codeBlock src="grid/sort-comparer-api/index.ts" %}{% endcodeBlock %}
|
|
49
|
-
*/
|
|
50
|
-
sortComparer: SortComparer | string;
|
|
51
|
-
/**
|
|
52
|
-
* If `isPrimaryKey` is set to true, considers this column as the primary key constraint.
|
|
53
|
-
*
|
|
54
|
-
* @default false
|
|
55
|
-
*/
|
|
56
|
-
isPrimaryKey: boolean;
|
|
57
|
-
/**
|
|
58
|
-
* @hidden
|
|
59
|
-
* Defines the commands column template as string or HTML element ID which is used to add
|
|
60
|
-
* customized command buttons in each cells of the column.
|
|
61
|
-
*
|
|
62
|
-
* @aspType string
|
|
63
|
-
*/
|
|
64
|
-
commandsTemplate: string | Function;
|
|
65
|
-
/**
|
|
66
|
-
* `commands` provides an option to display command buttons in every cell.
|
|
67
|
-
* The available built-in command buttons are
|
|
68
|
-
* * Edit - Edit the record.
|
|
69
|
-
* * Delete - Delete the record.
|
|
70
|
-
* * Save - Save the record.
|
|
71
|
-
* * Cancel - Cancel the edit state.
|
|
72
|
-
*
|
|
73
|
-
* @default null
|
|
74
|
-
*/
|
|
75
|
-
commands: CommandModel[];
|
|
76
|
-
/**
|
|
77
|
-
* Defines the width of the column in pixels or percentage.
|
|
78
|
-
*
|
|
79
|
-
* @default 'undefined'
|
|
80
|
-
*/
|
|
81
|
-
width: string | number;
|
|
82
|
-
/**
|
|
83
|
-
* Defines the type of component for editable.
|
|
84
|
-
*
|
|
85
|
-
* @default 'stringedit'
|
|
86
|
-
*/
|
|
87
|
-
editType: string;
|
|
88
|
-
/**
|
|
89
|
-
* Defines rules to validate data before creating and updating.
|
|
90
|
-
*
|
|
91
|
-
* @default null
|
|
92
|
-
*/
|
|
93
|
-
validationRules: Object;
|
|
94
|
-
/**
|
|
95
|
-
* Defines default values for the component when adding a new record to the TreeGrid.
|
|
96
|
-
*
|
|
97
|
-
* @default null
|
|
98
|
-
*/
|
|
99
|
-
defaultValue: string;
|
|
100
|
-
/**
|
|
101
|
-
* Defines the `IEditCell` object to customize default edit cell.
|
|
102
|
-
*
|
|
103
|
-
* @default {}
|
|
104
|
-
*/
|
|
105
|
-
edit: IEditCell;
|
|
106
|
-
/**
|
|
107
|
-
* Defines the cell edit template that used as editor for a particular column.
|
|
108
|
-
* It accepts either template string or HTML element ID.
|
|
109
|
-
*
|
|
110
|
-
* @default null
|
|
111
|
-
* @aspIgnore
|
|
112
|
-
*/
|
|
113
|
-
editTemplate: string | Function;
|
|
114
|
-
/**
|
|
115
|
-
* Defines the filter template/UI that used as filter for a particular column.
|
|
116
|
-
* It accepts either template string or HTML element ID.
|
|
117
|
-
*
|
|
118
|
-
* @default null
|
|
119
|
-
* @aspIgnore
|
|
120
|
-
*/
|
|
121
|
-
filterTemplate: string | Function;
|
|
122
|
-
/**
|
|
123
|
-
* If `isIdentity` is set to true, then this column is considered as identity column.
|
|
124
|
-
*
|
|
125
|
-
* @default false
|
|
126
|
-
*/
|
|
127
|
-
isIdentity: boolean;
|
|
128
|
-
/**
|
|
129
|
-
* Defines the minimum Width of the column in pixels or percentage.
|
|
130
|
-
*
|
|
131
|
-
* @default 'undefined'
|
|
132
|
-
*/
|
|
133
|
-
minWidth: string | number;
|
|
134
|
-
/**
|
|
135
|
-
* Defines the maximum width of the column in pixel or percentage, which will restrict resizing beyond this pixel or percentage.
|
|
136
|
-
*
|
|
137
|
-
* @default 'undefined'
|
|
138
|
-
*/
|
|
139
|
-
maxWidth: string | number;
|
|
140
|
-
/**
|
|
141
|
-
* Defines the alignment of the column in both header and content cells.
|
|
142
|
-
*
|
|
143
|
-
* @default Left
|
|
144
|
-
*/
|
|
145
|
-
textAlign: TextAlign;
|
|
146
|
-
/**
|
|
147
|
-
* Defines the cell content's overflow mode. The available modes are
|
|
148
|
-
* * `Clip` - Truncates the cell content when it overflows its area.
|
|
149
|
-
* * `Ellipsis` - Displays ellipsis when the cell content overflows its area.
|
|
150
|
-
* * `EllipsisWithTooltip` - Displays ellipsis when the cell content overflows its area
|
|
151
|
-
* also it will display tooltip while hover on ellipsis applied cell.
|
|
152
|
-
*
|
|
153
|
-
* @default Ellipsis
|
|
154
|
-
*/
|
|
155
|
-
clipMode: ClipMode;
|
|
156
|
-
/**
|
|
157
|
-
* Define the alignment of column header which is used to align the text of column header.
|
|
158
|
-
*
|
|
159
|
-
* @default null
|
|
160
|
-
*/
|
|
161
|
-
headerTextAlign: TextAlign;
|
|
162
|
-
/**
|
|
163
|
-
* If `disableHtmlEncode` is set to true, it encodes the HTML of the header and content cells.
|
|
164
|
-
*
|
|
165
|
-
* @default true
|
|
166
|
-
*/
|
|
167
|
-
disableHtmlEncode: boolean;
|
|
168
|
-
/**
|
|
169
|
-
* Defines the data type of the column.
|
|
170
|
-
*
|
|
171
|
-
* @default null
|
|
172
|
-
*/
|
|
173
|
-
type: string;
|
|
174
|
-
/**
|
|
175
|
-
* It is used to change display value with the given format and does not affect the original data.
|
|
176
|
-
* Gets the format from the user which can be standard or custom
|
|
177
|
-
* [`number`](https://ej2.syncfusion.com/documentation/common/internationalization/#supported-format-string)
|
|
178
|
-
* and [`date`](https://ej2.syncfusion.com/documentation/common/internationalization/#supported-format-string-1) formats.
|
|
179
|
-
*
|
|
180
|
-
* @default null
|
|
181
|
-
* @aspType string
|
|
182
|
-
*/
|
|
183
|
-
format: string | NumberFormatOptions | DateFormatOptions;
|
|
184
|
-
/**
|
|
185
|
-
* If `visible` is set to false, hides the particular column. By default, columns are displayed.
|
|
186
|
-
*
|
|
187
|
-
* @default true
|
|
188
|
-
*/
|
|
189
|
-
visible: boolean;
|
|
190
|
-
/**
|
|
191
|
-
* Defines the column template that renders customized element in each cell of the column.
|
|
192
|
-
* It accepts either [template string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals)
|
|
193
|
-
* or HTML element ID.
|
|
194
|
-
*
|
|
195
|
-
* @default null
|
|
196
|
-
* @aspType string
|
|
197
|
-
*/
|
|
198
|
-
template: string | Function;
|
|
199
|
-
/**
|
|
200
|
-
* Defines the header template as string or HTML element ID which is used to add customized element in the column header.
|
|
201
|
-
*
|
|
202
|
-
* @default null
|
|
203
|
-
* @aspType string
|
|
204
|
-
*/
|
|
205
|
-
headerTemplate: string | Function;
|
|
206
|
-
/**
|
|
207
|
-
* You can use this property to freeze selected columns in treegrid
|
|
208
|
-
*
|
|
209
|
-
* @default false
|
|
210
|
-
*/
|
|
211
|
-
isFrozen: boolean;
|
|
212
|
-
/**
|
|
213
|
-
* The CSS styles and attributes of the content cells of a particular column can be customized.
|
|
214
|
-
*
|
|
215
|
-
* @default null
|
|
216
|
-
*/
|
|
217
|
-
customAttributes: {
|
|
218
|
-
[x: string]: Object;
|
|
219
|
-
};
|
|
220
|
-
/**
|
|
221
|
-
* If `displayAsCheckBox` is set to true, it displays the column value as a check box instead of Boolean value.
|
|
222
|
-
*
|
|
223
|
-
* @default false
|
|
224
|
-
*/
|
|
225
|
-
displayAsCheckBox: boolean;
|
|
226
|
-
/**
|
|
227
|
-
* If `allowReordering` set to false, then it disables reorder of a particular column.
|
|
228
|
-
* By default all columns can be reorder.
|
|
229
|
-
*
|
|
230
|
-
* @default true
|
|
231
|
-
*/
|
|
232
|
-
allowReordering: boolean;
|
|
233
|
-
/**
|
|
234
|
-
* If `showColumnMenu` set to false, then it disable the column menu of a particular column.
|
|
235
|
-
* By default column menu will show for all columns
|
|
236
|
-
*
|
|
237
|
-
* @default true
|
|
238
|
-
*/
|
|
239
|
-
showColumnMenu: boolean;
|
|
240
|
-
/**
|
|
241
|
-
* If `allowFiltering` set to false, then it disables filtering option and filter bar element of a particular column.
|
|
242
|
-
* By default all columns are filterable.
|
|
243
|
-
*
|
|
244
|
-
* @default true
|
|
245
|
-
*/
|
|
246
|
-
allowFiltering: boolean;
|
|
247
|
-
/**
|
|
248
|
-
* If `allowSorting` set to false, then it disables sorting option of a particular column.
|
|
249
|
-
* By default all columns are sortable.
|
|
250
|
-
*
|
|
251
|
-
* @default true
|
|
252
|
-
*/
|
|
253
|
-
allowSorting: boolean;
|
|
254
|
-
/**
|
|
255
|
-
* If `allowResizing` is set to false, it disables resize option of a particular column.
|
|
256
|
-
* By default all the columns can be resized.
|
|
257
|
-
*
|
|
258
|
-
* @default true
|
|
259
|
-
*/
|
|
260
|
-
allowResizing: boolean;
|
|
261
|
-
/**
|
|
262
|
-
* Defines the method which is used to achieve custom formatting from an external function.
|
|
263
|
-
* This function triggers before rendering of each cell.
|
|
264
|
-
*
|
|
265
|
-
* @default null
|
|
266
|
-
*/
|
|
267
|
-
formatter: {
|
|
268
|
-
new (): ITreeGridCellFormatter;
|
|
269
|
-
} | ITreeGridCellFormatter | Function;
|
|
270
|
-
/**
|
|
271
|
-
* Defines the method used to apply custom cell values from external function and display this on each cell rendered.
|
|
272
|
-
*
|
|
273
|
-
* @default null
|
|
274
|
-
*/
|
|
275
|
-
valueAccessor: ValueAccessor | string;
|
|
276
|
-
/**
|
|
277
|
-
* Used to render multiple header rows(stacked headers) on the TreeGrid header.
|
|
278
|
-
*
|
|
279
|
-
* @default null
|
|
280
|
-
*/
|
|
281
|
-
columns: Column[] | string[] | ColumnModel[];
|
|
282
|
-
/**
|
|
283
|
-
* Column visibility can change based on [`Media Queries`](http://cssmediaqueries.com/what-are-css-media-queries.html).
|
|
284
|
-
* `hideAtMedia` accepts only valid Media Queries.
|
|
285
|
-
*
|
|
286
|
-
* @default 'undefined'
|
|
287
|
-
*/
|
|
288
|
-
hideAtMedia: string;
|
|
289
|
-
/**
|
|
290
|
-
* If `showInColumnChooser` set to false, then hide the particular column in column chooser.
|
|
291
|
-
* By default all columns are displayed in column Chooser.
|
|
292
|
-
*
|
|
293
|
-
* @default true
|
|
294
|
-
*/
|
|
295
|
-
showInColumnChooser?: boolean;
|
|
296
|
-
/**
|
|
297
|
-
* The `filterBarTemplate` is used to add a custom component instead of default input component for filter bar.
|
|
298
|
-
* It have create and read functions.
|
|
299
|
-
* * create: It is used for creating custom components.
|
|
300
|
-
* * read: It is used to perform custom filter action.
|
|
301
|
-
*
|
|
302
|
-
*
|
|
303
|
-
* @default null
|
|
304
|
-
*/
|
|
305
|
-
filterBarTemplate: IFilterUI;
|
|
306
|
-
/**
|
|
307
|
-
* It is used to customize the default filter options for a specific columns.
|
|
308
|
-
* * type - Specifies the filter type as menu.
|
|
309
|
-
* * ui - to render custom component for specific column it has following functions.
|
|
310
|
-
* * ui.create – It is used for creating custom components.
|
|
311
|
-
* * ui.read - It is used for read the value from the component.
|
|
312
|
-
* * ui.write - It is used to apply component model as dynamically.
|
|
313
|
-
*
|
|
314
|
-
* @default null
|
|
315
|
-
*/
|
|
316
|
-
filter: IFilter;
|
|
317
|
-
/**
|
|
318
|
-
* If `lockColumn` set to true, then it disables Reordering of a particular column.
|
|
319
|
-
* The locked column will be moved to first position.
|
|
320
|
-
*
|
|
321
|
-
* @default false
|
|
322
|
-
*/
|
|
323
|
-
lockColumn: boolean;
|
|
324
|
-
/**
|
|
325
|
-
* defines which side the column need to freeze
|
|
326
|
-
* The available built-in freeze directions are
|
|
327
|
-
* * Left - Freeze the column at left side.
|
|
328
|
-
* * Right - Freeze the column at right side.
|
|
329
|
-
* * Fixed - Freeze the column at Center.
|
|
330
|
-
*
|
|
331
|
-
* @default null
|
|
332
|
-
*/
|
|
333
|
-
freeze: freezeDirection;
|
|
334
|
-
private parent;
|
|
335
|
-
constructor(options: ColumnModel);
|
|
336
|
-
/**
|
|
337
|
-
* Update the State changes reflected for TreeGrid columndirective in react platform.
|
|
338
|
-
*
|
|
339
|
-
* @param {Column} column - specifies the column
|
|
340
|
-
* @returns {void}
|
|
341
|
-
* @hidden
|
|
342
|
-
*/
|
|
343
|
-
private setProperties;
|
|
344
|
-
}
|
|
345
|
-
/**
|
|
346
|
-
* Interface for a TreeGrid class Column
|
|
347
|
-
*/
|
|
348
|
-
export interface ColumnModel {
|
|
349
|
-
/**
|
|
350
|
-
* Defines the field name of column which is mapped with mapping name of DataSource.
|
|
351
|
-
* The bounded columns can be sort, filter etc.,
|
|
352
|
-
* The `field` name must be a valid JavaScript identifier,
|
|
353
|
-
* the first character must be an alphabet and should not contain spaces and special characters.
|
|
354
|
-
*
|
|
355
|
-
* @default 'undefined'
|
|
356
|
-
*/
|
|
357
|
-
field?: string;
|
|
358
|
-
/**
|
|
359
|
-
* Gets the unique identifier value of the column. It is used to get the object.
|
|
360
|
-
*
|
|
361
|
-
* @default 'undefined'
|
|
362
|
-
*/
|
|
363
|
-
uid?: string;
|
|
364
|
-
/**
|
|
365
|
-
* Defines the header text of column which is used to display in column header.
|
|
366
|
-
* If `headerText` is not defined, then field name value will be assigned to header text.
|
|
367
|
-
*
|
|
368
|
-
* @default 'undefined'
|
|
369
|
-
*/
|
|
370
|
-
headerText?: string;
|
|
371
|
-
/**
|
|
372
|
-
* Defines the width of the column in pixels or percentage.
|
|
373
|
-
*
|
|
374
|
-
* @default 'undefined'
|
|
375
|
-
*/
|
|
376
|
-
width?: string | number;
|
|
377
|
-
/**
|
|
378
|
-
* Defines the minimum width of the column in pixels or percentage.
|
|
379
|
-
*
|
|
380
|
-
* @default 'undefined'
|
|
381
|
-
*/
|
|
382
|
-
minWidth?: string | number;
|
|
383
|
-
/**
|
|
384
|
-
* Defines the sort comparer property.
|
|
385
|
-
*
|
|
386
|
-
* @default 'undefined'
|
|
387
|
-
*/
|
|
388
|
-
sortComparer?: SortComparer | string;
|
|
389
|
-
/**
|
|
390
|
-
* Defines the maximum width of the column in pixels or percentage, which will restrict resizing beyond this pixels or percentage.
|
|
391
|
-
*
|
|
392
|
-
* @default 'undefined'
|
|
393
|
-
*/
|
|
394
|
-
maxWidth?: string | number;
|
|
395
|
-
/**
|
|
396
|
-
* Defines the alignment of the column in both header and content cells.
|
|
397
|
-
*
|
|
398
|
-
* @default Syncfusion.EJ2.Grids.TextAlign.Left
|
|
399
|
-
* @isEnumeration true
|
|
400
|
-
* @aspType Syncfusion.EJ2.Grids.TextAlign
|
|
401
|
-
*/
|
|
402
|
-
textAlign?: TextAlign;
|
|
403
|
-
/**
|
|
404
|
-
* Used to render multiple header rows(stacked headers) on TreeGrid header.
|
|
405
|
-
*
|
|
406
|
-
* @default null
|
|
407
|
-
*/
|
|
408
|
-
columns?: Column[] | string[] | ColumnModel[];
|
|
409
|
-
/**
|
|
410
|
-
* Defines the cell content's overflow mode. The available modes are
|
|
411
|
-
* ```props
|
|
412
|
-
* * Clip :- Truncates the cell content when it overflows its area.
|
|
413
|
-
* * Ellipsis :- Displays ellipsis when the cell content overflows its area.
|
|
414
|
-
* * EllipsisWithTooltip :- Displays ellipsis when the cell content overflows its area also it will display tooltip while hover on ellipsis applied cell.
|
|
415
|
-
* ```
|
|
416
|
-
* also it will display tooltip while hover on ellipsis applied cell.
|
|
417
|
-
*
|
|
418
|
-
* @default Syncfusion.EJ2.Grids.ClipMode.Ellipsis
|
|
419
|
-
* @isEnumeration true
|
|
420
|
-
* @aspType Syncfusion.EJ2.Grids.ClipMode
|
|
421
|
-
*/
|
|
422
|
-
clipMode?: ClipMode;
|
|
423
|
-
/**
|
|
424
|
-
* Define the alignment of column header which is used to align the text of column header.
|
|
425
|
-
*
|
|
426
|
-
* @default null
|
|
427
|
-
* @aspDefaultValueIgnore
|
|
428
|
-
* @isEnumeration true
|
|
429
|
-
* @aspType Syncfusion.EJ2.Grids.TextAlign
|
|
430
|
-
*/
|
|
431
|
-
headerTextAlign?: TextAlign;
|
|
432
|
-
/**
|
|
433
|
-
* If `disableHtmlEncode` is set to true, it encodes the HTML of the header and content cells.
|
|
434
|
-
*
|
|
435
|
-
* @default true
|
|
436
|
-
*/
|
|
437
|
-
disableHtmlEncode?: boolean;
|
|
438
|
-
/**
|
|
439
|
-
* Defines the data type of the column.
|
|
440
|
-
*
|
|
441
|
-
* @default null
|
|
442
|
-
*/
|
|
443
|
-
type?: string;
|
|
444
|
-
/**
|
|
445
|
-
* If `allowReordering` set to false, then it disables reorder of a particular column.
|
|
446
|
-
* By default all columns can be reorder.
|
|
447
|
-
*
|
|
448
|
-
* @default true
|
|
449
|
-
*/
|
|
450
|
-
allowReordering?: boolean;
|
|
451
|
-
/**
|
|
452
|
-
* If `allowFiltering` set to false, then it disables filtering option and filter bar element of a particular column.
|
|
453
|
-
* By default all columns are filterable.
|
|
454
|
-
*
|
|
455
|
-
* @default true
|
|
456
|
-
*/
|
|
457
|
-
allowFiltering?: boolean;
|
|
458
|
-
/**
|
|
459
|
-
* If `allowSorting` set to false, then it disables sorting option of a particular column.
|
|
460
|
-
* By default all columns are sortable.
|
|
461
|
-
*
|
|
462
|
-
* @default true
|
|
463
|
-
*/
|
|
464
|
-
allowSorting?: boolean;
|
|
465
|
-
/**
|
|
466
|
-
* If `showColumnMenu` set to false, then it disable the column menu of a particular column.
|
|
467
|
-
* By default column menu will show for all columns
|
|
468
|
-
*
|
|
469
|
-
* @default true
|
|
470
|
-
*/
|
|
471
|
-
showColumnMenu?: boolean;
|
|
472
|
-
/**
|
|
473
|
-
* If `allowResizing` set to false, it disables resize option of a particular column.
|
|
474
|
-
*
|
|
475
|
-
* @default true
|
|
476
|
-
*/
|
|
477
|
-
allowResizing?: boolean;
|
|
478
|
-
/**
|
|
479
|
-
* It is used to change display value with the given format and does not affect the original data.
|
|
480
|
-
* Gets the format from the user which can be standard or custom
|
|
481
|
-
* [`number`](https://ej2.syncfusion.com/documentation/common/internationalization/#supported-format-string)
|
|
482
|
-
* and [`date`](https://ej2.syncfusion.com/documentation/common/internationalization/#supported-format-string-1) formats.
|
|
483
|
-
*
|
|
484
|
-
* @default null
|
|
485
|
-
* @aspType string
|
|
486
|
-
*/
|
|
487
|
-
format?: string | NumberFormatOptions | DateFormatOptions;
|
|
488
|
-
/**
|
|
489
|
-
* If `visible` is set to false, hides the particular column. By default, columns are displayed.
|
|
490
|
-
*
|
|
491
|
-
* @default true
|
|
492
|
-
*/
|
|
493
|
-
visible?: boolean;
|
|
494
|
-
/**
|
|
495
|
-
* @hidden
|
|
496
|
-
* Defines the commands column template as string or HTML element ID which is used to add
|
|
497
|
-
* customized command buttons in each cells of the column.
|
|
498
|
-
*
|
|
499
|
-
* @aspType string
|
|
500
|
-
*/
|
|
501
|
-
commandsTemplate?: string | Function;
|
|
502
|
-
/**
|
|
503
|
-
* `commands` provides an option to display command buttons in every cell.
|
|
504
|
-
* The available built-in command buttons are
|
|
505
|
-
* * Edit - Edit the record.
|
|
506
|
-
* * Delete - Delete the record.
|
|
507
|
-
* * Save - Save the record.
|
|
508
|
-
* * Cancel - Cancel the edit state.
|
|
509
|
-
*
|
|
510
|
-
* The following code example implements the custom command column.
|
|
511
|
-
* ```html
|
|
512
|
-
* <style type="text/css" class="cssStyles">
|
|
513
|
-
* .details-icon:before
|
|
514
|
-
* {
|
|
515
|
-
* content:"\e74d";
|
|
516
|
-
* }
|
|
517
|
-
* </style>
|
|
518
|
-
* <div id="TreeGrid"></div>
|
|
519
|
-
* ```
|
|
520
|
-
* ```typescript
|
|
521
|
-
* var gridObj = new TreeGrid({
|
|
522
|
-
* datasource: window.gridData,
|
|
523
|
-
* columns : [
|
|
524
|
-
* { field: 'CustomerID', headerText: 'Customer ID' },
|
|
525
|
-
* { field: 'CustomerName', headerText: 'Customer Name' },
|
|
526
|
-
* {commands: [{buttonOption:{content: 'Details', click: onClick, cssClass: details-icon}}], headerText: 'Customer Details'}
|
|
527
|
-
* ]
|
|
528
|
-
* gridObj.appendTo("#TreeGrid");
|
|
529
|
-
* ```
|
|
530
|
-
*
|
|
531
|
-
* @default null
|
|
532
|
-
*/
|
|
533
|
-
commands?: CommandModel[];
|
|
534
|
-
/**
|
|
535
|
-
* Defines the column template that renders customized element in each cell of the column.
|
|
536
|
-
* It accepts either [template string](https://ej2.syncfusion.com/documentation/common/template-engine/) or HTML element ID.
|
|
537
|
-
*
|
|
538
|
-
* @default null
|
|
539
|
-
* @aspType string
|
|
540
|
-
*/
|
|
541
|
-
template?: string | Function;
|
|
542
|
-
/**
|
|
543
|
-
* Defines the header template as string or HTML element ID which is used to add customized element in the column header.
|
|
544
|
-
*
|
|
545
|
-
* @default null
|
|
546
|
-
* @aspType string
|
|
547
|
-
*/
|
|
548
|
-
headerTemplate?: string | Function;
|
|
549
|
-
/**
|
|
550
|
-
* You can use this property to freeze selected columns in grid.
|
|
551
|
-
*
|
|
552
|
-
* @default false
|
|
553
|
-
*/
|
|
554
|
-
isFrozen?: boolean;
|
|
555
|
-
/**
|
|
556
|
-
* The CSS styles and attributes of the content cells of a particular column can be customized.
|
|
557
|
-
*
|
|
558
|
-
* @default null
|
|
559
|
-
*/
|
|
560
|
-
customAttributes?: {
|
|
561
|
-
[x: string]: Object;
|
|
562
|
-
};
|
|
563
|
-
/**
|
|
564
|
-
* If `displayAsCheckBox` is set to true, it displays the column value as a check box instead of Boolean value.
|
|
565
|
-
*
|
|
566
|
-
* @default false
|
|
567
|
-
*/
|
|
568
|
-
displayAsCheckBox?: boolean;
|
|
569
|
-
/**
|
|
570
|
-
* Defines the method which is used to achieve custom formatting from an external function.
|
|
571
|
-
* This function triggers before rendering of each cell.
|
|
572
|
-
*
|
|
573
|
-
* @default null
|
|
574
|
-
*/
|
|
575
|
-
formatter?: {
|
|
576
|
-
new (): ITreeGridCellFormatter;
|
|
577
|
-
} | ITreeGridCellFormatter | Function;
|
|
578
|
-
/**
|
|
579
|
-
* If `showInColumnChooser` set to false, then hide the particular column in column chooser.
|
|
580
|
-
* By default all columns are displayed in column Chooser.
|
|
581
|
-
*
|
|
582
|
-
* @default true
|
|
583
|
-
*/
|
|
584
|
-
showInColumnChooser?: boolean;
|
|
585
|
-
/**
|
|
586
|
-
* Defines the method used to apply custom cell values from external function and display this on each cell rendered.
|
|
587
|
-
*
|
|
588
|
-
* @default null
|
|
589
|
-
*/
|
|
590
|
-
valueAccessor?: ValueAccessor | string;
|
|
591
|
-
/**
|
|
592
|
-
* Column visibility can change based on [`Media Queries`](http://cssmediaqueries.com/what-are-css-media-queries.html).
|
|
593
|
-
* `hideAtMedia` accepts only valid Media Queries.
|
|
594
|
-
*
|
|
595
|
-
* @default 'undefined'
|
|
596
|
-
*/
|
|
597
|
-
hideAtMedia?: string;
|
|
598
|
-
/**
|
|
599
|
-
* The `filterBarTemplate` is used to add a custom component instead of default input component for filter bar.
|
|
600
|
-
* It have create and read functions.
|
|
601
|
-
* * create: It is used for creating custom components.
|
|
602
|
-
* * read: It is used to perform custom filter action.
|
|
603
|
-
*
|
|
604
|
-
* ```html
|
|
605
|
-
* <div id="TreeGrid"></div>
|
|
606
|
-
* ```
|
|
607
|
-
* ```typescript
|
|
608
|
-
* let gridObj: TreeGrid = new TreeGrid({
|
|
609
|
-
* dataSource: filterData,
|
|
610
|
-
* columns: [
|
|
611
|
-
* { field: 'OrderID', headerText: 'Order ID' },
|
|
612
|
-
* {
|
|
613
|
-
* field: 'EmployeeID', filterBarTemplate: {
|
|
614
|
-
* create: (args: { element: Element, column: Column }) => {
|
|
615
|
-
* let input: HTMLInputElement = document.createElement('input');
|
|
616
|
-
* input.id = 'EmployeeID';
|
|
617
|
-
* input.type = 'text';
|
|
618
|
-
* return input;
|
|
619
|
-
* },
|
|
620
|
-
* write: (args: { element: Element, column: Column }) => {
|
|
621
|
-
* args.element.addEventListener('input', args.column.filterBarTemplate.read as EventListener);
|
|
622
|
-
* },
|
|
623
|
-
* read: (args: { element: HTMLInputElement, columnIndex: number, column: Column }) => {
|
|
624
|
-
* gridObj.filterByColumn(args.element.id, 'equal', args.element.value);
|
|
625
|
-
* }
|
|
626
|
-
* }
|
|
627
|
-
* }],
|
|
628
|
-
* allowFiltering: true
|
|
629
|
-
* });
|
|
630
|
-
* gridObj.appendTo('#TreeGrid');
|
|
631
|
-
* ```
|
|
632
|
-
*
|
|
633
|
-
* @default null
|
|
634
|
-
*/
|
|
635
|
-
filterBarTemplate?: IFilterUI;
|
|
636
|
-
/**
|
|
637
|
-
* Defines the filter options to customize filtering for the particular column.
|
|
638
|
-
*
|
|
639
|
-
* @default null
|
|
640
|
-
*/
|
|
641
|
-
filter?: IFilter;
|
|
642
|
-
/**
|
|
643
|
-
* If `isPrimaryKey` is set to true, considers this column as the primary key constraint.
|
|
644
|
-
*
|
|
645
|
-
* @default false
|
|
646
|
-
*/
|
|
647
|
-
isPrimaryKey?: boolean;
|
|
648
|
-
/**
|
|
649
|
-
* If `showCheckbox` set to true, then the checkboxes will be displayed in particular column.
|
|
650
|
-
*
|
|
651
|
-
* @default false
|
|
652
|
-
*/
|
|
653
|
-
showCheckbox?: boolean;
|
|
654
|
-
/**
|
|
655
|
-
* Defines the type of component for editing.
|
|
656
|
-
*
|
|
657
|
-
* @default 'stringedit'
|
|
658
|
-
*/
|
|
659
|
-
editType?: string;
|
|
660
|
-
/**
|
|
661
|
-
* Defines default values for the component when adding a new record to the TreeGrid.
|
|
662
|
-
*
|
|
663
|
-
* @default null
|
|
664
|
-
*/
|
|
665
|
-
defaultValue?: string;
|
|
666
|
-
/**
|
|
667
|
-
* Defines the `IEditCell` object to customize default edit cell.
|
|
668
|
-
*
|
|
669
|
-
* @default {}
|
|
670
|
-
*/
|
|
671
|
-
edit?: IEditCell;
|
|
672
|
-
/**
|
|
673
|
-
* Defines the cell edit template that used as editor for a particular column.
|
|
674
|
-
* It accepts either template string or HTML element ID.
|
|
675
|
-
*
|
|
676
|
-
* @aspIgnore
|
|
677
|
-
*/
|
|
678
|
-
editTemplate?: string | Function;
|
|
679
|
-
/**
|
|
680
|
-
* Defines the filter template/UI that is used as filter for a particular column.
|
|
681
|
-
* It accepts either template string or HTML element ID.
|
|
682
|
-
*
|
|
683
|
-
* @aspIgnore
|
|
684
|
-
*/
|
|
685
|
-
filterTemplate?: string | Function;
|
|
686
|
-
/**
|
|
687
|
-
* If `isIdentity` is set to true, then this column is considered as identity column.
|
|
688
|
-
*
|
|
689
|
-
* @default false
|
|
690
|
-
*/
|
|
691
|
-
isIdentity?: boolean;
|
|
692
|
-
/**
|
|
693
|
-
* Defines rules to validate data before creating and updating.
|
|
694
|
-
*
|
|
695
|
-
* @default null
|
|
696
|
-
*/
|
|
697
|
-
validationRules?: Object;
|
|
698
|
-
/**
|
|
699
|
-
* If `allowEditing` set to false, then it disables editing of a particular column.
|
|
700
|
-
* By default all columns are editable.
|
|
701
|
-
*
|
|
702
|
-
* @default true
|
|
703
|
-
*/
|
|
704
|
-
allowEditing?: boolean;
|
|
705
|
-
/**
|
|
706
|
-
* If `lockColumn` set to true, then it disables Reordering of a particular column.
|
|
707
|
-
* The locked column will be moved to first position.
|
|
708
|
-
*
|
|
709
|
-
* @default false
|
|
710
|
-
*/
|
|
711
|
-
lockColumn?: boolean;
|
|
712
|
-
/**
|
|
713
|
-
* Defines which side the column need to freeze
|
|
714
|
-
*
|
|
715
|
-
* @default Syncfusion.EJ2.Grids.FreezeDirection.None
|
|
716
|
-
* @isEnumeration true
|
|
717
|
-
* @aspType Syncfusion.EJ2.Grids.FreezeDirection
|
|
718
|
-
*/
|
|
719
|
-
freeze?: freezeDirection;
|
|
720
|
-
}
|
|
721
|
-
/**
|
|
722
|
-
* Defines TreeGrid column
|
|
723
|
-
*/
|
|
724
|
-
export declare class TreeGridColumn extends Column {
|
|
725
|
-
/**
|
|
726
|
-
* Defines stacked columns
|
|
727
|
-
*
|
|
728
|
-
* @default null
|
|
729
|
-
*/
|
|
730
|
-
columns: string[] | ColumnModel[];
|
|
731
|
-
}
|
|
732
|
-
/**
|
|
733
|
-
* Interface for a class TreeGridColumn
|
|
734
|
-
*/
|
|
735
|
-
export interface TreeGridColumnModel extends ColumnModel {
|
|
736
|
-
/**
|
|
737
|
-
* Defines stacked columns
|
|
738
|
-
*
|
|
739
|
-
* @default null
|
|
740
|
-
*/
|
|
741
|
-
columns?: string[] | ColumnModel[];
|
|
742
|
-
}
|
|
743
|
-
/**
|
|
744
|
-
* Defines stacked tree grid column
|
|
745
|
-
*/
|
|
746
|
-
export declare class StackedColumn extends TreeGridColumn {
|
|
747
|
-
}
|
|
748
|
-
/**
|
|
749
|
-
* Interface for a class stacked tree grid column
|
|
750
|
-
*/
|
|
751
|
-
export interface StackedColumnModel extends TreeGridColumnModel {
|
|
752
|
-
}
|