-
Notifications
You must be signed in to change notification settings - Fork 155
/
Copy pathdatepicker-model.d.ts
150 lines (127 loc) · 4.67 KB
/
datepicker-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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
import { EventHandler, Property, Internationalization, NotifyPropertyChanges, DateFormatOptions } from '@syncfusion/ej2-base';import { KeyboardEvents, KeyboardEventArgs, Animation, EmitType, Event, L10n, Browser, formatUnit } from '@syncfusion/ej2-base';import { createElement, detach, addClass, removeClass, closest, classList, attributes } from '@syncfusion/ej2-base';import { isNullOrUndefined, setValue, getUniqueID, ModuleDeclaration } from '@syncfusion/ej2-base';import { Popup } from '@syncfusion/ej2-popups';import { Input, InputObject, IInput, FloatLabelType, BlurEventArgs, FocusEventArgs } from '@syncfusion/ej2-inputs';import { ChangedEventArgs, CalendarView, Calendar } from '../calendar/calendar';
import {PopupObjectArgs,PreventableEventArgs} from "./datepicker";
import {CalendarModel} from "../calendar/calendar-model";
/**
* Interface for a class DatePicker
*/
export interface DatePickerModel extends CalendarModel{
/**
* Specifies the width of the DatePicker component.
* @default null
*/
width?: number | string;
/**
* Specifies the root CSS class of the DatePicker that allows to
* customize the appearance by overriding the styles.
* @default null
*/
cssClass?: string;
/**
* Specifies the component to act as strict. So that, it allows to enter only a valid date value within a specified range or else it
* will resets to previous value. By default, strictMode is in false.
* it allows invalid or out-of-range date value with highlighted error class.
* @default false
*/
strictMode?: boolean;
/**
* Specifies the format of the value that to be displayed in component. By default, the format is based on the culture.
* @default null
*/
format?: string;
/**
* Specifies the component to be disabled or not.
* @default true
*/
enabled?: boolean;
/**
* Gets or sets multiple selected dates of the calendar.
* @default null
* @private
*/
values?: Date[];
/**
* Specifies the option to enable the multiple dates selection of the calendar.
* @default false
* @private
*/
isMultiSelection?: boolean;
/**
* Specifies whether to show or hide the clear icon in textbox.
* @default true
*/
showClearButton?: boolean;
/**
* Specifies whether the input textbox is editable or not. Here the user can select the value from the
* popup and cannot edit in the input textbox.
* @default true
*/
allowEdit?: boolean;
/**
* When set to true, enables RTL mode of the component that displays the content in the right-to-left direction.
* @default false
*/
enableRtl?: boolean;
/**
* Enable or disable persisting component's state between page reloads. If enabled, following list of states will be persisted.
* 1. value
* @default false
*/
enablePersistence?: boolean;
/**
* specifies the z-index value of the datePicker popup element.
* @default 1000
* @aspType int
*/
zIndex?: number;
/**
* Specifies the component in readonly state. When the Component is readonly it does not allow user input.
* @default false
*/
readonly?: boolean;
/**
* Specifies the placeholder text that displayed in textbox.
* @default null
*/
placeholder?: string;
/**
* Specifies the placeholder text to be floated.
* Possible values are:
* Never: The label will never float in the input when the placeholder is available.
* Always: The floating label will always float above the input.
* Auto: The floating label will float above the input after focusing or entering a value in the input.
* @default Syncfusion.EJ2.Inputs.FloatLabelType.Never
* @aspType Syncfusion.EJ2.Inputs.FloatLabelType
* @isEnumeration true
*/
floatLabelType?: FloatLabelType | string;
/**
* Triggers when the popup is opened.
* @event
*/
open?: EmitType<PreventableEventArgs | PopupObjectArgs>;
/**
* Triggers when the popup is closed.
* @event
*/
close?: EmitType<PreventableEventArgs | PopupObjectArgs>;
/**
* Triggers when the input loses the focus.
* @event
*/
blur?: EmitType<BlurEventArgs>;
/**
* Triggers when the input gets focus.
* @event
*/
focus?: EmitType<FocusEventArgs>;
/**
* Triggers when the component is created.
* @event
*/
created?: EmitType<Object>;
/**
* Triggers when the component is destroyed.
* @event
*/
destroyed?: EmitType<Object>;
}