package ocsigen-toolkit
Install
dune-project
Dependency
Authors
Maintainers
Sources
md5=69be960fcd9bd4980c97ec2abebedc80
sha512=f1d76fc73046f9d577cdcaa85adf3e372995d924a6cbbd1bb189e294d717bc35c1d9cda3701189a4436c2d45fc8ddc2a16f8198182ac071fd501bb7d882a2276
doc/ocsigen-toolkit.server/Ot_time_picker/index.html
Module Ot_time_picker
This module implements a clock-style time picker.
val make :
?action:((int * int) -> unit Lwt.t) Eliom_client_value.t ->
?init:(int * int) ->
?update:(int * int) React.E.t Eliom_client_value.t ->
?round_5:bool ->
?h24:bool ->
unit ->
[> `Div ] Eliom_content.Html.elt
* (int * int) Eliom_shared.React.S.t
* (unit -> unit) Eliom_client_value.tmake ?action ?round_5 ?h24 () produces a clock-style time picker for hours and minutes. The user is first asked to pick hours, then minutes with a separate clock.
If action is provided, it is called when a new time is available.
init (if provided) is the default displayed time.
update is a React event that can be used to trigger updates from outside.
If round_5 is true (default: false), the output for the minutes is rounded to multiples of 5.
If h24 is true (default: true), a 24-hour hour picker is used.
The first part of the output is the clock. The second part of the output is a reactive signal (h, m) where h are the hours and m the minutes that the user picked. The third part of the output is a function that can be called to go back to hours selection.
val make_hours_minutes_seq :
?action:((int * int) -> unit Lwt.t) Eliom_client_value.t ->
?init:(int * int) ->
?update:(int * int) React.E.t Eliom_client_value.t ->
?round_5:bool ->
?h24:bool ->
unit ->
[> `Div ] Eliom_content.Html.elt
* (int * int) Eliom_shared.React.S.t
* (unit -> unit) Eliom_client_value.tAlias of make. Deprecated.