package ocsigen-toolkit

  1. Overview
  2. Docs
Reusable UI components for Eliom applications (client only, or client-server)

Install

dune-project
 Dependency

Authors

Maintainers

Sources

4.3.0.tar.gz
md5=69be960fcd9bd4980c97ec2abebedc80
sha512=f1d76fc73046f9d577cdcaa85adf3e372995d924a6cbbd1bb189e294d717bc35c1d9cda3701189a4436c2d45fc8ddc2a16f8198182ac071fd501bb7d882a2276

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.t

make ?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".