@syncfusion/ej2-treegrid 28.2.6 → 29.1.33
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/README.md +2 -2
- package/dist/ej2-treegrid.min.js +2 -2
- package/dist/ej2-treegrid.umd.min.js +2 -2
- package/dist/ej2-treegrid.umd.min.js.map +1 -1
- package/dist/es6/ej2-treegrid.es2015.js +1274 -518
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +1276 -518
- package/dist/es6/ej2-treegrid.es5.js.map +1 -1
- package/dist/global/ej2-treegrid.min.js +2 -2
- package/dist/global/ej2-treegrid.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +10 -10
- package/src/treegrid/actions/batch-edit.js +12 -5
- package/src/treegrid/actions/edit.js +12 -12
- package/src/treegrid/actions/page.js +1 -1
- package/src/treegrid/actions/rowdragdrop.d.ts +21 -1
- package/src/treegrid/actions/rowdragdrop.js +248 -48
- package/src/treegrid/actions/summary.js +1 -1
- package/src/treegrid/actions/virtual-scroll.d.ts +34 -1
- package/src/treegrid/actions/virtual-scroll.js +58 -11
- package/src/treegrid/base/constant.d.ts +0 -4
- package/src/treegrid/base/constant.js +0 -4
- package/src/treegrid/base/data.js +47 -46
- package/src/treegrid/base/treegrid-model.d.ts +195 -208
- package/src/treegrid/base/treegrid.d.ts +598 -411
- package/src/treegrid/base/treegrid.js +523 -306
- package/src/treegrid/enum.d.ts +77 -80
- package/src/treegrid/enum.js +2 -2
- package/src/treegrid/models/column.d.ts +122 -177
- package/src/treegrid/models/column.js +14 -26
- package/src/treegrid/models/edit-settings-model.d.ts +24 -25
- package/src/treegrid/models/edit-settings.d.ts +25 -26
- package/src/treegrid/models/edit-settings.js +1 -1
- package/src/treegrid/models/filter-settings-model.d.ts +41 -49
- package/src/treegrid/models/filter-settings.d.ts +43 -51
- package/src/treegrid/models/filter-settings.js +2 -2
- package/src/treegrid/models/infinite-scroll-settings-model.d.ts +4 -4
- package/src/treegrid/models/infinite-scroll-settings.d.ts +4 -4
- package/src/treegrid/models/infinite-scroll-settings.js +1 -1
- package/src/treegrid/models/loading-indicator-model.d.ts +3 -4
- package/src/treegrid/models/loading-indicator.d.ts +4 -4
- package/src/treegrid/models/loading-indicator.js +1 -1
- package/src/treegrid/models/page-settings-model.d.ts +10 -13
- package/src/treegrid/models/page-settings.d.ts +11 -14
- package/src/treegrid/models/page-settings.js +1 -1
- package/src/treegrid/models/rowdrop-settings-model.d.ts +1 -1
- package/src/treegrid/models/rowdrop-settings.d.ts +13 -6
- package/src/treegrid/models/rowdrop-settings.js +1 -1
- package/src/treegrid/models/search-settings-model.d.ts +13 -11
- package/src/treegrid/models/search-settings.d.ts +14 -12
- package/src/treegrid/models/search-settings.js +1 -1
- package/src/treegrid/models/selection-settings-model.d.ts +18 -29
- package/src/treegrid/models/selection-settings.d.ts +18 -29
- package/src/treegrid/models/sort-settings-model.d.ts +8 -5
- package/src/treegrid/models/sort-settings.d.ts +10 -7
- package/src/treegrid/models/sort-settings.js +2 -2
- package/src/treegrid/models/summary-model.d.ts +28 -29
- package/src/treegrid/models/summary.d.ts +32 -30
- package/src/treegrid/models/summary.js +4 -1
- package/src/treegrid/models/textwrap-settings-model.d.ts +7 -4
- package/src/treegrid/models/textwrap-settings.d.ts +8 -5
- package/src/treegrid/models/textwrap-settings.js +1 -1
- package/src/treegrid/renderer/render.js +11 -5
- package/src/treegrid/renderer/virtual-row-model-generator.js +5 -4
- package/src/treegrid/renderer/virtual-tree-content-render.d.ts +277 -0
- package/src/treegrid/renderer/virtual-tree-content-render.js +328 -35
- package/src/treegrid/utils.d.ts +1 -1
- package/styles/bootstrap-lite.css +0 -12
- package/styles/bootstrap.css +0 -12
- package/styles/bootstrap5-dark-lite.css +1 -1
- package/styles/bootstrap5-dark.css +1 -1
- package/styles/treegrid/_layout.scss +0 -1
- package/styles/treegrid/_material-dark-definition.scss +2 -2
- package/styles/treegrid/_material-definition.scss +2 -2
- package/styles/treegrid/bootstrap.css +0 -12
- package/styles/treegrid/bootstrap5-dark.css +1 -1
- package/styles/treegrid/icons/_bootstrap.scss +0 -17
- package/styles/treegrid/icons/_bootstrap5.scss +1 -1
- package/styles/treegrid/icons/_fabric-dark.scss +1 -1
- package/styles/treegrid/icons/_fabric.scss +1 -1
- package/styles/treegrid/icons/_fluent2.scss +1 -1
- package/styles/treegrid/icons/_fusionnew.scss +1 -0
- package/styles/treegrid/icons/_highcontrast-light.scss +1 -1
- package/styles/treegrid/icons/_tailwind-dark.scss +2 -2
|
@@ -19,90 +19,78 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
19
19
|
};
|
|
20
20
|
import { merge, Property } from '@syncfusion/ej2-base';
|
|
21
21
|
/**
|
|
22
|
-
* Represents
|
|
22
|
+
* Represents the "Column" model class for TreeGrid, defining essential properties and functionalities of a column.
|
|
23
23
|
*/
|
|
24
24
|
var Column = /** @class */ (function () {
|
|
25
25
|
function Column(options) {
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
28
|
-
* By default all columns are editable.
|
|
27
|
+
* Allows or disallows editing of the column. Set to `false` to make a column non-editable.
|
|
28
|
+
* By default, all columns are editable.
|
|
29
29
|
*
|
|
30
30
|
* @default true
|
|
31
31
|
*/
|
|
32
32
|
this.allowEditing = true;
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* Customization options for the edit cell.
|
|
35
35
|
*
|
|
36
36
|
* @default {}
|
|
37
37
|
*/
|
|
38
38
|
this.edit = {};
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* When set to `true`, encodes HTML content in headers and cells to prevent HTML injection.
|
|
41
41
|
*
|
|
42
42
|
* @default true
|
|
43
43
|
*/
|
|
44
44
|
this.disableHtmlEncode = true;
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
47
|
-
* By default all columns can be reorder.
|
|
46
|
+
* Disables column reordering if set to `false`. By default, columns can be reordered.
|
|
48
47
|
*
|
|
49
48
|
* @default true
|
|
50
49
|
*/
|
|
51
50
|
this.allowReordering = true;
|
|
52
51
|
/**
|
|
53
|
-
*
|
|
54
|
-
* By default column menu will show for all columns
|
|
52
|
+
* Disables column menu for the column if set to `false`. By default, column menus are enabled for all columns.
|
|
55
53
|
*
|
|
56
54
|
* @default true
|
|
57
55
|
*/
|
|
58
56
|
this.showColumnMenu = true;
|
|
59
57
|
/**
|
|
60
|
-
*
|
|
61
|
-
* By default all columns are filterable.
|
|
58
|
+
* Disables filtering for the column if set to `false`. By default, columns are filterable.
|
|
62
59
|
*
|
|
63
60
|
* @default true
|
|
64
61
|
*/
|
|
65
62
|
this.allowFiltering = true;
|
|
66
63
|
/**
|
|
67
|
-
*
|
|
68
|
-
* By default all columns are sortable.
|
|
64
|
+
* Disables sorting for the column if set to `false`. By default, columns are sortable.
|
|
69
65
|
*
|
|
70
66
|
* @default true
|
|
71
67
|
*/
|
|
72
68
|
this.allowSorting = true;
|
|
73
69
|
/**
|
|
74
|
-
*
|
|
75
|
-
* By default all the columns can be resized.
|
|
70
|
+
* Disables resizing for the column if set to `false`. By default, columns can be resized.
|
|
76
71
|
*
|
|
77
72
|
* @default true
|
|
78
73
|
*/
|
|
79
74
|
this.allowResizing = true;
|
|
80
75
|
/**
|
|
81
|
-
*
|
|
82
|
-
* * type - Specifies the filter type as menu.
|
|
83
|
-
* * ui - to render custom component for specific column it has following functions.
|
|
84
|
-
* * ui.create – It is used for creating custom components.
|
|
85
|
-
* * ui.read - It is used for read the value from the component.
|
|
86
|
-
* * ui.write - It is used to apply component model as dynamically.
|
|
76
|
+
* Customize default filter options for a specific column, providing types and UI definitions for custom components.
|
|
87
77
|
*
|
|
88
|
-
*
|
|
78
|
+
* @default null
|
|
89
79
|
*/
|
|
90
80
|
this.filter = {};
|
|
91
81
|
merge(this, options);
|
|
92
82
|
}
|
|
93
83
|
/**
|
|
94
|
-
*
|
|
84
|
+
* Reflects state changes for TreeGrid column directives, particularly in React.
|
|
95
85
|
*
|
|
96
|
-
* @param {Column} column -
|
|
86
|
+
* @param {Column} column - The column to update.
|
|
97
87
|
* @returns {void}
|
|
98
88
|
* @hidden
|
|
99
89
|
*/
|
|
100
90
|
Column.prototype.setProperties = function (column) {
|
|
101
|
-
//Angular two way binding
|
|
102
91
|
var keys = Object.keys(column);
|
|
103
92
|
for (var i = 0; i < keys.length; i++) {
|
|
104
93
|
this[keys[parseInt(i.toString(), 10)]] = column[keys[parseInt(i.toString(), 10)]];
|
|
105
|
-
//Refresh the react columnTemplates on state change
|
|
106
94
|
if (this.parent && this.parent['isReact'] && keys[parseInt(i.toString(), 10)] === 'template') {
|
|
107
95
|
var refreshReactColumnTemplateByUid = 'refreshReactColumnTemplateByUid';
|
|
108
96
|
this.parent.clipboardModule['treeGridParent'].renderModule["" + refreshReactColumnTemplateByUid](this.uid);
|
|
@@ -6,34 +6,35 @@ import { ChildProperty, Property } from '@syncfusion/ej2-base';import { EditMode
|
|
|
6
6
|
export interface EditSettingsModel {
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Enables the ability to add new records to the TreeGrid when set to `true`.
|
|
10
|
+
* This allows users to insert new rows into the data set.
|
|
10
11
|
*
|
|
11
12
|
* @default false
|
|
12
13
|
*/
|
|
13
14
|
allowAdding?: boolean;
|
|
14
15
|
|
|
15
16
|
/**
|
|
16
|
-
*
|
|
17
|
+
* Permits updating values in existing records if set to `true`.
|
|
18
|
+
* This setting allows inline modification of data cells within the TreeGrid.
|
|
17
19
|
*
|
|
18
20
|
* @default false
|
|
19
21
|
*/
|
|
20
22
|
allowEditing?: boolean;
|
|
21
23
|
|
|
22
24
|
/**
|
|
23
|
-
*
|
|
25
|
+
* Allows removal of records from the TreeGrid when set to `true`.
|
|
26
|
+
* Users can delete rows from the data set, reflecting changes immediately.
|
|
24
27
|
*
|
|
25
28
|
* @default false
|
|
26
29
|
*/
|
|
27
30
|
allowDeleting?: boolean;
|
|
28
31
|
|
|
29
32
|
/**
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
* *
|
|
33
|
-
* *
|
|
34
|
-
* *
|
|
35
|
-
* * Batch :- Defines the editing mode as Batch.
|
|
36
|
-
* ```
|
|
33
|
+
* Specifies the editing mode for the TreeGrid. Available modes include:
|
|
34
|
+
* * `Cell`: Enables individual cell editing.
|
|
35
|
+
* * `Row`: Allows entire row editing at once.
|
|
36
|
+
* * `Dialog`: Opens a dialog for row editing.
|
|
37
|
+
* * `Batch`: Supports batch editing of cells across multiple rows. Changes are not immediately saved but can be committed all at once, enhancing efficiency in bulk data edits.
|
|
37
38
|
*
|
|
38
39
|
* @default Cell
|
|
39
40
|
* @isEnumeration true
|
|
@@ -41,43 +42,41 @@ export interface EditSettingsModel {
|
|
|
41
42
|
mode?: EditMode;
|
|
42
43
|
|
|
43
44
|
/**
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
* *
|
|
47
|
-
* *
|
|
48
|
-
* *
|
|
49
|
-
* *
|
|
50
|
-
* * Child :- Defines the row position as Child.
|
|
51
|
-
* ```
|
|
52
|
-
* {% codeBlock src='treegrid/newRowPosition/index.md' %}{% endcodeBlock %}
|
|
45
|
+
* Determines the position where new rows are added within the TreeGrid. Options are:
|
|
46
|
+
* * `Top`: Adds new rows at the top of the grid.
|
|
47
|
+
* * `Bottom`: Adds new rows at the bottom of the grid.
|
|
48
|
+
* * `Above`: Inserts a new row above the selected row.
|
|
49
|
+
* * `Below`: Adds a new row below the selected row.
|
|
50
|
+
* * `Child`: Inserts a new row as a child of the currently selected row.
|
|
53
51
|
*
|
|
54
52
|
* @default Top
|
|
55
53
|
*/
|
|
56
54
|
newRowPosition?: RowPosition;
|
|
57
55
|
|
|
58
56
|
/**
|
|
59
|
-
* If
|
|
57
|
+
* If set to `false`, prevents editing on a row double-click, allowing edits through other triggers only.
|
|
60
58
|
*
|
|
61
59
|
* @default true
|
|
62
60
|
*/
|
|
63
61
|
allowEditOnDblClick?: boolean;
|
|
64
62
|
|
|
65
63
|
/**
|
|
66
|
-
*
|
|
64
|
+
* Controls the display of a confirmation dialog when batch changes are either applied or discarded.
|
|
65
|
+
* Set to `false` to suppress the display of this confirmation prompt.
|
|
67
66
|
*
|
|
68
67
|
* @default true
|
|
69
68
|
*/
|
|
70
69
|
showConfirmDialog?: boolean;
|
|
71
70
|
|
|
72
71
|
/**
|
|
73
|
-
* If
|
|
72
|
+
* If set to `true`, a confirmation dialog appears before record deletion, allowing users to confirm or cancel the operation.
|
|
74
73
|
*
|
|
75
74
|
* @default false
|
|
76
75
|
*/
|
|
77
76
|
showDeleteConfirmDialog?: boolean;
|
|
78
77
|
|
|
79
78
|
/**
|
|
80
|
-
*
|
|
79
|
+
* Provides a template for custom editing elements within the dialog, supporting both HTML strings and functions.
|
|
81
80
|
*
|
|
82
81
|
* @default ''
|
|
83
82
|
* @aspType string
|
|
@@ -85,14 +84,14 @@ export interface EditSettingsModel {
|
|
|
85
84
|
template?: string | Function;
|
|
86
85
|
|
|
87
86
|
/**
|
|
88
|
-
*
|
|
87
|
+
* Specifies the parameters for customizing the edit dialog, allowing the configuration of elements and behavior.
|
|
89
88
|
*
|
|
90
89
|
* @default {}
|
|
91
90
|
*/
|
|
92
91
|
dialog?: IDialogUI;
|
|
93
92
|
|
|
94
93
|
/**
|
|
95
|
-
*
|
|
94
|
+
* Enables continued editing in subsequent rows when navigating with keyboard shortcuts if set to `true`.
|
|
96
95
|
*
|
|
97
96
|
* @default false
|
|
98
97
|
*/
|
|
@@ -2,87 +2,86 @@ import { ChildProperty } from '@syncfusion/ej2-base';
|
|
|
2
2
|
import { EditMode, RowPosition } from '../enum';
|
|
3
3
|
import { IDialogUI } from '@syncfusion/ej2-grids';
|
|
4
4
|
/**
|
|
5
|
-
* Configures the edit behavior of the TreeGrid.
|
|
5
|
+
* Configures the edit behavior of the TreeGrid, defining how records can be added, modified, or deleted.
|
|
6
6
|
*/
|
|
7
7
|
export declare class EditSettings extends ChildProperty<EditSettings> {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Enables the ability to add new records to the TreeGrid when set to `true`.
|
|
10
|
+
* This allows users to insert new rows into the data set.
|
|
10
11
|
*
|
|
11
12
|
* @default false
|
|
12
13
|
*/
|
|
13
14
|
allowAdding: boolean;
|
|
14
15
|
/**
|
|
15
|
-
*
|
|
16
|
+
* Permits updating values in existing records if set to `true`.
|
|
17
|
+
* This setting allows inline modification of data cells within the TreeGrid.
|
|
16
18
|
*
|
|
17
19
|
* @default false
|
|
18
20
|
*/
|
|
19
21
|
allowEditing: boolean;
|
|
20
22
|
/**
|
|
21
|
-
*
|
|
23
|
+
* Allows removal of records from the TreeGrid when set to `true`.
|
|
24
|
+
* Users can delete rows from the data set, reflecting changes immediately.
|
|
22
25
|
*
|
|
23
26
|
* @default false
|
|
24
27
|
*/
|
|
25
28
|
allowDeleting: boolean;
|
|
26
29
|
/**
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
* *
|
|
30
|
-
* *
|
|
31
|
-
* *
|
|
32
|
-
* * Batch :- Defines the editing mode as Batch.
|
|
33
|
-
* ```
|
|
30
|
+
* Specifies the editing mode for the TreeGrid. Available modes include:
|
|
31
|
+
* * `Cell`: Enables individual cell editing.
|
|
32
|
+
* * `Row`: Allows entire row editing at once.
|
|
33
|
+
* * `Dialog`: Opens a dialog for row editing.
|
|
34
|
+
* * `Batch`: Supports batch editing of cells across multiple rows. Changes are not immediately saved but can be committed all at once, enhancing efficiency in bulk data edits.
|
|
34
35
|
*
|
|
35
36
|
* @default Cell
|
|
36
37
|
* @isEnumeration true
|
|
37
38
|
*/
|
|
38
39
|
mode: EditMode;
|
|
39
40
|
/**
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
* *
|
|
43
|
-
* *
|
|
44
|
-
* *
|
|
45
|
-
* *
|
|
46
|
-
* * Child :- Defines the row position as Child.
|
|
47
|
-
* ```
|
|
48
|
-
* {% codeBlock src='treegrid/newRowPosition/index.md' %}{% endcodeBlock %}
|
|
41
|
+
* Determines the position where new rows are added within the TreeGrid. Options are:
|
|
42
|
+
* * `Top`: Adds new rows at the top of the grid.
|
|
43
|
+
* * `Bottom`: Adds new rows at the bottom of the grid.
|
|
44
|
+
* * `Above`: Inserts a new row above the selected row.
|
|
45
|
+
* * `Below`: Adds a new row below the selected row.
|
|
46
|
+
* * `Child`: Inserts a new row as a child of the currently selected row.
|
|
49
47
|
*
|
|
50
48
|
* @default Top
|
|
51
49
|
*/
|
|
52
50
|
newRowPosition: RowPosition;
|
|
53
51
|
/**
|
|
54
|
-
* If
|
|
52
|
+
* If set to `false`, prevents editing on a row double-click, allowing edits through other triggers only.
|
|
55
53
|
*
|
|
56
54
|
* @default true
|
|
57
55
|
*/
|
|
58
56
|
allowEditOnDblClick: boolean;
|
|
59
57
|
/**
|
|
60
|
-
*
|
|
58
|
+
* Controls the display of a confirmation dialog when batch changes are either applied or discarded.
|
|
59
|
+
* Set to `false` to suppress the display of this confirmation prompt.
|
|
61
60
|
*
|
|
62
61
|
* @default true
|
|
63
62
|
*/
|
|
64
63
|
showConfirmDialog: boolean;
|
|
65
64
|
/**
|
|
66
|
-
* If
|
|
65
|
+
* If set to `true`, a confirmation dialog appears before record deletion, allowing users to confirm or cancel the operation.
|
|
67
66
|
*
|
|
68
67
|
* @default false
|
|
69
68
|
*/
|
|
70
69
|
showDeleteConfirmDialog: boolean;
|
|
71
70
|
/**
|
|
72
|
-
*
|
|
71
|
+
* Provides a template for custom editing elements within the dialog, supporting both HTML strings and functions.
|
|
73
72
|
*
|
|
74
73
|
* @default ''
|
|
75
74
|
* @aspType string
|
|
76
75
|
*/
|
|
77
76
|
template: string | Function;
|
|
78
77
|
/**
|
|
79
|
-
*
|
|
78
|
+
* Specifies the parameters for customizing the edit dialog, allowing the configuration of elements and behavior.
|
|
80
79
|
*
|
|
81
80
|
* @default {}
|
|
82
81
|
*/
|
|
83
82
|
dialog: IDialogUI;
|
|
84
83
|
/**
|
|
85
|
-
*
|
|
84
|
+
* Enables continued editing in subsequent rows when navigating with keyboard shortcuts if set to `true`.
|
|
86
85
|
*
|
|
87
86
|
* @default false
|
|
88
87
|
*/
|
|
@@ -19,7 +19,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
19
19
|
};
|
|
20
20
|
import { ChildProperty, Property } from '@syncfusion/ej2-base';
|
|
21
21
|
/**
|
|
22
|
-
* Configures the edit behavior of the TreeGrid.
|
|
22
|
+
* Configures the edit behavior of the TreeGrid, defining how records can be added, modified, or deleted.
|
|
23
23
|
*/
|
|
24
24
|
var EditSettings = /** @class */ (function (_super) {
|
|
25
25
|
__extends(EditSettings, _super);
|
|
@@ -6,64 +6,65 @@ import { Collection, Property, ChildProperty } from '@syncfusion/ej2-base';impor
|
|
|
6
6
|
export interface PredicateModel {
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Specifies the field name of the column to apply the filter on.
|
|
10
10
|
*
|
|
11
11
|
* @default ''
|
|
12
12
|
*/
|
|
13
13
|
field?: string;
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Specifies the operator used for filtering TreeGrid records. The available operators support a variety of data types
|
|
17
|
+
* and offer different filtering mechanisms. Details for each operator are provided below:
|
|
17
18
|
* <table>
|
|
18
19
|
* <tr>
|
|
19
20
|
* <td colspan=1 rowspan=1>
|
|
20
21
|
* Operator<br/></td><td colspan=1 rowspan=1>
|
|
21
22
|
* Description<br/></td><td colspan=1 rowspan=1>
|
|
22
|
-
* Supported Types<br/></td></tr>
|
|
23
|
+
* Supported Data Types<br/></td></tr>
|
|
23
24
|
* <tr>
|
|
24
25
|
* <td colspan=1 rowspan=1>
|
|
25
26
|
* startswith<br/></td><td colspan=1 rowspan=1>
|
|
26
|
-
* Checks
|
|
27
|
+
* Checks if the value starts with the specified input.<br/></td><td colspan=1 rowspan=1>
|
|
27
28
|
* String<br/></td></tr>
|
|
28
29
|
* <tr>
|
|
29
30
|
* <td colspan=1 rowspan=1>
|
|
30
31
|
* endswith<br/></td><td colspan=1 rowspan=1>
|
|
31
|
-
* Checks
|
|
32
|
+
* Checks if the value ends with the specified input.<br/><br/></td><td colspan=1 rowspan=1>
|
|
32
33
|
* <br/>String<br/></td></tr>
|
|
33
34
|
* <tr>
|
|
34
35
|
* <td colspan=1 rowspan=1>
|
|
35
36
|
* contains<br/></td><td colspan=1 rowspan=1>
|
|
36
|
-
* Checks
|
|
37
|
+
* Checks if the value contains the specified input anywhere within it.<br/><br/></td><td colspan=1 rowspan=1>
|
|
37
38
|
* <br/>String<br/></td></tr>
|
|
38
39
|
* <tr>
|
|
39
40
|
* <td colspan=1 rowspan=1>
|
|
40
41
|
* equal<br/></td><td colspan=1 rowspan=1>
|
|
41
|
-
* Checks
|
|
42
|
+
* Checks if the value is exactly equal to the specified input.<br/><br/></td><td colspan=1 rowspan=1>
|
|
42
43
|
* <br/>String | Number | Boolean | Date<br/></td></tr>
|
|
43
44
|
* <tr>
|
|
44
45
|
* <td colspan=1 rowspan=1>
|
|
45
46
|
* notequal<br/></td><td colspan=1 rowspan=1>
|
|
46
|
-
*
|
|
47
|
+
* Identifies values that are not equal to the specified input.<br/><br/></td><td colspan=1 rowspan=1>
|
|
47
48
|
* <br/>String | Number | Boolean | Date<br/></td></tr>
|
|
48
49
|
* <tr>
|
|
49
50
|
* <td colspan=1 rowspan=1>
|
|
50
51
|
* greaterthan<br/></td><td colspan=1 rowspan=1>
|
|
51
|
-
*
|
|
52
|
+
* Verifies if the value is greater than the specified input.<br/><br/></td><td colspan=1 rowspan=1>
|
|
52
53
|
* Number | Date<br/></td></tr>
|
|
53
54
|
* <tr>
|
|
54
55
|
* <td colspan=1 rowspan=1>
|
|
55
56
|
* greaterthanorequal<br/></td><td colspan=1 rowspan=1>
|
|
56
|
-
*
|
|
57
|
+
* Verifies if the value is greater than or equal to the specified input.<br/><br/></td><td colspan=1 rowspan=1>
|
|
57
58
|
* <br/>Number | Date<br/></td></tr>
|
|
58
59
|
* <tr>
|
|
59
60
|
* <td colspan=1 rowspan=1>
|
|
60
61
|
* lessthan<br/></td><td colspan=1 rowspan=1>
|
|
61
|
-
* Checks
|
|
62
|
+
* Checks if the value is less than the specified input.<br/><br/></td><td colspan=1 rowspan=1>
|
|
62
63
|
* <br/>Number | Date<br/></td></tr>
|
|
63
64
|
* <tr>
|
|
64
65
|
* <td colspan=1 rowspan=1>
|
|
65
66
|
* lessthanorequal<br/></td><td colspan=1 rowspan=1>
|
|
66
|
-
* Checks
|
|
67
|
+
* Checks if the value is less than or equal to the specified input.<br/><br/></td><td colspan=1 rowspan=1>
|
|
67
68
|
* <br/>Number | Date<br/></td></tr>
|
|
68
69
|
* </table>
|
|
69
70
|
*
|
|
@@ -72,29 +73,28 @@ export interface PredicateModel {
|
|
|
72
73
|
operator?: string;
|
|
73
74
|
|
|
74
75
|
/**
|
|
75
|
-
*
|
|
76
|
+
* Specifies the value to filter the column's data by.
|
|
76
77
|
*
|
|
77
78
|
* @default ''
|
|
78
79
|
*/
|
|
79
80
|
value?: string | number | Date | boolean;
|
|
80
81
|
|
|
81
82
|
/**
|
|
82
|
-
*
|
|
83
|
-
* filter records with case insensitive(uppercase and lowercase letters treated as same) in Tree Grid.
|
|
83
|
+
* Applies case-sensitive filtering if set to `true`. When false, filtering is case-insensitive.
|
|
84
84
|
*
|
|
85
85
|
* @default null
|
|
86
86
|
*/
|
|
87
87
|
matchCase?: boolean;
|
|
88
88
|
|
|
89
89
|
/**
|
|
90
|
-
*
|
|
90
|
+
* Ignores diacritic characters during filtering if set to `true`.
|
|
91
91
|
*
|
|
92
92
|
* @default false
|
|
93
93
|
*/
|
|
94
94
|
ignoreAccent?: boolean;
|
|
95
95
|
|
|
96
96
|
/**
|
|
97
|
-
* Defines relationship between
|
|
97
|
+
* Defines the logical relationship between multiple filter conditions ('AND' / 'OR').
|
|
98
98
|
*
|
|
99
99
|
* @default null
|
|
100
100
|
*/
|
|
@@ -102,37 +102,37 @@ export interface PredicateModel {
|
|
|
102
102
|
|
|
103
103
|
/**
|
|
104
104
|
* @hidden
|
|
105
|
-
*
|
|
105
|
+
* Holds the actual value used for filtering the column.
|
|
106
106
|
*/
|
|
107
107
|
actualFilterValue?: Object;
|
|
108
108
|
|
|
109
109
|
/**
|
|
110
110
|
* @hidden
|
|
111
|
-
*
|
|
111
|
+
* Represents the actual filter operator applied to the column.
|
|
112
112
|
*/
|
|
113
113
|
actualOperator?: Object;
|
|
114
114
|
|
|
115
115
|
/**
|
|
116
116
|
* @hidden
|
|
117
|
-
* Defines the type of the filter column
|
|
117
|
+
* Defines the data type of the filter column.
|
|
118
118
|
*/
|
|
119
119
|
type?: string;
|
|
120
120
|
|
|
121
121
|
/**
|
|
122
122
|
* @hidden
|
|
123
|
-
*
|
|
123
|
+
* Represents the internal predicate condition for the filter column.
|
|
124
124
|
*/
|
|
125
125
|
ejpredicate?: Object;
|
|
126
126
|
|
|
127
127
|
/**
|
|
128
128
|
* @hidden
|
|
129
|
-
*
|
|
129
|
+
* Unique identifier for the filter column.
|
|
130
130
|
*/
|
|
131
131
|
uid?: string;
|
|
132
132
|
|
|
133
133
|
/**
|
|
134
134
|
* @hidden
|
|
135
|
-
*
|
|
135
|
+
* Indicates whether the column is a foreign key in the filter set.
|
|
136
136
|
*/
|
|
137
137
|
isForeignKey?: boolean;
|
|
138
138
|
|
|
@@ -144,27 +144,27 @@ export interface PredicateModel {
|
|
|
144
144
|
export interface FilterSettingsModel {
|
|
145
145
|
|
|
146
146
|
/**
|
|
147
|
-
* Specifies the
|
|
147
|
+
* Specifies the initial filter configuration for TreeGrid columns or retrieves the current filter state.
|
|
148
148
|
*
|
|
149
149
|
* @default []
|
|
150
150
|
*/
|
|
151
151
|
columns?: PredicateModel[];
|
|
152
152
|
|
|
153
153
|
/**
|
|
154
|
-
*
|
|
155
|
-
* * `Menu
|
|
156
|
-
* * `FilterBar
|
|
154
|
+
* Sets the filtering interface type. Options include:
|
|
155
|
+
* * `Menu`: Provides a menu for filtering options.
|
|
156
|
+
* * `FilterBar`: Allows direct input filtering in a bar at the top of each column.
|
|
157
|
+
* * `Excel` : Specifies the filter type as excel.
|
|
158
|
+
* * `CheckBox` : Specifies the filter type as check box.
|
|
157
159
|
*
|
|
158
160
|
* @default FilterBar
|
|
159
161
|
*/
|
|
160
162
|
type?: FilterType;
|
|
161
163
|
|
|
162
164
|
/**
|
|
163
|
-
*
|
|
164
|
-
*
|
|
165
|
-
* *
|
|
166
|
-
* * Immediate :- Initiates filter operation after a certain time interval. By default, time interval is 1500 ms.
|
|
167
|
-
* ```
|
|
165
|
+
* Determines the mode of the filter bar operation. Options include:
|
|
166
|
+
* * `OnEnter`: Filtering is triggered upon pressing the Enter key.
|
|
167
|
+
* * `Immediate`: Filtering occurs after a short delay automatically.
|
|
168
168
|
*
|
|
169
169
|
* @default Syncfusion.EJ2.Grids.FilterBarMode.OnEnter
|
|
170
170
|
* @isEnumeration true
|
|
@@ -173,47 +173,39 @@ export interface FilterSettingsModel {
|
|
|
173
173
|
mode?: FilterBarMode;
|
|
174
174
|
|
|
175
175
|
/**
|
|
176
|
-
* Shows or hides the
|
|
176
|
+
* Shows or hides the status message related to filtering actions on the pager.
|
|
177
177
|
*
|
|
178
178
|
* @default true
|
|
179
179
|
*/
|
|
180
180
|
showFilterBarStatus?: boolean;
|
|
181
181
|
|
|
182
182
|
/**
|
|
183
|
-
*
|
|
183
|
+
* Determines the delay in milliseconds before filtering is triggered in `Immediate` mode.
|
|
184
184
|
*
|
|
185
185
|
* @default 1500
|
|
186
186
|
*/
|
|
187
187
|
immediateModeDelay?: number;
|
|
188
188
|
|
|
189
189
|
/**
|
|
190
|
-
*
|
|
191
|
-
* (string, number, date and boolean). Based on the column type, this customize operator list will render in filter menu.
|
|
192
|
-
*
|
|
193
|
-
* > Check the `Filter Menu Operator` customization.
|
|
190
|
+
* Allows customization of the default operators offered in the filter menu by defining custom operators for string, number, date, and boolean types.
|
|
194
191
|
*
|
|
195
192
|
* @default null
|
|
196
193
|
*/
|
|
197
194
|
operators?: ICustomOptr;
|
|
198
195
|
|
|
199
196
|
/**
|
|
200
|
-
* If
|
|
201
|
-
*
|
|
202
|
-
* > Check the [`Diacritics`](../../treegrid/filtering/#diacritics/) filtering.
|
|
197
|
+
* If set to `true`, filtering ignores accent characters, making diacritic characters identical to their unaccented versions.
|
|
203
198
|
*
|
|
204
199
|
* @default false
|
|
205
200
|
*/
|
|
206
201
|
ignoreAccent?: boolean;
|
|
207
202
|
|
|
208
203
|
/**
|
|
209
|
-
*
|
|
210
|
-
*
|
|
211
|
-
* *
|
|
212
|
-
* *
|
|
213
|
-
* *
|
|
214
|
-
* * None :- Shows only the filtered record.
|
|
215
|
-
* ```
|
|
216
|
-
* {% codeBlock src='treegrid/hierarchyMode/index.md' %}{% endcodeBlock %}
|
|
204
|
+
* Specifies how the hierarchy should be maintained during filtering:
|
|
205
|
+
* * `Parent`: Displays the filtered records along with their parent records.
|
|
206
|
+
* * `Child`: Displays the filtered records along with their child records.
|
|
207
|
+
* * `Both`: Displays the filtered records with both parent and child records.
|
|
208
|
+
* * `None`: Only displays the filtered records.
|
|
217
209
|
*
|
|
218
210
|
* @default Parent
|
|
219
211
|
* @isEnumeration true
|