forked from syncfusion/ej2-javascript-ui-controls
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrecurrence-editor-model.d.ts
91 lines (78 loc) · 2.81 KB
/
recurrence-editor-model.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
import { Component, Property, NotifyPropertyChanges, INotifyPropertyChanged, Event, Browser, detach } from '@syncfusion/ej2-base';import { EmitType, getDefaultDateObject, getValue, cldrData, L10n, isNullOrUndefined, removeClass, addClass } from '@syncfusion/ej2-base';import { DropDownList, ChangeEventArgs } from '@syncfusion/ej2-dropdowns';import { NumericTextBox } from '@syncfusion/ej2-inputs';import { DatePicker, ChangedEventArgs } from '@syncfusion/ej2-calendars';import { Button, RadioButton } from '@syncfusion/ej2-buttons';import { EventHandler, MouseEventArgs, classList } from '@syncfusion/ej2-base';import { EJ2Instance } from '../schedule/base/interface';import { RecRule, extractObjectFromRule, generate, generateSummary, getRecurrenceStringFromDate, getCalendarUtil } from './date-generator';import { CalendarUtil, CalendarType } from '../common/calendar-util';import { capitalizeFirstWord } from '../schedule/base/util';
import {RepeatType,RecurrenceEditorChangeEventArgs} from "./recurrence-editor";
import {ComponentModel} from '@syncfusion/ej2-base';
/**
* Interface for a class RecurrenceEditor
*/
export interface RecurrenceEditorModel extends ComponentModel{
/**
* Sets the recurrence pattern on the editor.
*
* @default ['none', 'daily', 'weekly', 'monthly', 'yearly']
*/
frequencies?: RepeatType[];
/**
* Sets the first day of the week.
*
* @default 0
*/
firstDayOfWeek?: number;
/**
* Sets the start date on recurrence editor.
*
* @default new Date()
* @aspDefaultValue DateTime.Now
*/
startDate?: Date;
/**
* Sets the user specific date format on recurrence editor.
*
* @default null
*/
dateFormat?: string;
/**
* Sets the specific calendar type to be applied on recurrence editor.
*
* @default 'Gregorian'
*/
calendarMode?: CalendarType;
/**
* Allows styling with custom class names.
*
* @default null
*/
cssClass?: string;
/**
* Sets the recurrence rule as its output values.
*
* @default null
*/
value?: string;
/**
* Sets the minimum date on recurrence editor.
*
* @default new Date(1900, 0, 1)
* @aspDefaultValue new DateTime(1900, 1, 1)
*/
minDate?: Date;
/**
* Sets the maximum date on recurrence editor.
*
* @default new Date(2099, 11, 31)
* @aspDefaultValue new DateTime(2099, 12, 31)
*/
maxDate?: Date;
/**
* Sets the current repeat type to be set on the recurrence editor.
*
* @default 0
* @aspType int
*/
selectedType?: number;
/**
* Triggers for value changes on every sub-controls rendered within the recurrence editor.
*
* @event 'change'
*/
change?: EmitType<RecurrenceEditorChangeEventArgs>;
}