@progress/kendo-angular-treelist 19.1.2-develop.4 → 19.1.2-develop.6
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/binding-directives/base-binding.directive.d.ts +6 -3
- package/binding-directives/flat-binding.directive.d.ts +7 -8
- package/binding-directives/hierarchy-binding.directive.d.ts +13 -6
- package/column-menu/column-chooser.component.d.ts +5 -8
- package/column-menu/column-locked-change-event.d.ts +4 -2
- package/column-menu/column-menu-autosize-all.component.d.ts +3 -5
- package/column-menu/column-menu-autosize.component.d.ts +5 -7
- package/column-menu/column-menu-chooser.component.d.ts +15 -6
- package/column-menu/column-menu-expandable-item.interface.d.ts +4 -3
- package/column-menu/column-menu-filter.component.d.ts +14 -4
- package/column-menu/column-menu-item-base.d.ts +1 -1
- package/column-menu/column-menu-item-content-template.directive.d.ts +3 -5
- package/column-menu/column-menu-item.component.d.ts +7 -10
- package/column-menu/column-menu-item.directive.d.ts +23 -1
- package/column-menu/column-menu-lock.component.d.ts +14 -4
- package/column-menu/column-menu-settings.interface.d.ts +5 -5
- package/column-menu/column-menu-sort.component.d.ts +12 -2
- package/column-menu/column-menu-template.directive.d.ts +3 -5
- package/column-menu/column-menu.component.d.ts +14 -2
- package/column-menu/column-menu.service.d.ts +1 -2
- package/column-menu/column-visibility-change-event.d.ts +2 -2
- package/column-resizing/column-resize.interface.d.ts +3 -2
- package/columns/checkbox-column.component.d.ts +16 -4
- package/columns/column-base.d.ts +15 -28
- package/columns/column-group.component.d.ts +1 -2
- package/columns/column.component.d.ts +22 -18
- package/columns/command-column.component.d.ts +3 -4
- package/columns/rowreorder-column.component.d.ts +9 -1
- package/columns/sort-settings.d.ts +5 -23
- package/columns/span-column.component.d.ts +11 -16
- package/common/cell-click-event-args.interface.d.ts +4 -3
- package/common/create-form-group.d.ts +2 -1
- package/common/pager-settings.d.ts +7 -8
- package/common/remove-confirmation.d.ts +1 -1
- package/common/single-popup.service.d.ts +7 -6
- package/data/change-event-args.interface.d.ts +6 -7
- package/data/data-item.interface.d.ts +5 -5
- package/data/data.collection.d.ts +4 -3
- package/data/treelist-item.interface.d.ts +2 -2
- package/directives.d.ts +10 -9
- package/dragdrop/column-reorder-config.d.ts +3 -2
- package/dragdrop/column-reorder-event.d.ts +4 -6
- package/editing/add-command-tool.directive.d.ts +9 -12
- package/editing/add-command.directive.d.ts +5 -9
- package/editing/add-event-args.interface.d.ts +3 -2
- package/editing/cancel-command.directive.d.ts +5 -8
- package/editing/cancel-event-args.interface.d.ts +1 -1
- package/editing/cell-close-event.d.ts +5 -5
- package/editing/edit-command.directive.d.ts +5 -9
- package/editing/edit-event-args.interface.d.ts +4 -3
- package/editing/edit-template.directive.d.ts +2 -4
- package/editing/remove-command.directive.d.ts +5 -8
- package/editing/remove-event-args.interface.d.ts +3 -2
- package/editing/save-command.directive.d.ts +5 -8
- package/editing/save-event-args.interface.d.ts +4 -3
- package/editing-directives/create-form-group-args.interface.d.ts +1 -1
- package/editing-directives/edit-service.interface.d.ts +13 -5
- package/editing-directives/editing-directive-base.d.ts +3 -3
- package/editing-directives/in-cell-editing.directive.d.ts +12 -2
- package/editing-directives/reactive-editing.directive.d.ts +12 -2
- package/editing-directives/template-editing.directive.d.ts +13 -3
- package/esm2022/binding-directives/base-binding.directive.mjs +6 -3
- package/esm2022/binding-directives/flat-binding.directive.mjs +7 -8
- package/esm2022/binding-directives/hierarchy-binding.directive.mjs +13 -6
- package/esm2022/column-menu/column-chooser.component.mjs +5 -8
- package/esm2022/column-menu/column-locked-change-event.mjs +4 -2
- package/esm2022/column-menu/column-menu-autosize-all.component.mjs +3 -5
- package/esm2022/column-menu/column-menu-autosize.component.mjs +5 -7
- package/esm2022/column-menu/column-menu-chooser.component.mjs +15 -6
- package/esm2022/column-menu/column-menu-filter.component.mjs +14 -4
- package/esm2022/column-menu/column-menu-item-base.mjs +1 -1
- package/esm2022/column-menu/column-menu-item-content-template.directive.mjs +3 -5
- package/esm2022/column-menu/column-menu-item.component.mjs +7 -10
- package/esm2022/column-menu/column-menu-item.directive.mjs +23 -1
- package/esm2022/column-menu/column-menu-lock.component.mjs +14 -4
- package/esm2022/column-menu/column-menu-sort.component.mjs +12 -2
- package/esm2022/column-menu/column-menu-template.directive.mjs +3 -5
- package/esm2022/column-menu/column-menu.component.mjs +14 -2
- package/esm2022/column-menu/column-menu.service.mjs +1 -2
- package/esm2022/column-menu/column-visibility-change-event.mjs +2 -2
- package/esm2022/columns/checkbox-column.component.mjs +16 -4
- package/esm2022/columns/column-base.mjs +15 -28
- package/esm2022/columns/column-group.component.mjs +1 -2
- package/esm2022/columns/column.component.mjs +22 -18
- package/esm2022/columns/command-column.component.mjs +3 -4
- package/esm2022/columns/rowreorder-column.component.mjs +9 -1
- package/esm2022/columns/span-column.component.mjs +11 -16
- package/esm2022/common/single-popup.service.mjs +7 -6
- package/esm2022/directives.mjs +10 -9
- package/esm2022/dragdrop/column-reorder-event.mjs +4 -6
- package/esm2022/editing/add-command-tool.directive.mjs +9 -12
- package/esm2022/editing/add-command.directive.mjs +5 -9
- package/esm2022/editing/cancel-command.directive.mjs +5 -8
- package/esm2022/editing/cell-close-event.mjs +5 -5
- package/esm2022/editing/edit-command.directive.mjs +5 -9
- package/esm2022/editing/edit-template.directive.mjs +2 -4
- package/esm2022/editing/remove-command.directive.mjs +5 -8
- package/esm2022/editing/save-command.directive.mjs +5 -8
- package/esm2022/editing-directives/editing-directive-base.mjs +3 -3
- package/esm2022/editing-directives/in-cell-editing.directive.mjs +12 -2
- package/esm2022/editing-directives/reactive-editing.directive.mjs +12 -2
- package/esm2022/editing-directives/template-editing.directive.mjs +13 -3
- package/esm2022/excel/excel-command-tool.directive.mjs +9 -11
- package/esm2022/excel/excel-command.directive.mjs +3 -7
- package/esm2022/excel/excel.component.mjs +22 -16
- package/esm2022/excel/excel.module.mjs +2 -2
- package/esm2022/expand-state/expand-event.mjs +3 -3
- package/esm2022/expand-state/expandable.directive.mjs +8 -5
- package/esm2022/filtering/base-filter-cell.component.mjs +3 -1
- package/esm2022/filtering/cell/boolean-filter-cell.component.mjs +1 -0
- package/esm2022/filtering/cell/date-filter-cell.component.mjs +5 -3
- package/esm2022/filtering/cell/filter-cell-operators.component.mjs +2 -1
- package/esm2022/filtering/cell/filter-cell-template.directive.mjs +18 -3
- package/esm2022/filtering/cell/numeric-filter-cell.component.mjs +7 -5
- package/esm2022/filtering/cell/string-filter-cell.component.mjs +7 -7
- package/esm2022/filtering/date-filter.component.mjs +8 -3
- package/esm2022/filtering/filter.service.mjs +2 -4
- package/esm2022/filtering/menu/boolean-filter-menu.component.mjs +3 -3
- package/esm2022/filtering/menu/date-filter-menu.component.mjs +6 -3
- package/esm2022/filtering/menu/filter-menu-template.directive.mjs +18 -2
- package/esm2022/filtering/menu/numeric-filter-menu.component.mjs +9 -5
- package/esm2022/filtering/menu/string-filter-menu.component.mjs +6 -4
- package/esm2022/filtering/numeric-filter.component.mjs +3 -3
- package/esm2022/filtering/operators/after-eq-filter-operator.component.mjs +27 -1
- package/esm2022/filtering/operators/after-filter-operator.component.mjs +27 -1
- package/esm2022/filtering/operators/before-eq-filter-operator.component.mjs +27 -1
- package/esm2022/filtering/operators/before-filter-operator.component.mjs +27 -1
- package/esm2022/filtering/operators/contains-filter-operator.component.mjs +28 -1
- package/esm2022/filtering/operators/ends-with-filter-operator.component.mjs +28 -1
- package/esm2022/filtering/operators/eq-filter-operator.component.mjs +76 -1
- package/esm2022/filtering/operators/filter-operator.base.mjs +1 -1
- package/esm2022/filtering/operators/gt-filter-operator.component.mjs +28 -2
- package/esm2022/filtering/operators/gte-filter-operator.component.mjs +27 -1
- package/esm2022/filtering/operators/is-empty-filter-operator.component.mjs +28 -1
- package/esm2022/filtering/operators/is-not-empty-filter-operator.component.mjs +28 -1
- package/esm2022/filtering/operators/is-not-null-filter-operator.component.mjs +76 -1
- package/esm2022/filtering/operators/isnull-filter-operator.component.mjs +76 -1
- package/esm2022/filtering/operators/lt-filter-operator.component.mjs +27 -1
- package/esm2022/filtering/operators/lte-filter-operator.component.mjs +28 -2
- package/esm2022/filtering/operators/neq-filter-operator.component.mjs +76 -1
- package/esm2022/filtering/operators/not-contains-filter-operator.component.mjs +28 -1
- package/esm2022/filtering/operators/starts-with-filter-operator.component.mjs +28 -1
- package/esm2022/filtering/string-filter.component.mjs +1 -1
- package/esm2022/localization/custom-messages.component.mjs +11 -2
- package/esm2022/navigation/focusable.directive.mjs +4 -4
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/pdf/pdf-command-tool.directive.mjs +11 -9
- package/esm2022/pdf/pdf-command.directive.mjs +2 -2
- package/esm2022/pdf/pdf-export-event.mjs +3 -1
- package/esm2022/pdf/pdf-margin.component.mjs +10 -5
- package/esm2022/pdf/pdf-template.directive.mjs +2 -2
- package/esm2022/pdf/pdf.component.mjs +12 -2
- package/esm2022/pdf/pdf.module.mjs +6 -6
- package/esm2022/rendering/cell-template.directive.mjs +8 -9
- package/esm2022/rendering/common/spacer.component.mjs +16 -5
- package/esm2022/rendering/footer-template.directive.mjs +10 -12
- package/esm2022/rendering/header/header-template.directive.mjs +4 -4
- package/esm2022/rendering/no-records-template.directive.mjs +2 -2
- package/esm2022/rendering/toolbar/toolbar-focusable.directive.mjs +13 -2
- package/esm2022/rendering/toolbar/toolbar-template.directive.mjs +4 -6
- package/esm2022/selection/selectable.directive.mjs +12 -0
- package/esm2022/selection/selection-change-event.mjs +1 -1
- package/esm2022/treelist.component.mjs +145 -109
- package/esm2022/treelist.module.mjs +6 -8
- package/esm2022/utils.mjs +1 -1
- package/excel/excel-command-tool.directive.d.ts +9 -11
- package/excel/excel-command.directive.d.ts +3 -7
- package/excel/excel-export-data.interface.d.ts +4 -4
- package/excel/excel.component.d.ts +22 -16
- package/excel/excel.module.d.ts +2 -2
- package/expand-state/expand-event.d.ts +3 -3
- package/expand-state/expandable-tree-component.d.ts +4 -6
- package/expand-state/expandable.directive.d.ts +8 -5
- package/fesm2022/progress-kendo-angular-treelist.mjs +1470 -574
- package/filtering/base-filter-cell.component.d.ts +3 -1
- package/filtering/cell/boolean-filter-cell.component.d.ts +1 -0
- package/filtering/cell/date-filter-cell.component.d.ts +5 -3
- package/filtering/cell/filter-cell-operators.component.d.ts +2 -1
- package/filtering/cell/filter-cell-template.directive.d.ts +18 -3
- package/filtering/cell/numeric-filter-cell.component.d.ts +7 -5
- package/filtering/cell/string-filter-cell.component.d.ts +7 -7
- package/filtering/date-filter.component.d.ts +8 -3
- package/filtering/filter.service.d.ts +2 -4
- package/filtering/filterable.d.ts +3 -2
- package/filtering/menu/boolean-filter-menu.component.d.ts +3 -3
- package/filtering/menu/date-filter-menu.component.d.ts +6 -3
- package/filtering/menu/filter-menu-template.directive.d.ts +18 -2
- package/filtering/menu/numeric-filter-menu.component.d.ts +9 -5
- package/filtering/menu/string-filter-menu.component.d.ts +6 -4
- package/filtering/numeric-filter.component.d.ts +3 -3
- package/filtering/operators/after-eq-filter-operator.component.d.ts +27 -1
- package/filtering/operators/after-filter-operator.component.d.ts +27 -1
- package/filtering/operators/before-eq-filter-operator.component.d.ts +27 -1
- package/filtering/operators/before-filter-operator.component.d.ts +27 -1
- package/filtering/operators/contains-filter-operator.component.d.ts +28 -1
- package/filtering/operators/ends-with-filter-operator.component.d.ts +28 -1
- package/filtering/operators/eq-filter-operator.component.d.ts +76 -1
- package/filtering/operators/filter-operator.base.d.ts +1 -1
- package/filtering/operators/gt-filter-operator.component.d.ts +30 -0
- package/filtering/operators/gte-filter-operator.component.d.ts +27 -1
- package/filtering/operators/is-empty-filter-operator.component.d.ts +28 -1
- package/filtering/operators/is-not-empty-filter-operator.component.d.ts +28 -1
- package/filtering/operators/is-not-null-filter-operator.component.d.ts +76 -1
- package/filtering/operators/isnull-filter-operator.component.d.ts +76 -1
- package/filtering/operators/lt-filter-operator.component.d.ts +27 -1
- package/filtering/operators/lte-filter-operator.component.d.ts +30 -0
- package/filtering/operators/neq-filter-operator.component.d.ts +76 -1
- package/filtering/operators/not-contains-filter-operator.component.d.ts +28 -1
- package/filtering/operators/starts-with-filter-operator.component.d.ts +28 -1
- package/filtering/string-filter.component.d.ts +1 -1
- package/localization/custom-messages.component.d.ts +11 -2
- package/navigation/focusable-element.interface.d.ts +7 -11
- package/navigation/focusable.directive.d.ts +4 -4
- package/navigation/navigation-cell.interface.d.ts +5 -5
- package/navigation/navigation-row.interface.d.ts +4 -5
- package/package.json +18 -18
- package/pdf/pdf-command-tool.directive.d.ts +11 -9
- package/pdf/pdf-command.directive.d.ts +2 -2
- package/pdf/pdf-export-event.d.ts +3 -1
- package/pdf/pdf-margin.component.d.ts +10 -5
- package/pdf/pdf-margin.interface.d.ts +1 -1
- package/pdf/pdf-template.directive.d.ts +2 -2
- package/pdf/pdf.component.d.ts +12 -2
- package/pdf/pdf.module.d.ts +6 -6
- package/rendering/cell-template.directive.d.ts +8 -9
- package/rendering/common/row-class.d.ts +4 -7
- package/rendering/common/spacer.component.d.ts +16 -5
- package/rendering/footer-template.directive.d.ts +10 -12
- package/rendering/header/header-template.directive.d.ts +4 -4
- package/rendering/no-records-template.directive.d.ts +2 -2
- package/rendering/toolbar/toolbar-focusable.directive.d.ts +13 -2
- package/rendering/toolbar/toolbar-template.directive.d.ts +4 -6
- package/row-reordering/types.d.ts +4 -1
- package/schematics/ngAdd/index.js +3 -3
- package/scrolling/content-scroll-event.d.ts +2 -0
- package/scrolling/scroll-bottom-event.d.ts +2 -0
- package/scrolling/scroll-request.service.d.ts +3 -3
- package/scrolling/scrollmode.d.ts +3 -3
- package/selection/is-selected.d.ts +5 -4
- package/selection/selectable-settings.d.ts +6 -6
- package/selection/selectable.directive.d.ts +12 -0
- package/selection/selection-change-event.d.ts +2 -2
- package/treelist.component.d.ts +143 -107
- package/treelist.module.d.ts +6 -8
@@ -23,7 +23,7 @@ export const isCheckboxColumn = column => column.isCheckboxColumn;
|
|
23
23
|
export const isRowReorderColumn = column => column.isRowReorderColumn;
|
24
24
|
const isColumnContainer = column => column.isColumnGroup || isSpanColumn(column);
|
25
25
|
/**
|
26
|
-
*
|
26
|
+
* Serves as the base class for column components in the TreeList.
|
27
27
|
*/
|
28
28
|
export class ColumnBase {
|
29
29
|
parent;
|
@@ -70,28 +70,27 @@ export class ColumnBase {
|
|
70
70
|
*/
|
71
71
|
reorderable = true;
|
72
72
|
/**
|
73
|
-
*
|
73
|
+
* Sets the minimum width (in pixels) for resizing the column using the UI.
|
74
74
|
* @default 10
|
75
75
|
*/
|
76
76
|
minResizableWidth = 10;
|
77
77
|
/**
|
78
|
-
*
|
78
|
+
* Sets the title of the column.
|
79
79
|
*/
|
80
80
|
title;
|
81
81
|
/**
|
82
|
-
*
|
82
|
+
* Sets the width of the column (in pixels).
|
83
83
|
*/
|
84
84
|
set width(value) {
|
85
85
|
this._width = parseInt(value, 10);
|
86
86
|
}
|
87
87
|
get width() { return this._width; }
|
88
88
|
/**
|
89
|
-
* Indicates whether the column
|
89
|
+
* Indicates whether the column is automatically resized during initialization to fit its header and row content.
|
90
90
|
*/
|
91
91
|
autoSize;
|
92
92
|
/**
|
93
93
|
* Toggles the locked (frozen) state of the columns ([more information and example](slug:locked_columns_treelist)).
|
94
|
-
*
|
95
94
|
* @default false
|
96
95
|
*/
|
97
96
|
set locked(value) {
|
@@ -103,12 +102,11 @@ export class ColumnBase {
|
|
103
102
|
_locked = false;
|
104
103
|
/**
|
105
104
|
* Sets the visibility of the column ([see example](slug:hidden_columns_treelist#toc-using-the-built-in-options)).
|
106
|
-
*
|
107
105
|
* @default false
|
108
106
|
*/
|
109
107
|
hidden;
|
110
108
|
/**
|
111
|
-
* Sets the condition that
|
109
|
+
* Sets the condition that must be satisfied for a column to remain visible ([see example](slug:responsive_treelist#toc-columns)).
|
112
110
|
* If you set the `hidden` property, the behavior of `media` is overridden.
|
113
111
|
*/
|
114
112
|
media;
|
@@ -118,55 +116,44 @@ export class ColumnBase {
|
|
118
116
|
*/
|
119
117
|
lockable = true;
|
120
118
|
/**
|
121
|
-
* Specifies if the column menu
|
119
|
+
* Specifies if the column menu is shown for the column.
|
122
120
|
* @default true
|
123
121
|
*/
|
124
122
|
columnMenu = true;
|
125
123
|
/**
|
126
|
-
* Specifies if the column
|
124
|
+
* Specifies if the column is included in the column-chooser list.
|
127
125
|
* @default true
|
128
126
|
*/
|
129
127
|
includeInChooser = true;
|
130
128
|
/**
|
131
|
-
*
|
129
|
+
* Sets the `role` attribute for the table cells (excluding the footer and header) of the column.
|
132
130
|
* @default "gridcell"
|
133
131
|
*/
|
134
132
|
tableCellsRole = 'gridcell';
|
135
133
|
/**
|
136
|
-
* Sets
|
137
|
-
* to apply the property, the `style` option uses the
|
138
|
-
* [NgStyle](link:site.data.urls.angular['ngstyleapi']) directive. [See example](slug:styling_treelist_columns).
|
134
|
+
* Sets custom styles for the table cells (excluding the footer and header) of the column. Uses the [`NgStyle`](link:site.data.urls.angular['ngstyleapi']) directive. [See example](slug:styling_treelist_columns).
|
139
135
|
*/
|
140
136
|
style;
|
141
137
|
/**
|
142
|
-
* Sets
|
143
|
-
* the `headerStyle` option uses the
|
144
|
-
* [NgStyle](link:site.data.urls.angular['ngstyleapi']) directive. [See example](slug:styling_treelist_columns).
|
138
|
+
* Sets custom styles for the header cell of the column. Uses the [`NgStyle`](link:site.data.urls.angular['ngstyleapi']) directive. [See example.](slug:styling_treelist_columns)
|
145
139
|
*/
|
146
140
|
headerStyle;
|
147
141
|
/**
|
148
|
-
* Sets
|
149
|
-
* the `footerStyle` option uses the
|
150
|
-
* [NgStyle](link:site.data.urls.angular['ngstyleapi']) directive. [See example](slug:styling_treelist_columns).
|
142
|
+
* Sets custom styles for the footer cell of the column. Uses the [`NgStyle`](link:site.data.urls.angular['ngstyleapi']) directive. [See example.](slug:styling_treelist_columns)
|
151
143
|
*/
|
152
144
|
footerStyle;
|
153
145
|
/**
|
154
|
-
* Sets
|
155
|
-
* [NgClass](link:site.data.urls.angular['ngclassapi']) directive.
|
156
|
-
* To customize header and footer column cells, use the [`headerClass`]({% slug api_treelist_columncomponent %}#toc-headerclass)
|
157
|
-
* and [`footerClass`]({% slug api_treelist_columncomponent %}#toc-footerclass) inputs.
|
146
|
+
* Sets custom CSS classes to the column cells. Uses the [`NgClass`](link:site.data.urls.angular['ngclassapi']) directive. To customize header and footer column cells, use the [`headerClass`]({% slug api_treelist_columncomponent %}#toc-headerclass) and [`footerClass`]({% slug api_treelist_columncomponent %}#toc-footerclass) inputs.
|
158
147
|
*/
|
159
148
|
cssClass;
|
160
149
|
/**
|
161
|
-
* Sets
|
162
|
-
* the `headerClass` option uses the
|
163
|
-
* [NgClass](link:site.data.urls.angular['ngclassapi']) directive. [See example](slug:styling_treelist_columns).
|
150
|
+
* Sets custom CSS classes to the column header cell. Uses the [`NgClass`](link:site.data.urls.angular['ngclassapi']) directive. [See example](slug:styling_treelist_columns).
|
164
151
|
*/
|
165
152
|
headerClass;
|
166
153
|
/**
|
167
154
|
* Sets the custom CSS classes to the column footer cell. Under the hood, to apply the property,
|
168
155
|
* the `footerClass` option uses the
|
169
|
-
* [NgClass](link:site.data.urls.angular['ngclassapi']) directive. [See example](slug:styling_treelist_columns).
|
156
|
+
* [`NgClass`](link:site.data.urls.angular['ngclassapi']) directive. [See example](slug:styling_treelist_columns).
|
170
157
|
*/
|
171
158
|
footerClass;
|
172
159
|
/**
|
@@ -16,8 +16,7 @@ export function isColumnGroupComponent(column) {
|
|
16
16
|
return column.isColumnGroup;
|
17
17
|
}
|
18
18
|
/**
|
19
|
-
* Represents the column group header of the TreeList
|
20
|
-
* ([more information and examples]({% slug multicolumnheaders_columns_treelist %})).
|
19
|
+
* Represents the column group header of the TreeList. ([More information and examples]({% slug multicolumnheaders_columns_treelist %})).
|
21
20
|
*
|
22
21
|
* @example
|
23
22
|
* ```html
|
@@ -20,58 +20,62 @@ export function isColumnComponent(column) {
|
|
20
20
|
return isPresent(column.field);
|
21
21
|
}
|
22
22
|
/**
|
23
|
-
* Represents
|
23
|
+
* Represents a column in the TreeList. Use this component to define a data-bound column.
|
24
24
|
*
|
25
25
|
* @example
|
26
26
|
* ```html
|
27
27
|
* <kendo-treelist [kendoTreeListFlatBinding]="data" ...>
|
28
28
|
* <kendo-treelist-column field="name" title="Name"></kendo-treelist-column>
|
29
|
-
* <kendo-treelist-column field="title"title="Title"></kendo-treelist-column>
|
29
|
+
* <kendo-treelist-column field="title" title="Title"></kendo-treelist-column>
|
30
30
|
* </kendo-treelist>
|
31
31
|
* ```
|
32
|
+
* @remarks
|
33
|
+
* Supported children components are:
|
34
|
+
* {@link StringFilterCellComponent},
|
35
|
+
* {@link NumericFilterCellComponent},
|
36
|
+
* {@link BooleanFilterCellComponent},
|
37
|
+
* {@link DateFilterCellComponent},
|
38
|
+
* {@link StringFilterMenuComponent},
|
39
|
+
* {@link NumericFilterMenuComponent},
|
40
|
+
* {@link BooleanFilterMenuComponent},
|
41
|
+
* {@link DateFilterMenuComponent},
|
42
|
+
* {@link FilterCellOperatorsComponent}.
|
32
43
|
*/
|
33
44
|
export class ColumnComponent extends ColumnBase {
|
34
45
|
/**
|
35
|
-
*
|
36
|
-
* @default false
|
46
|
+
* Specifies if the expanded indicator appears in the column.
|
37
47
|
*/
|
38
48
|
expandable;
|
39
49
|
/**
|
40
|
-
*
|
50
|
+
* Sets the field to which the column is bound.
|
41
51
|
*/
|
42
52
|
field;
|
43
53
|
/**
|
44
|
-
*
|
45
|
-
* refer to the [Column Formats](slug:formats_columns_treelist) documentation article.
|
54
|
+
* Sets the format applied to the value before display. For supported date and number formats, see the [Column Formats](slug:formats_columns_treelist) article.
|
46
55
|
*/
|
47
56
|
format;
|
48
57
|
/**
|
49
|
-
* Allows the column headers to be clicked and the `sortChange` event emitted.
|
50
|
-
*
|
58
|
+
* Allows the column headers to be clicked and the `sortChange` event emitted. You must handle the `sortChange` event and sort the data.
|
59
|
+
* @default true
|
51
60
|
*/
|
52
61
|
sortable = true;
|
53
62
|
/**
|
54
|
-
*
|
55
|
-
* Used when the column enters the edit mode. [See example](slug:editing_reactive_forms_treelist).
|
56
|
-
*
|
63
|
+
* Sets the editor type ([see example]({% slug editing_reactive_forms_treelist %}#toc-setup)). Used when the column enters edit mode. [See example](slug:editing_reactive_forms_treelist).
|
57
64
|
* @default 'text'
|
58
65
|
*/
|
59
66
|
editor = 'text';
|
60
67
|
/**
|
61
|
-
*
|
62
|
-
*
|
68
|
+
* Sets the filter type displayed inside the filter row.
|
63
69
|
* @default 'text'
|
64
70
|
*/
|
65
71
|
filter = 'text';
|
66
72
|
/**
|
67
|
-
*
|
68
|
-
*
|
73
|
+
* Specifies if a filter UI appears for this column.
|
69
74
|
* @default true
|
70
75
|
*/
|
71
76
|
filterable = true;
|
72
77
|
/**
|
73
|
-
*
|
74
|
-
*
|
78
|
+
* Specifies if the column is editable.
|
75
79
|
* @default true
|
76
80
|
*/
|
77
81
|
editable = true;
|
@@ -10,9 +10,8 @@ import * as i0 from "@angular/core";
|
|
10
10
|
import * as i1 from "./column-base";
|
11
11
|
import * as i2 from "../common/option-changes.service";
|
12
12
|
/**
|
13
|
-
* Represents the command
|
14
|
-
*
|
15
|
-
* and the command directives, refer to the article on
|
13
|
+
* Represents the command column of the TreeList. Define the content of the column inside an `<ng-template>` tag.
|
14
|
+
* For more information and examples on using the passed fields and command directives, see
|
16
15
|
* [editing the TreeList in Angular Reactive Forms]({% slug editing_reactive_forms_treelist %}).
|
17
16
|
*
|
18
17
|
* Usually, the template contains CRUD command directives such as:
|
@@ -25,7 +24,7 @@ import * as i2 from "../common/option-changes.service";
|
|
25
24
|
* ```html
|
26
25
|
* <kendo-treelist ...>
|
27
26
|
* <kendo-treelist-column field="ProductID"></kendo-treelist-column>
|
28
|
-
* <kendo-treelist-command-column title="command"
|
27
|
+
* <kendo-treelist-command-column title="command">
|
29
28
|
* <ng-template kendoTreeListCellTemplate>
|
30
29
|
* <button kendoTreeListEditCommand class="k-primary">Edit</button>
|
31
30
|
* <button kendoTreeListRemoveCommand>Remove</button>
|
@@ -7,7 +7,15 @@ import { ColumnBase } from './column-base';
|
|
7
7
|
import * as i0 from "@angular/core";
|
8
8
|
import * as i1 from "./column-base";
|
9
9
|
/**
|
10
|
-
* Represents the drag handle for reordering rows in the TreeList.
|
10
|
+
* Represents the drag handle column for reordering rows in the TreeList.
|
11
|
+
*
|
12
|
+
* @example
|
13
|
+
* ```html
|
14
|
+
* <kendo-treelist [data]="data" [fetchChildren]="fetchChildren" [hasChildren]="hasChildren">
|
15
|
+
* <kendo-treelist-rowreorder-column></kendo-treelist-rowreorder-column>
|
16
|
+
* <kendo-treelist-column field="ProductName" title="Product Name"></kendo-treelist-column>
|
17
|
+
* </kendo-treelist>
|
18
|
+
* ```
|
11
19
|
*/
|
12
20
|
export class RowReorderColumnComponent extends ColumnBase {
|
13
21
|
parent;
|
@@ -19,16 +19,15 @@ export function isSpanColumnComponent(column) {
|
|
19
19
|
return column.isSpanColumn;
|
20
20
|
}
|
21
21
|
/**
|
22
|
-
* Represents a column
|
23
|
-
*
|
24
|
-
*
|
25
|
-
* [sorting]({% slug sorting_treelist %}) and [filtering]({% slug filtering_treelist %}). Wrap the columns that will be
|
26
|
-
* merged inside the `<kendo-treelist-span-column>` tag.
|
22
|
+
* Represents a column that spans multiple data cells while keeping individual header and footer cells.
|
23
|
+
* Use this component to create flexible layouts and retain built-in UI for [sorting]({% slug sorting_treelist %}) and [filtering]({% slug filtering_treelist %}).
|
24
|
+
* Wrap the columns to merge inside the `<kendo-treelist-span-column>` tag.
|
27
25
|
*
|
26
|
+
* @example
|
28
27
|
* ```html
|
29
28
|
* <kendo-treelist-span-column>
|
30
|
-
* <kendo-treelist-column field="field1"
|
31
|
-
* <kendo-treelist-column field="field2"
|
29
|
+
* <kendo-treelist-column field="field1"></kendo-treelist-column>
|
30
|
+
* <kendo-treelist-column field="field2"></kendo-treelist-column>
|
32
31
|
* <ng-template kendoTreeListCellTemplate let-dataItem>
|
33
32
|
* <h5>{{ dataItem.field1 }}</h5>
|
34
33
|
* <p>{{ dataItem.field2 }}</p>
|
@@ -38,8 +37,7 @@ export function isSpanColumnComponent(column) {
|
|
38
37
|
*/
|
39
38
|
export class SpanColumnComponent extends ColumnBase {
|
40
39
|
/**
|
41
|
-
*
|
42
|
-
* @default false
|
40
|
+
* Specifies if the expanded indicator appears in the column.
|
43
41
|
*/
|
44
42
|
expandable;
|
45
43
|
/*
|
@@ -77,10 +75,9 @@ export class SpanColumnComponent extends ColumnBase {
|
|
77
75
|
*/
|
78
76
|
includeInChooser = false;
|
79
77
|
/**
|
80
|
-
* Defines whether the edit template of the column
|
81
|
-
*
|
82
|
-
*
|
83
|
-
*
|
78
|
+
* Defines whether the edit template of the column is rendered.
|
79
|
+
* To enable editing for a spanned column, set an edit template for it.
|
80
|
+
* @default false
|
84
81
|
*/
|
85
82
|
set editable(value) {
|
86
83
|
this._editable = value;
|
@@ -131,9 +128,7 @@ export class SpanColumnComponent extends ColumnBase {
|
|
131
128
|
return this.childColumns.filter(c => c.isVisible).length;
|
132
129
|
}
|
133
130
|
/**
|
134
|
-
* Toggles the locked (frozen) state of the columns. Locked columns are visible
|
135
|
-
* at all times during the horizontal scrolling of the TreeList. [See example](slug:locked_columns_treelist).
|
136
|
-
*
|
131
|
+
* Toggles the locked (frozen) state of the columns. Locked columns are visible at all times during horizontal scrolling. [See example](slug:locked_columns_treelist).
|
137
132
|
* @default false
|
138
133
|
*/
|
139
134
|
set locked(value) {
|
@@ -25,11 +25,11 @@ const contains = (node, predicate) => {
|
|
25
25
|
return false;
|
26
26
|
};
|
27
27
|
/**
|
28
|
-
*
|
28
|
+
* Provides arguments for the `close` event of the filter and column-menu popup. Use this event to access the original DOM event that triggers the popup to close and to prevent the default closing behavior if needed.
|
29
29
|
*/
|
30
30
|
export class PopupCloseEvent extends PreventableEvent {
|
31
31
|
/**
|
32
|
-
*
|
32
|
+
* Stores the original DOM event that causes the popup to close.
|
33
33
|
*/
|
34
34
|
originalEvent;
|
35
35
|
/**
|
@@ -42,8 +42,9 @@ export class PopupCloseEvent extends PreventableEvent {
|
|
42
42
|
}
|
43
43
|
const DEFAULT_POPUP_CLASS = 'k-grid-filter-popup';
|
44
44
|
/**
|
45
|
-
*
|
46
|
-
*
|
45
|
+
* Represents the service used for the popups of the filter and column menus.
|
46
|
+
* Use this service to manage popup opening, closing, and event handling.
|
47
|
+
* ([See example]({% slug filter_menu_treelist %}#toc-filter-menu-with-popup)).
|
47
48
|
*/
|
48
49
|
export class SinglePopupService {
|
49
50
|
popupService;
|
@@ -51,8 +52,8 @@ export class SinglePopupService {
|
|
51
52
|
ngZone;
|
52
53
|
localization;
|
53
54
|
/**
|
54
|
-
*
|
55
|
-
*
|
55
|
+
* Emits when the filter or column menus are about to close because the user clicked outside their popups.
|
56
|
+
* Use this event to prevent the popup from closing.
|
56
57
|
*/
|
57
58
|
onClose = new Subject();
|
58
59
|
removeClick;
|
package/esm2022/directives.mjs
CHANGED
@@ -108,7 +108,7 @@ import { PDFCommandToolbarDirective } from './pdf/pdf-command-tool.directive';
|
|
108
108
|
import { ColumnMenuItemDirective } from './column-menu/column-menu-item.directive';
|
109
109
|
/**
|
110
110
|
* @hidden
|
111
|
-
* Utility array that contains the former Shared module exports
|
111
|
+
* Utility array that contains the former Shared module exports.
|
112
112
|
*/
|
113
113
|
export const SHARED_EXPORTS = [
|
114
114
|
ColumnComponent,
|
@@ -128,7 +128,7 @@ export const SHARED_EXPORTS = [
|
|
128
128
|
];
|
129
129
|
/**
|
130
130
|
* @hidden
|
131
|
-
* Utility array that contains the Body module exports
|
131
|
+
* Utility array that contains the Body module exports.
|
132
132
|
*/
|
133
133
|
export const BODY_EXPORTS = [
|
134
134
|
CommandColumnComponent,
|
@@ -146,7 +146,7 @@ export const BODY_EXPORTS = [
|
|
146
146
|
];
|
147
147
|
/**
|
148
148
|
* @hidden
|
149
|
-
* Utility array that contains the Header module exports
|
149
|
+
* Utility array that contains the Header module exports.
|
150
150
|
*/
|
151
151
|
export const HEADER_EXPORTS = [
|
152
152
|
HeaderComponent,
|
@@ -155,7 +155,7 @@ export const HEADER_EXPORTS = [
|
|
155
155
|
];
|
156
156
|
/**
|
157
157
|
* @hidden
|
158
|
-
* Utility array that contains the former SharedFilter module exports
|
158
|
+
* Utility array that contains the former SharedFilter module exports.
|
159
159
|
*/
|
160
160
|
export const SHARED_FILTER_EXPORTS = [
|
161
161
|
FilterCellOperatorsComponent,
|
@@ -182,7 +182,7 @@ export const SHARED_FILTER_EXPORTS = [
|
|
182
182
|
];
|
183
183
|
/**
|
184
184
|
* @hidden
|
185
|
-
* Utility array that contains the former ColumnMenu module exports
|
185
|
+
* Utility array that contains the former ColumnMenu module exports.
|
186
186
|
*/
|
187
187
|
export const ROW_FILTER_EXPORTS = [
|
188
188
|
FilterRowComponent,
|
@@ -218,7 +218,7 @@ export const FILTER_MENU_EXPORTS = [
|
|
218
218
|
];
|
219
219
|
/**
|
220
220
|
* @hidden
|
221
|
-
* Utility array that contains the former ColumnMenu module exports
|
221
|
+
* Utility array that contains the former ColumnMenu module exports.
|
222
222
|
*/
|
223
223
|
export const COLUMN_MENU_EXPORTS = [
|
224
224
|
ColumnChooserComponent,
|
@@ -234,7 +234,7 @@ export const COLUMN_MENU_EXPORTS = [
|
|
234
234
|
];
|
235
235
|
/**
|
236
236
|
* @hidden
|
237
|
-
* Utility array that contains the Excel module exports
|
237
|
+
* Utility array that contains the Excel module exports.
|
238
238
|
*/
|
239
239
|
export const KENDO_TREELIST_EXCEL_EXPORT = [
|
240
240
|
ExcelComponent,
|
@@ -249,7 +249,7 @@ export const KENDO_TREELIST_EXCEL_EXPORT = [
|
|
249
249
|
];
|
250
250
|
/**
|
251
251
|
* @hidden
|
252
|
-
* Utility array that contains the PDF module exports
|
252
|
+
* Utility array that contains the PDF module exports.
|
253
253
|
*/
|
254
254
|
export const KENDO_TREELIST_PDF_EXPORT = [
|
255
255
|
PDFComponent,
|
@@ -259,7 +259,8 @@ export const KENDO_TREELIST_PDF_EXPORT = [
|
|
259
259
|
PDFCommandToolbarDirective
|
260
260
|
];
|
261
261
|
/**
|
262
|
-
* Utility array that contains all `@progress/kendo-angular-treelist
|
262
|
+
* Utility array that contains all `@progress/kendo-angular-treelist`-related components and directives.
|
263
|
+
* Use it to import all TreeList components and directives into a standalone Angular application.
|
263
264
|
*/
|
264
265
|
export const KENDO_TREELIST = [
|
265
266
|
TreeListComponent,
|
@@ -4,21 +4,19 @@
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
5
5
|
import { PreventableEvent } from '../common/preventable-event';
|
6
6
|
/**
|
7
|
-
*
|
7
|
+
* Provides arguments for the `columnReorder` event. Use this event to access the reordered column and its new and old indexes.
|
8
8
|
*/
|
9
9
|
export class ColumnReorderEvent extends PreventableEvent {
|
10
10
|
/**
|
11
|
-
*
|
11
|
+
* Specifies the reordered column.
|
12
12
|
*/
|
13
13
|
column;
|
14
14
|
/**
|
15
|
-
* The new index of the column.
|
16
|
-
* Relative to the collection of columns.
|
15
|
+
* The new index of the column, relative to the collection of columns.
|
17
16
|
*/
|
18
17
|
newIndex;
|
19
18
|
/**
|
20
|
-
* The original index of the column before reordering.
|
21
|
-
* Relative to the collection of columns.
|
19
|
+
* The original index of the column before reordering, relative to the collection of columns.
|
22
20
|
*/
|
23
21
|
oldIndex;
|
24
22
|
/**
|
@@ -11,21 +11,18 @@ import * as i0 from "@angular/core";
|
|
11
11
|
import * as i1 from "./edit.service";
|
12
12
|
import * as i2 from "@progress/kendo-angular-toolbar";
|
13
13
|
/**
|
14
|
-
* Represents the command for adding a new item to the TreeList.
|
15
|
-
* You can apply this directive to any `kendo-toolbar-button` element inside a
|
16
|
-
* ToolbarComponent used in the TreeList.
|
17
|
-
*
|
18
|
-
* When the user clicks the toolbar button that is associated with the directive, the
|
19
|
-
* [add]({% slug api_treelist_treelistcomponent %}#toc-add) event is triggered.
|
14
|
+
* Represents the command for adding a new item to the TreeList. Apply this directive to any `kendo-toolbar-button` element inside a ToolbarComponent. When the user clicks the toolbar button associated with the directive, the [`add`]({% slug api_treelist_treelistcomponent %}#toc-add) event is triggered.
|
20
15
|
*
|
21
16
|
* @example
|
22
|
-
* ```html
|
23
|
-
* <kendo-
|
24
|
-
*
|
25
|
-
*
|
26
|
-
*
|
27
|
-
* </kendo-
|
17
|
+
* ```html
|
18
|
+
* <kendo-treelist>
|
19
|
+
* <kendo-toolbar>
|
20
|
+
* <kendo-toolbar-button text="Add new" kendoTreeListAddTool></kendo-toolbar-button>
|
21
|
+
* </kendo-toolbar>
|
22
|
+
* </kendo-treelist>
|
28
23
|
* ```
|
24
|
+
* @remarks
|
25
|
+
* Applied to: {@link ToolBarButtonComponent}
|
29
26
|
*/
|
30
27
|
export class AddCommandToolbarDirective {
|
31
28
|
editService;
|
@@ -12,17 +12,13 @@ import * as i0 from "@angular/core";
|
|
12
12
|
import * as i1 from "./edit.service";
|
13
13
|
import * as i2 from "@progress/kendo-angular-l10n";
|
14
14
|
/**
|
15
|
-
* Represents the command for adding a new item to the TreeList.
|
16
|
-
* `button` element inside a [`ToolbarTemplate`](slug:toolbartemplate_treelist) or
|
17
|
-
* inside a [`CommandColumnComponent`]({% slug api_treelist_commandcolumncomponent %}).
|
15
|
+
* Represents the command for adding a new item to the TreeList. Apply this directive to any `button` element inside a [`ToolbarTemplate`](slug:toolbartemplate_treelist) or inside a [`CommandColumnComponent`]({% slug api_treelist_commandcolumncomponent %}).
|
18
16
|
*
|
19
|
-
* When
|
20
|
-
* [`add`]({% slug api_treelist_treelistcomponent %}#toc-add) event is triggered
|
21
|
-
* ([see example](slug:custom_editors_editing_treelist)).
|
17
|
+
* When the user clicks a button with this directive, the [`add`]({% slug api_treelist_treelistcomponent %}#toc-add) event is triggered ([see example](slug:custom_editors_editing_treelist)).
|
22
18
|
*
|
23
|
-
*
|
19
|
+
* The button with `kendoTreeListAddCommand` is automatically hidden when the row is in edit mode.
|
24
20
|
*
|
25
|
-
* When
|
21
|
+
* When used in the command column, the directive takes the `cellContext` from the cell template as input.
|
26
22
|
*
|
27
23
|
* @example
|
28
24
|
* ```html
|
@@ -37,7 +33,7 @@ import * as i2 from "@progress/kendo-angular-l10n";
|
|
37
33
|
*/
|
38
34
|
export class AddCommandDirective extends BaseCommandDirective {
|
39
35
|
/**
|
40
|
-
*
|
36
|
+
* Provides the `cellContext` to the template.
|
41
37
|
*/
|
42
38
|
cellContext;
|
43
39
|
commandClass = true;
|
@@ -12,14 +12,11 @@ import * as i0 from "@angular/core";
|
|
12
12
|
import * as i1 from "./edit.service";
|
13
13
|
import * as i2 from "@progress/kendo-angular-l10n";
|
14
14
|
/**
|
15
|
-
* Represents the `cancel` command of the TreeList.
|
16
|
-
* element inside a [`CommandColumnComponent`]({% slug api_treelist_commandcolumncomponent %}).
|
17
|
-
* When an associated button with the directive is clicked, the
|
18
|
-
* [`cancel`]({% slug api_treelist_treelistcomponent %}#toc-cancel) event
|
19
|
-
* is triggered ([see example](slug:custom_editors_editing_treelist)).
|
15
|
+
* Represents the `cancel` command of the TreeList. Apply this directive to any `button` element inside a [`CommandColumnComponent`]({% slug api_treelist_commandcolumncomponent %}).
|
20
16
|
*
|
21
|
-
* When the
|
22
|
-
*
|
17
|
+
* When the user clicks a button with this directive, the [`cancel`]({% slug api_treelist_treelistcomponent %}#toc-cancel) event is triggered ([see example](slug:custom_editors_editing_treelist)).
|
18
|
+
*
|
19
|
+
* The button with `kendoTreeListCancelCommand` is automatically hidden when the row is not in edit mode. The directive takes the `cellContext` from the cell template as input.
|
23
20
|
*
|
24
21
|
* @example
|
25
22
|
* ```html
|
@@ -34,7 +31,7 @@ import * as i2 from "@progress/kendo-angular-l10n";
|
|
34
31
|
*/
|
35
32
|
export class CancelCommandDirective extends BaseCommandDirective {
|
36
33
|
/**
|
37
|
-
*
|
34
|
+
* Provides the `cellContext` to the template.
|
38
35
|
*/
|
39
36
|
cellContext;
|
40
37
|
commandClass = true;
|
@@ -4,7 +4,8 @@
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
5
5
|
import { PreventableEvent } from '../common/preventable-event';
|
6
6
|
/**
|
7
|
-
*
|
7
|
+
* Provides arguments for the `cellClose` event.
|
8
|
+
*
|
8
9
|
*/
|
9
10
|
export class CellCloseEvent extends PreventableEvent {
|
10
11
|
isNew;
|
@@ -15,16 +16,15 @@ export class CellCloseEvent extends PreventableEvent {
|
|
15
16
|
*/
|
16
17
|
action = 'cellClose';
|
17
18
|
/**
|
18
|
-
*
|
19
|
+
* Specifies the TreeList column that will be closed.
|
19
20
|
*/
|
20
21
|
column;
|
21
22
|
/**
|
22
|
-
*
|
23
|
+
* Provides the [`FormGroup`](link:site.data.urls.angular['formgroupapi']) used to edit the cell that will be closed.
|
23
24
|
*/
|
24
25
|
formGroup;
|
25
26
|
/**
|
26
|
-
*
|
27
|
-
* May not be present if `cellClose` was caused by an API call.
|
27
|
+
* Provides the DOM event that caused the `cellClose` event. May not be present if `cellClose` was caused by an API call.
|
28
28
|
*/
|
29
29
|
originalEvent;
|
30
30
|
constructor(options) {
|
@@ -12,14 +12,11 @@ import * as i0 from "@angular/core";
|
|
12
12
|
import * as i1 from "./edit.service";
|
13
13
|
import * as i2 from "@progress/kendo-angular-l10n";
|
14
14
|
/**
|
15
|
-
* Represents the `edit` command of the TreeList.
|
16
|
-
* element inside a [`CommandColumnComponent`]({% slug api_treelist_commandcolumncomponent %}).
|
17
|
-
* When an associated button with the directive is clicked, the
|
18
|
-
* [`edit`]({% slug api_treelist_treelistcomponent %}#toc-edit) event
|
19
|
-
* is triggered ([see example](slug:custom_editors_editing_treelist)).
|
15
|
+
* Represents the `edit` command of the TreeList. Apply this directive to any `button` element inside a [`CommandColumnComponent`]({% slug api_treelist_commandcolumncomponent %}).
|
20
16
|
*
|
21
|
-
* When the
|
22
|
-
*
|
17
|
+
* When the user clicks a button with this directive, the [`edit`]({% slug api_treelist_treelistcomponent %}#toc-edit) event is triggered ([see example](slug:custom_editors_editing_treelist)).
|
18
|
+
*
|
19
|
+
* The button with `kendoTreeListEditCommand` is automatically hidden when the row is in edit mode. The directive takes the `cellContext` from the cell template as input.
|
23
20
|
*
|
24
21
|
* @example
|
25
22
|
* ```html
|
@@ -31,11 +28,10 @@ import * as i2 from "@progress/kendo-angular-l10n";
|
|
31
28
|
* </kendo-treelist-command-column>
|
32
29
|
* </kendo-treelist>
|
33
30
|
* ```
|
34
|
-
*
|
35
31
|
*/
|
36
32
|
export class EditCommandDirective extends BaseCommandDirective {
|
37
33
|
/**
|
38
|
-
*
|
34
|
+
* Provides the `cellContext` to the template.
|
39
35
|
*/
|
40
36
|
cellContext;
|
41
37
|
commandClass = true;
|
@@ -5,15 +5,13 @@
|
|
5
5
|
import { Directive, TemplateRef, Optional } from '@angular/core';
|
6
6
|
import * as i0 from "@angular/core";
|
7
7
|
/**
|
8
|
-
* Represents the column edit-cell template of the TreeList ([see example](
|
9
|
-
* Helps to customize the content of the edited cells. To define the cell template, nest an `<ng-template>`
|
10
|
-
* tag with the `kendoTreeListEditTemplate` directive inside a `<kendo-treelist-column>` tag.
|
8
|
+
* Represents the column edit-cell template of the TreeList ([see example](slug:editing_template_forms_treelist)). Use this directive to customize the content of edited cells. To define the cell template, nest an `<ng-template>` tag with the `kendoTreeListEditTemplate` directive inside a `<kendo-treelist-column>` tag.
|
11
9
|
*
|
12
10
|
* The template context contains the following fields:
|
13
11
|
* - `column`—The current column instance.
|
14
12
|
* - `dataItem`—The current data item.
|
15
13
|
* - `cellContext`—An object used to pass context information to built-in directives.
|
16
|
-
* - `formGroup`—The current [`FormGroup`](link:site.data.urls.angular['formgroupapi']). If you use the TreeList inside [Template-Driven Forms](link:site.data.urls.angular['forms']), `formGroup`
|
14
|
+
* - `formGroup`—The current [`FormGroup`](link:site.data.urls.angular['formgroupapi']). If you use the TreeList inside [Template-Driven Forms](link:site.data.urls.angular['forms']), `formGroup` is `undefined`.
|
17
15
|
* - `isNew`—The state of the current item.
|
18
16
|
* - `rowIndex`—The current row index. If inside a new item row, `rowIndex` is `-1`.
|
19
17
|
*
|