-
Notifications
You must be signed in to change notification settings - Fork 29
/
config_options.js
53 lines (46 loc) 路 1009 Bytes
/
config_options.js
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
const booleanOptions = [
'allowInput',
'altInput',
'animate',
'clickOpens',
'closeOnSelect',
'disableMobile',
'enableSeconds',
'enableTime',
'inline',
'noCalendar',
'shorthandCurrentMonth',
'static',
'time_24hr',
'weekNumbers',
'wrap'
]
const stringOptions = [
'altInputClass',
'conjunction',
'mode',
'nextArrow',
'position',
'prevArrow',
'monthSelectorType'
]
const numberOptions = [
'defaultHour',
'defaultMinute',
'defaultSeconds',
'hourIncrement',
'minuteIncrement',
'showMonths'
]
const arrayOptions = ['disable', 'enable', 'disableDaysOfWeek', 'enableDaysOfWeek']
const arrayOrStringOptions = ['defaultDate']
const dateOptions = ['maxDate', 'minDate', 'maxTime', 'minTime', 'now']
export const dateFormats = ['altFormat', 'ariaDateFormat', 'dateFormat']
export const options = {
string: stringOptions,
boolean: booleanOptions,
date: dateOptions,
array: arrayOptions,
number: numberOptions,
arrayOrString: arrayOrStringOptions
}