Idris2Doc : Web.MVC.View

Web.MVC.View

(source)

Definitions

registerDOMEvent : (e->JSIO ()) ->Bool->Bool->EventTarget->DOMEvente->JSIO ()
  Low level method for registering `DOMEvents` at
HTML elements.

Use this, for instance, to register `DOMEvents` at
a HTMLElement of a static document.

Totality: total
Visibility: export
setAttribute : (e->JSIO ()) ->Element->Attributete->JSIO ()
Totality: total
Visibility: export
children : Reft->List (Nodee) ->Cmde
  Sets up the reactive behavior of the given `Node`s and
inserts them as the children of the given target.

Totality: total
Visibility: export
child : Reft->Nodee->Cmde
  Sets up the reactive behavior of the given `Node` and
inserts it as the only child of the given target.

Totality: total
Visibility: export
text : Reft->String->Cmde
  Replaces the given node's children with a text node
displaying the given string.

Totality: total
Visibility: export
show : Showb=>Reft->b->Cmde
  Replaces the given node's children with a text node
showing the given value.

Totality: total
Visibility: export
raw : Reft->String->Cmde
  Replaces the given node's children with the raw
HTML passed as a string argument.

Totality: total
Visibility: export
style : RefStyle->List (Rule1) ->Cmde
  Replaces the given `<style>` node's CSS rules.

Totality: total
Visibility: export
afterMany : Reft->List (Nodee) ->Cmde
  Sets up the reactive behavior of the given `Node`s and
inserts them after the given child node.

Totality: total
Visibility: export
after : Reft->Nodee->Cmde
  Sets up the reactive behavior of the given `Node` and
inserts it after the given child node.

Totality: total
Visibility: export
beforeMany : Reft->List (Nodee) ->Cmde
  Sets up the reactive behavior of the given `Node`s and
inserts them before the given child node.

Totality: total
Visibility: export
before : Reft->Nodee->Cmde
  Sets up the reactive behavior of the given `Node` and
inserts it before the given child node.

Totality: total
Visibility: export
appendMany : Reft->List (Nodee) ->Cmde
  Sets up the reactive behavior of the given `Node`s and
appends them to the given element's list of children

Totality: total
Visibility: export
append : Reft->Nodee->Cmde
  Sets up the reactive behavior of the given `Node` and
appends it to the given element's list of children

Totality: total
Visibility: export
prependMany : Reft->List (Nodee) ->Cmde
  Sets up the reactive behavior of the given `Node`s and
prepends them to the given element's list of children

Totality: total
Visibility: export
prepend : Reft->Nodee->Cmde
  Sets up the reactive behavior of the given `Node` and
prepends it to the given element's list of children

Totality: total
Visibility: export
replaceMany : Reft->List (Nodee) ->Cmde
  Sets up the reactive behavior of the given `Node`s and
replaces the given element.

Totality: total
Visibility: export
replace : Reft->Nodee->Cmde
  Sets up the reactive behavior of the given `Node` and
replaces the given element.

Totality: total
Visibility: export
validityMsg : Reft->ValidityTagt=>String->Cmde
  Sets a custom validity message at the given node.

Totality: total
Visibility: export
validate : Reft->ValidityTagt=>EitherStringb->Cmde
  Sets or unsets a custom validity message at the given node.

Totality: total
Visibility: export
attr : Reft->Attributete->Cmde
  Sets an attribute at the given node.

Totality: total
Visibility: export
checked : RefInput->Bool->Cmde
  Sets the `checked` property of the given element

Totality: total
Visibility: export
disabled : Reft->Bool->Cmde
  Sets the `disabled` attribute of the given element

Totality: total
Visibility: export
disabledE : Reft->Eitherab->Cmde
  Sets the `disabled` attribute of the given element
if the given values is a `Left`.

This is useful for disabling components such as buttons
in the UI in case of invalid user input.

Totality: total
Visibility: export
disabledM : Reft->Maybea->Cmde
  Sets the `disabled` attribute of the given element
if the given values is a `Nothing`.

This is useful for disabling components such as buttons
in the UI in case of invalid user input.

Totality: total
Visibility: export
remove : Reft->Cmde
  Removes the given element from the DOM.

Totality: total
Visibility: export
value : Reft->ValueTagt=>String->Cmde
  Sets the `value` attribute of the given element.

Totality: total
Visibility: export
renderWithMetrics : RefCanvas-> (TextMeasure=>CanvasDims->Scene) ->Cmde
  Renders a scene at a canvas element

Totality: total
Visibility: export
renderWithDims : RefCanvas-> (CanvasDims->Scene) ->Cmde
  Renders a scene at a canvas element

Totality: total
Visibility: export
render : RefCanvas->Scene->Cmde
  Renders a scene at a canvas element

Totality: total
Visibility: export
setCanvasDims : RefCanvas->CanvasDims->Cmde
  Adjusts the dimensions of a `HTMLCanvasElement`

Totality: total
Visibility: export
focus : Reft->Cmde
  Focus the given HTMLElemet

Totality: total
Visibility: export
blur : Reft->Cmde
  Blur (lose focus on) the given HTMLElemet

Totality: total
Visibility: export
withMetricsFor : RefCanvas-> (TextMeasure=>Cmde) ->Cmde
  Provides a `TextMeasure` utility from the given `Canvas` to run the given
command.

Totality: total
Visibility: export