ElmishComponent<'model, 'msg> Type

Base class for components that are part of an Elmish view.

Constructors

Constructor Description

ElmishComponent()

Full Usage: ElmishComponent()

Returns: ElmishComponent<'model, 'msg>
Returns: ElmishComponent<'model, 'msg>

Instance members

Instance member Description

this.Dispatch

Full Usage: this.Dispatch

The Elmish dispatch function.

this.Model

Full Usage: this.Model

The current value of the Elmish model. Can be just a part of the full program's model.

this.View

Full Usage: this.View

Parameters:
    model : 'model - The Elmish model.
    dispatch : Dispatch<'msg> - The Elmish dispatch function.

Returns: Node The rendered view.
Modifiers: abstract

The Elmish view function.

model : 'model

The Elmish model.

dispatch : Dispatch<'msg>

The Elmish dispatch function.

Returns: Node

The rendered view.