package ezjs_timeline

  1. Overview
  2. Docs
class type options = object ... end
class type date = object ... end
class type location = object ... end
class type media = object ... end
class type text = object ... end
class type 'a data = object ... end
class type 'a event_data = object ... end
class type timeline = object ... end
val options : ?debug:bool -> ?height:int -> ?width:int -> ?is_embed:bool -> ?hash_bookmark:bool -> ?default_bg_color:string -> ?scale_factor:int -> ?initial_zoom:float -> ?zoom_sequence:float list -> ?timenav_position:string -> ?optimal_tick_width:int -> ?base_class:string -> ?timenav_height:int -> ?timenav_height_percentage:int -> ?timenav_mobile_height_percentage:int -> ?timenav_height_min:int -> ?marker_height_min:int -> ?marker_width_min:int -> ?marker_padding:int -> ?start_at_slide:int -> ?menubar_height:int -> ?use_bc:bool -> ?duration:int -> ?ease:string -> ?dragging:bool -> ?trackResize:bool -> ?slide_padding:int -> ?slide_default_fade:string -> ?language:string -> ?ga_property_id:string -> ?track_events:string list -> ?script_path:string -> unit -> options Js_of_ocaml.Js.t
type json_source =
  1. | SUrl of string
  2. | SStr of string
val make : ?options:options Js_of_ocaml.Js.t -> string -> json_source -> unit
val optdef : ('a -> 'b) -> 'c option -> 'd Js_of_ocaml.Js.optdef
val make_date : ?month:int -> ?day:int -> ?hour:int -> ?minute:int -> ?second:int -> ?millisecond:int -> ?format:string -> ?display_text:string -> int -> date Js_of_ocaml.Js.t
val make_media : ?caption:string -> ?credit:string -> ?thumbnail:string -> string -> media Js_of_ocaml.Js.t
val make_text : ?headline:string -> string -> text Js_of_ocaml.Js.t
val add_event : ?end_date:date Js_of_ocaml.Js.t -> ?media:media Js_of_ocaml.Js.t -> ?id:string -> text Js_of_ocaml.Js.t -> date Js_of_ocaml.Js.t -> timeline Js_of_ocaml.Js.t -> unit
OCaml

Innovation. Community. Security.