@syncfusion/ej2-angular-gantt
Version:
Essential JS 2 Gantt Component for Angular
52 lines (51 loc) • 1.76 kB
TypeScript
import { ViewContainerRef } from '@angular/core';
import { ComplexBase, ArrayBase } from '@syncfusion/ej2-angular-base';
import * as i0 from "@angular/core";
/**
* `e-holidays` directive represent a holidays collection in Gantt.
* It must be contained in a Gantt component(`ejs-gantt`).
* ```html
* <ejs-gantt [dataSource]='data' allowSelection='true' allowSorting='true'>
* <e-holidays>
* <e-holiday from='02/20/2018' label='Holiday 1'></e-holiday>
* <e-holiday from='05/15/2018' label='Holiday 2'></e-holiday>
* </e-holidays>
* </ejs-gantt>
* ```
*/
export declare class HolidayDirective extends ComplexBase<HolidayDirective> {
private viewContainerRef;
directivePropList: any;
/**
* Defines custom css class of holiday to customize background and label.
* @default null
*/
cssClass: any;
/**
* Defines start date of holiday.
* @default null
*/
from: any;
/**
* Defines label of holiday.
* @default null
*/
label: any;
/**
* Defines end date of holiday.
* @default null
*/
to: any;
constructor(viewContainerRef: ViewContainerRef);
static ɵfac: i0.ɵɵFactoryDeclaration<HolidayDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<HolidayDirective, "ejs-gantt>e-holidays>e-holidays", never, { "cssClass": "cssClass"; "from": "from"; "label": "label"; "to": "to"; }, {}, never>;
}
/**
* Holiday Array Directive
* @private
*/
export declare class HolidaysDirective extends ArrayBase<HolidaysDirective> {
constructor();
static ɵfac: i0.ɵɵFactoryDeclaration<HolidaysDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<HolidaysDirective, "ejs-gantt>e-holidays", never, {}, {}, ["children"]>;
}