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/Toggle/index.html
Module Ot.Toggle
Binary toggle widget
val make :
?init_up:bool ->
?up_txt:string ->
?down_txt:string ->
?update:bool React.E.t Eliom.Client_value.t ->
unit ->
[> `Div ] Eliom.Content.Html.elt * bool Eliom.Shared.React.S.tmake ?init_up ?up_txt ?down_txt () produces a binary toggle. If init_up is true, the toggle is originally up (default: down). The buttons for the "up" and "down" positions are marked with up_txt and down_txt. The first part of the output is the toggle, and the second part is a Boolean reactive signal, where true means "up".
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page