-
Notifications
You must be signed in to change notification settings - Fork 0
/
cordova_datepicker.mli
59 lines (53 loc) · 2.52 KB
/
cordova_datepicker.mli
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
(* -------------------------------------------------------------------------- *)
type mode =
| Date [@js "date"]
| Time [@js "time"]
| Datetime [@js "datetime"]
[@@js.enum]
type android_theme =
| Theme_traditional [@js 1]
| Theme_holo_dark [@js 2]
| Theme_holo_light [@js 3]
| Theme_device_default_dark [@js 4]
| Theme_device_default_light [@js 5]
[@@js.enum]
type arrow_direction =
| Up [@js 1]
| Down [@js 2]
| Left [@js 4]
| Right [@js 8]
| Any [@js 15]
[@@js.enum]
type options = private Ojs.t
val create_options : ?mode:(mode [@js.default Date]) ->
?date:(Js_date.t [@js.default Js_date.now ()]) ->
?min_date:Js_date.t ->
?max_date:Js_date.t ->
?title_text:string ->
?ok_text:string ->
?now_text:string ->
?is_24_hour:bool ->
?android_theme:android_theme ->
?allow_old_dates:bool ->
?allow_future_dates:bool ->
?done_button_label:string ->
?done_button_color:string ->
?cancel_button_label:string ->
?cancel_button_color:string ->
?x:int ->
?y:int ->
?minute_interval:int ->
?popover_arrow_direction:arrow_direction ->
?locale:string ->
unit ->
options
[@@js.builder]
(* -------------------------------------------------------------------------- *)
(* -------------------------------------------------------------------------- *)
val show :
?options:(options [@js.default create_options ()]) ->
(Js_date.t -> unit) ->
(string -> unit) ->
unit
[@@js.global "datePicker.show"]
(* -------------------------------------------------------------------------- *)