package alba

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

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.