package alba

  1. Overview
  2. Docs
Alba compiler

Install

Dune Dependency

Authors

Maintainers

Sources

0.4.2.tar.gz
sha256=203ee151ce793a977b2d3e66f8b3a0cd7a82cc7f15550c63d88cb30c71eb5f95
md5=64367c393f80ca784f88d07155da4fb0

doc/alba.fmlib_js/Fmlib_js/Browser/Make/index.html

Module Browser.MakeSource

Parameters

Signature

Sourcemodule Vdom = App.Dom
Sourcemodule Command = App.Command
Sourcemodule Subscription = App.Subscription
Sourcemodule Tree : sig ... end
Sourcetype ('model, 'msg) t = {
  1. window : window Js_of_ocaml.Js.t;
  2. root : node Js_of_ocaml.Js.t;
  3. view : 'model -> 'msg Vdom.t;
  4. update : 'msg -> 'model -> 'model * 'msg Command.t;
  5. subscription : 'model -> 'msg Subscription.t;
  6. mutable model : 'model;
  7. mutable dirty : bool;
  8. mutable tree : 'msg Tree.t option;
}
Sourceval make : window Js_of_ocaml.Js.t -> node Js_of_ocaml.Js.t -> 'model -> ('model -> 'msg Vdom.t) -> ('msg -> 'model -> 'model * 'msg Command.t) -> ('model -> 'msg Subscription.t) -> ('model, 'msg) t
Sourceval view : ('model, 'msg) t -> 'msg Vdom.t
Sourceval update : 'msg -> ('model, 'msg) t -> unit
Sourceval do_command : ('model, 'msg) t -> 'msg Command.t -> unit
Sourceval make_event_handler : ('model, 'msg) t -> 'msg Decoder.t -> (Fmlib.Common.Void.t Js_of_ocaml.Js.t -> unit) Js_of_ocaml.Js.callback
Sourceval make_tree : ('model, 'msg) t -> 'msg Vdom.t -> 'msg Tree.t
Sourceval remove_children : node Js_of_ocaml.Js.t -> unit
Sourceval update_dom : ('model, 'msg) t -> unit
Sourceval animate : ('model, 'msg) t -> float -> unit
Sourceval sandbox : 'model -> ('model -> 'msg Vdom.t) -> ('msg -> 'model -> 'model) -> unit
Sourceval element : 'a Decoder.t -> ('a -> 'model * 'msg App.Command.t) -> ('model -> 'msg Vdom.t) -> ('msg -> 'model -> 'model * 'msg App.Command.t) -> ('model -> 'msg App.Subscription.t) -> unit
OCaml

Innovation. Community. Security.