UNPKG

@progress/kendo-angular-gantt

Version:
51 lines (50 loc) 2.27 kB
/**----------------------------------------------------------------------------------------- * 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 { FlatBindingDirective } from '@progress/kendo-angular-treelist'; import * as i0 from "@angular/core"; /** * Binds the Gantt to an array of objects by using an ID and parent ID field to define the hierarchy. * * Use this directive to handle in-memory data operations such as sorting and filtering. [See example](slug:directives_databinding_gantt#binding-to-flat-data). * * @example * ```html * <kendo-gantt * [kendoGanttFlatBinding]="data" * parentIdField="parentTaskId" * idField="id" * [dependencies]="dependencies"> * </kendo-gantt> * ``` * * @remarks * Applied to: {@link GanttComponent} */ export class GanttFlatBindingDirective extends FlatBindingDirective { /** * 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: GanttFlatBindingDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: GanttFlatBindingDirective, isStandalone: true, selector: "[kendoGanttFlatBinding]", inputs: { data: ["kendoGanttFlatBinding", "data"] }, exportAs: ["kendoGanttFlatBinding"], usesInheritance: true, ngImport: i0 }); } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: GanttFlatBindingDirective, decorators: [{ type: Directive, args: [{ selector: '[kendoGanttFlatBinding]', exportAs: 'kendoGanttFlatBinding', standalone: true }] }], propDecorators: { data: [{ type: Input, args: ['kendoGanttFlatBinding'] }] } });