@progress/kendo-angular-gantt
Version:
Kendo UI Angular Gantt
34 lines (33 loc) • 1.9 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 { ExpandableDirective } from '@progress/kendo-angular-treelist';
import * as i0 from "@angular/core";
/**
* A directive which controls the expanded state of the items.
*/
export class GanttExpandableDirective extends ExpandableDirective {
/**
* Defines the item key that will be stored in the expandedKeys collection.
* Defaults to the task data item ID field,
* which is specified in the [`taskModelFields`]({% slug api_gantt_ganttcomponent %}#toc-taskmodelfields) object.
*
*/
set expandBy(value) {
super.expandBy = value;
}
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GanttExpandableDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: GanttExpandableDirective, isStandalone: true, selector: "[kendoGanttExpandable]", inputs: { expandBy: "expandBy" }, exportAs: ["kendoGanttExpandable"], usesInheritance: true, ngImport: i0 });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GanttExpandableDirective, decorators: [{
type: Directive,
args: [{
exportAs: 'kendoGanttExpandable',
selector: '[kendoGanttExpandable]',
standalone: true
}]
}], propDecorators: { expandBy: [{
type: Input
}] } });