UNPKG

@progress/kendo-angular-gantt

Version:
40 lines (39 loc) 2 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 { ExpandableDirective } from '@progress/kendo-angular-treelist'; import * as i0 from "@angular/core"; /** * Represents a directive that controls the expanded state of Gantt items. * * @example * ```html * <kendo-gantt kendoGanttExpandable [expandedKeys]="expandedKeys"></kendo-gantt> * ``` * * @remarks * Applied to: {@link GanttComponent} */ export class GanttExpandableDirective extends ExpandableDirective { /** * Sets the item key stored in the `expandedKeys` collection. * The default value is the task data item ID field, specified in the `taskModelFields` object. */ set expandBy(value) { super.expandBy = value; } static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: GanttExpandableDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: GanttExpandableDirective, isStandalone: true, selector: "[kendoGanttExpandable]", inputs: { expandBy: "expandBy" }, exportAs: ["kendoGanttExpandable"], usesInheritance: true, ngImport: i0 }); } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: GanttExpandableDirective, decorators: [{ type: Directive, args: [{ exportAs: 'kendoGanttExpandable', selector: '[kendoGanttExpandable]', standalone: true }] }], propDecorators: { expandBy: [{ type: Input }] } });