@progress/kendo-angular-treelist
Version:
Kendo UI TreeList for Angular - Display hierarchical data in an Angular tree grid view that supports sorting, filtering, paging, and much more.
40 lines (39 loc) • 1.84 kB
JavaScript
/**-----------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the project root for more information
*-------------------------------------------------------------------------------------------*/
import { Component, Input } from '@angular/core';
import { columnsToRender } from '../../columns/column-common';
import * as i0 from "@angular/core";
/**
* @hidden
*/
export class ColGroupComponent {
columns = [];
get columnsToRender() {
return columnsToRender(this.columns);
}
trackBy(index, _item) {
return index;
}
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ColGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ColGroupComponent, isStandalone: true, selector: "[kendoTreeListColGroup]", inputs: { columns: "columns" }, ngImport: i0, template: `
@for (column of columnsToRender; track trackBy($index, column)) {
<col [style.width.px]="column.width"/>
}
`, isInline: true });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ColGroupComponent, decorators: [{
type: Component,
args: [{
selector: '[kendoTreeListColGroup]',
template: `
@for (column of columnsToRender; track trackBy($index, column)) {
<col [style.width.px]="column.width"/>
}
`,
standalone: true
}]
}], propDecorators: { columns: [{
type: Input
}] } });