Idris2Doc : Web.Async.Widget

Web.Async.Widget

(source)

Reexports

importpublic Web.Async.I18n
importpublic Web.Async.Widget.Types

Definitions

disabledEdit : HasJSErres=>Reft->EditResa->JSes ()
  Sets the `disabled` attribute of the given element
if the given values is not a `Valid`.

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

Totality: total
Visibility: export
endOnRemove : DOMLocal=>Widgett->JSes (Widgett)
  Adjusts a widget in such a way that its input streams ends
as soon as one of its nodes are removed from the DOM.

This is used in utilities such as `bindEd` or `Web.Async.List`, where
external events decide when a node is removed from the UI.

Totality: total
Visibility: export
voidRef : Reft->RefVoid
Totality: total
Visibility: export
attributesWithID : LIOio=> (0t : HTMLTags) ->List (Attributet) ->io (Reft, List (Attributet))
  Adds a unique ID to the given list of attributes if it does not yet
already have an ID attribute, and returns the updated list plus the ID.

Totality: total
Visibility: export
nodeWithID : LIOio=>HTMLNode->io (Maybe (RefVoid, HTMLNode))
  Adds a unique ID to the given HTML node if it does not yet
already have an ID and returns the updated node plus its ID.

Returns `Nothing` in case the node in question is a `Raw` node
or a `Text` node.

Totality: total
Visibility: export
validateRes : DOMLocal=>Reft-> {auto0_ : ValidityTagt} ->EditRess->Act ()
  Sets or unsets a custom validity message at the given node plus
sets a custom attribute (`data-validity`).

Totality: total
Visibility: export
textIn : DOMLocal=>InputType->List (AttributeInput) ->String->JSes (WidgetString)
  An input element that emits `String` events.

Totality: total
Visibility: export
valIn : DOMLocal=>InputType->List (AttributeInput) ->String-> (String->EditRese) ->JSes (Widget (EditRese))
  A validated input element that emits events of type
`EditRes e`.

A custom validity message is set in case of invalid input.

Totality: total
Visibility: export
read : DOMLocal=>Decodet=>String->EditRest
Totality: total
Visibility: export
onFileIn : Sinke=> (FileEv->e) ->AttributeInput
Totality: total
Visibility: export
fileIn : DOMLocal=>AttributesInput->JSes (Widget (EditResFileEv))
Totality: total
Visibility: export
selEntries : DOMLocal=>Eqt=>List (SelectEntryt) ->List (AttributeSelect) ->Maybet->JSes (Widget (EditRest))
  A select element displaying the values of type `v`
shown in the given list.

It fires events of type `t`, and uses two functions, one for
converting elements to events and one for displaying elements.

Totality: total
Visibility: export
sel : DOMLocal=>Eqt=> (v->t) -> (v->String) ->Listv->List (AttributeSelect) ->Maybet->JSes (Widget (EditRest))
  A select element displaying the values of type `v`
shown in the given list.

It fires events of type `t`, and uses two functions, one for
converting elements to events and one for displaying elements.

Totality: total
Visibility: export
txtEdit : DOMLocal=> (String->EditRest) ->InputType-> (Maybet->String) ->List (AttributeInput) ->Editort
Totality: total
Visibility: export
selEdit : DOMLocal=>Interpolationt=>Eqt=>Listt->List (AttributeSelect) ->Editort
Totality: total
Visibility: export
bindEd : DOMLocal=> (a->Editorb) -> (Maybeb->Maybea) ->Editora->Editorb
Totality: total
Visibility: export