sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Reusable UI components for Eliom applications (client only, or client-server)
Install
dune-project
Dependency
Authors
Maintainers
Sources
5.0.0.tar.gz
md5=94767ed327f1b17bdf81bb6eae92d8da
sha512=86e2522ed7f9f1aba2da9f2dec7bb764aa1357fe48d560da5565d8e77d8307ba14f9637a1025c010acf9c77c8e8bfd59c0672be7d9da59ea4520ebac24ea2314
doc/ocsigen-toolkit.server/Ot/Spinner/index.html
Module Ot.Spinner
Spinner widget
val with_spinner :
?a:[< Html_types.div_attrib ] Eliom.Content.Html.attrib list ->
?spinner:[< Html_types.div_content ] Eliom.Content.Html.elt list ->
?fail:(exn -> [< Html_types.div_content ] Eliom.Content.Html.elt list Lwt.t) ->
[< Html_types.div_content ] Eliom.Content.Html.elt list Lwt.t ->
[> `Div ] Eliom.Content.Html.elt Lwt.tOn client side, with_spinner th returns immediately a spinner while Lwt thread th is not finished, that will automatically be replaced by the result of th when finished.
On server side, it will wait for th to be finished before returning its result (and never display a spinner).
If you want the spinner on both sides, you can use with_spinner_no_lwt and Eliom.Content.Html.C.node.
Function fail will be used to display block in case an exception is raised.
Use optional argument spinner on client side to customize the spinner. By default it is a div element with classes ot-icon-spinner and ot-icon-animation-spinning. (see default stylesheet).
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page