@progress/kendo-angular-gantt
Version:
Kendo UI Angular Gantt
50 lines (49 loc) • 2.26 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 { Directive, Input } from '@angular/core';
import { HierarchyBindingDirective } from '@progress/kendo-angular-treelist';
import * as i0 from "@angular/core";
/**
* Binds the Gantt to a tree of objects.
*
* Use this directive to handle in-memory data operations such as sorting and filtering. [See example](slug:directives_databinding_gantt#binding-to-hierarchical-data).
*
* @example
* ```html
* <kendo-gantt
* [kendoGanttHierarchyBinding]="data"
* childrenField="subtasks"
* [dependencies]="dependencies">
* </kendo-gantt>
* ```
*
* @remarks
* Applied to: {@link GanttComponent}
*/
export class GanttHierarchyBindingDirective extends HierarchyBindingDirective {
/**
* Sets the array of data to populate the Gantt.
*/
data;
/**
* @hidden
*/
set aggregate(value) {
super.aggregate = value;
}
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: GanttHierarchyBindingDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: GanttHierarchyBindingDirective, isStandalone: true, selector: "[kendoGanttHierarchyBinding]", inputs: { data: ["kendoGanttHierarchyBinding", "data"] }, exportAs: ["kendoGanttHierarchyBinding"], usesInheritance: true, ngImport: i0 });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: GanttHierarchyBindingDirective, decorators: [{
type: Directive,
args: [{
selector: '[kendoGanttHierarchyBinding]',
exportAs: 'kendoGanttHierarchyBinding',
standalone: true
}]
}], propDecorators: { data: [{
type: Input,
args: ['kendoGanttHierarchyBinding']
}] } });