package ocsigen-toolkit

  1. Overview
  2. Docs
val is_position_sticky : 'a Eliom_content.Html.elt -> bool
val set_position_sticky : 'a Eliom_content.Html.elt -> bool
val supports_position_sticky : 'a Eliom_content.Html.elt -> bool
val is_sticky : 'a Eliom_content.Html.elt -> bool
type glue = {
  1. fixed : Html_types.div_content Eliom_content.Html.D.elt;
  2. inline : Html_types.div_content Eliom_content.Html.D.elt;
  3. dir : [ `Left | `Top ];
  4. scroll_thread : unit Lwt.t;
  5. resize_thread : (int * int) React.S.t;
  6. dissolve : unit -> unit;
}
val make_sticky : dir:[ `Left | `Top ] -> ?ios_html_scroll_hack:bool -> ?force:bool -> Html_types.div_content Eliom_content.Html.elt -> glue option Lwt.t
val keep_in_sight : dir:[ `Left | `Top ] -> ?ios_html_scroll_hack:bool -> Html_types.div_content Eliom_content.Html.elt -> (unit -> unit) Lwt.t
OCaml

Innovation. Community. Security.