html
Functions
app
fn(initial_model: 'model, update: fn ('model, 'msg) -> 'model / 't300, view: fn ('model) -> View<'msg>) -> () / { 't300, 't300, {unknown}, 't300, -Dom<'t316>, -Channel<'t327>, -State<ChannelState<'t328, 't329>>, -Dom<'t316>, -Channel<'t327>, -State<ChannelState<'t328, 't329>>, -Dom<'t316>, -Channel<'t327>, -State<ChannelState<'t328, 't329>> }
Run an Elm-architecture app: initial model, update function, and view function. Installs the channel and DOM handlers, builds the initial view, and enters the message loop. Any additional effect handlers (e.g. random) should be installed by the caller before calling app.
attr
fn(value: Str) -> View<'msg>
bool_attr
fn(value: Bool) -> View<'msg>
keyed
fn(data: Vector<'t>, key_fn: fn ('t) -> 'k, view_fn: fn ('t) -> View<'msg>) -> View<'msg>
Create a keyed collection view from a data vector, a key function, and a view function. The key function extracts a unique key from each data item for efficient diffing. The view function creates the view for each data item, called lazily only when needed.
mount
fn(parent: DOMNode, state: ViewState<'msg>) -> ViewState<'msg> / { Dom<'t153> }
Mount a view state into the live DOM by appending its root element to the parent.
on
fn(event: Str, msg: 'msg) -> View<'msg>
text
fn(text: Str) -> View<'msg>