package bonsai

  1. Overview
  2. Docs
A library for building dynamic webapps, using Js_of_ocaml

Install

Dune Dependency

Authors

Maintainers

Sources

v0.15.1.tar.gz
sha256=0c4a714146073f421f1a6179561f836b45d8dc012c743207d3481ea63bef74bf

doc/bonsai.web_ui_extendy/Bonsai_web_ui_extendy/index.html

Module Bonsai_web_ui_extendySource

Sourcemodule Id : sig ... end
Sourcetype 'a t = {
  1. contents : 'a Id.Map.t;
  2. append : unit Ui_effect.t;
  3. set_length : int -> unit Ui_effect.t;
  4. remove : Id.t -> unit Ui_effect.t;
}

Given a computation, builds a new computation that can hold a dynamic number of the wrapped computation.

Sourceval component' : Core.Source_code_position.t -> 'a Bonsai.Computation.t -> wrap_remove:('a -> unit Ui_effect.t -> 'b) -> 'b t Bonsai.Computation.t

Like component, but with the power to extend the result of the input component with an event that removes itself.

OCaml

Innovation. Community. Security.