UNPKG

@syncfusion/ej2-angular-calendars

Version:

A complete package of date or time components with built-in features such as date formatting, inline editing, multiple (range) selection, range restriction, month and year selection, strict mode, and globalization. for Angular

44 lines (43 loc) 1.65 kB
import { ViewContainerRef } from '@angular/core'; import { ComplexBase, ArrayBase } from '@syncfusion/ej2-angular-base'; import * as i0 from "@angular/core"; /** * 'e-presets' directive represent a presets of angular daterangepicker * It must be contained in a daterangepicker component(`ej-daterangepicker`). * ```html * <ejs-daterangepicker id='range'> * <e-presets> * <e-preset label='Last Week' [start]=new Date('06/07/2018') [end]= new Date('06/01/2018')></e-preset> * <e-preset label='Last Month' [start]=new Date('06/07/2018') [end]= new Date('05/07/2018')></e-preset> * </e-presets> * </ejs-daterangepicker> * ``` */ export declare class PresetDirective extends ComplexBase<PresetDirective> { private viewContainerRef; directivePropList: any; /** * Defines the end date of the preset range */ end: any; /** * Defines the label string of the preset range. */ label: any; /** * Defines the start date of the preset range. */ start: any; constructor(viewContainerRef: ViewContainerRef); static ɵfac: i0.ɵɵFactoryDeclaration<PresetDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<PresetDirective, "e-presets>e-preset", never, { "end": "end"; "label": "label"; "start": "start"; }, {}, never>; } /** * Preset Array Directive * @private */ export declare class PresetsDirective extends ArrayBase<PresetsDirective> { constructor(); static ɵfac: i0.ɵɵFactoryDeclaration<PresetsDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<PresetsDirective, "ejs-daterangepicker>e-presets", never, {}, {}, ["children"]>; }