@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
@@ -14,8 +14,8 @@ import * as i5 from "./pdf-command-tool.directive";
|
|
14
14
|
import * as i6 from "@progress/kendo-angular-icons";
|
15
15
|
// IMPORTANT: NgModule export kept for backwards compatibility
|
16
16
|
/**
|
17
|
-
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
18
|
-
*
|
17
|
+
* Represents the [`NgModule`](link:site.data.urls.angular['ngmoduleapi']) definition for the TreeList PDF component.
|
18
|
+
* Use this module to enable PDF export features of the TreeList inside NgModule-based Angular application.
|
19
19
|
*
|
20
20
|
* @example
|
21
21
|
*
|
@@ -25,10 +25,10 @@ import * as i6 from "@progress/kendo-angular-icons";
|
|
25
25
|
* import { TreeListModule, PDFModule } from '@progress/kendo-angular-treelist';
|
26
26
|
* import { AppComponent } from './app.component';
|
27
27
|
*
|
28
|
-
*
|
29
|
-
*
|
30
|
-
*
|
31
|
-
*
|
28
|
+
* @NgModule({
|
29
|
+
* declarations: [AppComponent],
|
30
|
+
* imports: [BrowserModule, TreeListModule, PDFModule],
|
31
|
+
* bootstrap: [AppComponent]
|
32
32
|
* })
|
33
33
|
* export class AppModule {}
|
34
34
|
* ```
|
@@ -6,19 +6,18 @@ import { Directive, TemplateRef, Optional } from '@angular/core';
|
|
6
6
|
import * as i0 from "@angular/core";
|
7
7
|
/**
|
8
8
|
* Represents the column cell template of the TreeList ([more information and example]({% slug templates_columns_treelist %}#toc-cell-template)).
|
9
|
-
*
|
10
|
-
* with the `kendoTreeListCellTemplate` directive inside a `<kendo-treelist-column>` tag.
|
9
|
+
* Use this directive to customize the content of the cells. To define the cell template, nest an `<ng-template>` tag with the `kendoTreeListCellTemplate` directive inside a `<kendo-treelist-column>` tag.
|
11
10
|
*
|
12
|
-
* The template context is set to the current data item and the following
|
13
|
-
* - `columnIndex`—The current column index. Use
|
14
|
-
* - `column`—The current column instance. Use
|
15
|
-
* - `dataItem`—The current data item. Represents the default context
|
16
|
-
* - `cellContext`—An object
|
11
|
+
* The template context is set to the current data item and provides the following fields:
|
12
|
+
* - `columnIndex`—The current column index. Use as an alias for a template variable with `let-columnIndex="columnIndex"`.
|
13
|
+
* - `column`—The current column instance. Use as an alias for a template variable with `let-column="column"`.
|
14
|
+
* - `dataItem`—The current data item. Represents the default context for any template variable using `let-x` syntax, for example, `let-dataItem`.
|
15
|
+
* - `cellContext`—An object for passing context information to built-in directives.
|
17
16
|
* - `hasChildren`—Specifies if the item has children.
|
18
17
|
* - `isExpanded`—Specifies if the item is expanded.
|
19
18
|
* - `level`—The hierarchy level of the item.
|
20
19
|
* - `loading`—Specifies if the item children are currently loading.
|
21
|
-
* - `rowIndex`—The current row index. Use it as an alias for a template variable
|
20
|
+
* - `rowIndex`—The current row index. Use it as an alias for a template variable with `let-rowIndex="rowIndex"`.
|
22
21
|
*
|
23
22
|
* @example
|
24
23
|
* ```html
|
@@ -29,7 +28,7 @@ import * as i0 from "@angular/core";
|
|
29
28
|
* </ng-template>
|
30
29
|
* </kendo-treelist-column>
|
31
30
|
* </kendo-treelist>
|
32
|
-
|
31
|
+
* ```
|
33
32
|
*/
|
34
33
|
export class CellTemplateDirective {
|
35
34
|
templateRef;
|
@@ -7,9 +7,20 @@ import { isPresent } from '../../utils';
|
|
7
7
|
import * as i0 from "@angular/core";
|
8
8
|
/**
|
9
9
|
* Represents the Kendo UI TreeListSpacer component for Angular.
|
10
|
-
*
|
11
|
-
*
|
12
|
-
*
|
10
|
+
* Use this component to add extra white space between Pager inner elements or to customize the spacer width.
|
11
|
+
* You can also use it in any flex container within the TreeList. [See example](slug:toolbartemplate_treelist#toc-defining-the-spacing-between-toolbar-elements).
|
12
|
+
*
|
13
|
+
* @example
|
14
|
+
* ```html
|
15
|
+
* <kendo-treelist [data]="data" [fetchChildren]="fetchChildren" [hasChildren]="hasChildren">
|
16
|
+
* <ng-template kendoTreeListToolbarTemplate>
|
17
|
+
* <kendo-treelist-spacer></kendo-treelist-spacer>
|
18
|
+
* <button type="button" kendoTreeListExcelCommand [svgIcon]="fileExcelIcon"> Export to Excel </button>
|
19
|
+
* <kendo-treelist-spacer></kendo-treelist-spacer>
|
20
|
+
* </ng-template>
|
21
|
+
* <kendo-treelist-column field="ProductName" title="Product Name"></kendo-treelist-column>
|
22
|
+
* </kendo-treelist>
|
23
|
+
* ```
|
13
24
|
*/
|
14
25
|
export class TreeListSpacerComponent {
|
15
26
|
hostClass = true;
|
@@ -21,9 +32,9 @@ export class TreeListSpacerComponent {
|
|
21
32
|
}
|
22
33
|
/**
|
23
34
|
* Specifies the width of the TreeListSpacer.
|
24
|
-
* Accepts
|
35
|
+
* Accepts string values for the [CSS `flex-basis` property](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-basis).
|
25
36
|
*
|
26
|
-
* If not set, the TreeListSpacer
|
37
|
+
* If not set, the TreeListSpacer takes all available space.
|
27
38
|
*/
|
28
39
|
width;
|
29
40
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TreeListSpacerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
@@ -5,19 +5,17 @@
|
|
5
5
|
import { Directive, TemplateRef, Optional } from '@angular/core';
|
6
6
|
import * as i0 from "@angular/core";
|
7
7
|
/**
|
8
|
-
* Represents the column footer cell template of the TreeList
|
9
|
-
*
|
10
|
-
*
|
11
|
-
* To define a footer template, nest an `<ng-template>` tag with the
|
12
|
-
* `kendoTreeListFooterTemplate` directive inside the `<kendo-treelist-column>` tag.
|
8
|
+
* Represents the column footer cell template of the TreeList ([more information and example]({% slug templates_columns_treelist %}#toc-footer-template)).
|
9
|
+
* Use this directive to customize the table footer cell for the column.
|
10
|
+
* To define a footer template, nest an `<ng-template>` tag with the `kendoTreeListFooterTemplate` directive inside the `<kendo-treelist-column>` tag.
|
13
11
|
*
|
14
|
-
* The template context is set to the aggregate values and the following
|
15
|
-
*
|
16
|
-
*
|
17
|
-
*
|
18
|
-
*
|
19
|
-
*
|
20
|
-
*
|
12
|
+
* The template context is set to the aggregate values and provides the following fields:
|
13
|
+
* - `aggregates`—The aggregates for the level items.
|
14
|
+
* - `column`—Defines an instance of the [`ColumnComponent`]({% slug api_treelist_columncomponent %}) option.
|
15
|
+
* - `columnIndex`—Defines the current column index.
|
16
|
+
* - `field`—The name of the column field, if set.
|
17
|
+
* - `items`—The data items on this level.
|
18
|
+
* - `parentItem`—The parent data item; `null` for root level items.
|
21
19
|
*
|
22
20
|
* @example
|
23
21
|
* ```html
|
@@ -7,13 +7,13 @@ import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
8
8
|
* Represents the column header cell template of the TreeList
|
9
9
|
* ([more information and example]({% slug templates_columns_treelist %}#toc-header-template)).
|
10
|
-
*
|
10
|
+
* Use this directive to customize the table header cell for the column.
|
11
11
|
* To define a header template, nest an `<ng-template>` tag with the
|
12
12
|
* [`kendoTreeListHeaderTemplate`]({% slug api_treelist_headertemplatedirective %}) directive inside the `<kendo-treelist-column>` tag.
|
13
13
|
*
|
14
|
-
*
|
15
|
-
*
|
16
|
-
*
|
14
|
+
* The template context is set to the current column and provides the following fields:
|
15
|
+
* - `column`—Defines an instance of the [`ColumnComponent`]({% slug api_treelist_columncomponent %}) option.
|
16
|
+
* - `columnIndex`—Defines the current column index.
|
17
17
|
*
|
18
18
|
* @example
|
19
19
|
* ```html
|
@@ -5,7 +5,7 @@
|
|
5
5
|
import { Directive, TemplateRef, Optional } from '@angular/core';
|
6
6
|
import * as i0 from "@angular/core";
|
7
7
|
/**
|
8
|
-
* Represents the no-records template of the TreeList ([see example](slug:norecordtemplate_treelist)).
|
8
|
+
* Represents the no-records template of the TreeList ([see example](slug:norecordtemplate_treelist)). Use this directive to customize the
|
9
9
|
* appearance of the item that is displayed when no data is present. To define the no-records template,
|
10
10
|
* nest an `<ng-template>` tag with the `kendoTreeListNoRecordsTemplate` directive inside `<kendo-treelist>`.
|
11
11
|
*
|
@@ -14,7 +14,7 @@ import * as i0 from "@angular/core";
|
|
14
14
|
* @example
|
15
15
|
* ```html
|
16
16
|
* <kendo-treelist ... >
|
17
|
-
* <kendo-treelist-column field="name"
|
17
|
+
* <kendo-treelist-column field="name"></kendo-treelist-column>
|
18
18
|
* <ng-template kendoTreeListNoRecordsTemplate>
|
19
19
|
* No data loaded.
|
20
20
|
* </ng-template>
|
@@ -8,8 +8,19 @@ import { ContextService } from '../../common/provider.service';
|
|
8
8
|
import * as i0 from "@angular/core";
|
9
9
|
import * as i1 from "../../common/provider.service";
|
10
10
|
/**
|
11
|
-
* A directive
|
12
|
-
* keyboard
|
11
|
+
* A directive for toolbar elements that need to be part of TreeList keyboard navigation.
|
12
|
+
* Use this directive to make toolbar elements focusable and accessible with the keyboard.
|
13
|
+
*
|
14
|
+
* @example
|
15
|
+
* ```html
|
16
|
+
* <kendo-treelist>
|
17
|
+
* <kendo-toolbar>
|
18
|
+
* <button kendoTreeListToolbarFocusable>Custom Button</button>
|
19
|
+
* <button kendoTreeListCancelCommand>Cancel</button>
|
20
|
+
* <button kendoTreeListEditCommand>Edit</button>
|
21
|
+
* </kendo-toolbar>
|
22
|
+
* </kendo-treelist>
|
23
|
+
* ```
|
13
24
|
*/
|
14
25
|
export class TreeListToolbarFocusableDirective {
|
15
26
|
host;
|
@@ -10,15 +10,13 @@ import * as i1 from "../../common/option-changes.service";
|
|
10
10
|
* Represents the toolbar template of the TreeList ([see example](slug:toolbartemplate_treelist)).
|
11
11
|
*
|
12
12
|
* The template context has the following field:
|
13
|
-
* - `position`—The position at which the toolbar template is rendered. The possible values are `top`, `bottom
|
13
|
+
* - `position`—The position at which the toolbar template is rendered. The possible values are `top`, `bottom`, and `both`.
|
14
14
|
*
|
15
15
|
* @example
|
16
16
|
* ```html
|
17
17
|
* <kendo-treelist ...>
|
18
18
|
* <ng-template kendoTreeListToolbarTemplate>
|
19
|
-
* <button kendoTreeListExcelCommand >
|
20
|
-
* Export to Excel
|
21
|
-
* </button>
|
19
|
+
* <button kendoTreeListExcelCommand>Export to Excel</button>
|
22
20
|
* </ng-template>
|
23
21
|
* </kendo-treelist>
|
24
22
|
* ```
|
@@ -28,8 +26,8 @@ export class ToolbarTemplateDirective {
|
|
28
26
|
optionChanges;
|
29
27
|
_position = "top";
|
30
28
|
/**
|
31
|
-
*
|
32
|
-
*
|
29
|
+
* Sets the position of the toolbar. The value can be `top`, `bottom`, or `both`.
|
30
|
+
* Controls whether the toolbar appears above, below, or on both sides of the TreeList. [See example.](slug:toolbartemplate_treelist#toc-setting-the-toolbar-position)
|
33
31
|
* @default 'top'
|
34
32
|
*/
|
35
33
|
set position(position) {
|
@@ -14,6 +14,18 @@ import * as i2 from "./selection.service";
|
|
14
14
|
const defaultColumnKeyGetter = (_column, columnIndex) => columnIndex;
|
15
15
|
/**
|
16
16
|
* A directive which controls the selection state. [See example](slug:selection_treelist).
|
17
|
+
*
|
18
|
+
* @example
|
19
|
+
* ```html
|
20
|
+
* <kendo-treelist
|
21
|
+
* [kendoTreeListSelectable]="{ mode: 'row' }"
|
22
|
+
* [selectedItems]="selectedItems">
|
23
|
+
* <kendo-treelist-column field="name" title="Name"></kendo-treelist-column>
|
24
|
+
* <kendo-treelist-column field="age" title="Age"></kendo-treelist-column>
|
25
|
+
* </kendo-treelist>
|
26
|
+
* ```
|
27
|
+
* @remarks
|
28
|
+
* Applied to: {@link TreeListComponent}.
|
17
29
|
*/
|
18
30
|
export class SelectableDirective {
|
19
31
|
treelist;
|