This is client API (go to server)

Module Ew_slider

module Ew_slider : sig..end

initial_value is at 0.5 by default It have to by between 0. and 1.

return type t to future action and one div which is the slider to insert in html


type orientation_t =  | Vertical | Horizontal
type callback = unit -> unit Lwt.t
type div = Html5_types.div Eliom_content.Html5.D.elt
type t
val create : 
  ?orientation:orientation_t ->
  ?start_slide:callback ->
  ?move_slide:callback ->
  ?end_slide:callback ->
  ?click:callback ->
  ?initial_value:float -> unit -> t * div

initial_value is at 0.5 by default It have to by between 0. and 1.

return type t to future action and one div which is the slider to insert in html

val change_start_slide_callback : t -> callback -> unit
val remove_start_slide_callback : t -> unit
val change_move_slide_callback : t -> callback -> unit
val remove_move_slide_callback : t -> unit
val change_end_slide_callback : t -> callback -> unit
val remove_end_slide_callback : t -> unit
val change_click_callback : t -> callback -> unit
val remove_click_callback : t -> unit
val get_value : t -> float

return value between 0. and 1.

val start : t -> unit

launch click callback at start with initialize value