package bonsai

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

Install

Dune Dependency

Authors

Maintainers

Sources

bonsai-v0.14.0.tar.gz
sha256=43f35d648644492d776bf2c7b86c8227e7793615b6a658432e95f8dccd3631f8
md5=b5e743dbfa64d0da5fd660f14cd0b549

doc/bonsai.web/Bonsai_web/Start/App_input/index.html

Module Start.App_input

The input of an application-level component is a value of type ('input, 'outgoing) App_input.t.

type ('input, 'outgoing) t
val input : ('input, _) t -> 'input

The input field is used to access the 'input to the application that is set from the imperative Handle.t value.

val inject_outgoing : (_, 'outgoing) t -> 'outgoing -> Virtual_dom.Vdom.Event.t

inject_outgoing is used to inject values of the type 'outgoing into events to communicate with the imperative Handle.t holder. Any values injected via inject_outgoing will be present in the 'outgoing Pipe.Reader.t that can be acquired via Handle.outgoing.

OCaml

Innovation. Community. Security.