UNPKG

@syncfusion/ej2-react-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 React

24 lines (23 loc) 943 B
import { ComplexBase } from '@syncfusion/ej2-react-base'; import { PresetsModel } from '@syncfusion/ej2-calendars'; /** * `PresetsDirective` represent a presets of the react daterangepicker. * It must be contained in a daterangepicker component(`DateRangePickerComponent`). * ```tsx * <DateRangePickerComponent id='range'> * <PresetsDirective> * <PresetDirective label='Last Week' start={new Date('06/07/2018')} end= {new Date('06/01/2018')}></PresetDirective> * <PresetDirective label='Last Month' start={new Date('06/07/2018')} end= {new Date('05/07/2018')]></PresetDirective> * </PresetsDirective> * </DateRangePickerComponent> * ``` */ export declare class PresetDirective extends ComplexBase<PresetsModel & { children?: React.ReactNode; }, PresetsModel> { static moduleName: string; } export declare class PresetsDirective extends ComplexBase<{}, {}> { static propertyName: string; static moduleName: string; }