Idris2Doc : Web.Async.Widget.Types

Web.Async.Widget.Types

(source)

Definitions

dataEditRes : Type->Type
  Result of editing some kind of input element.

Input is either missing, invalid, or valid.

Totality: total
Visibility: public export
Constructors:
Missing : EditRest
Invalid : String->EditRest
Valid : t->EditRest

Hints:
ApplicativeEditRes
Eq{arg:3573}=>Eq (EditRes{arg:3573})
FunctorEditRes
MonadEditRes
Show{arg:3573}=>Show (EditRes{arg:3573})
toEither : EditRest->EitherString ()
Totality: total
Visibility: export
toMaybe : EditRest->Maybet
Totality: total
Visibility: export
isValid : EditRest->Bool
Totality: total
Visibility: export
validity : EditRess->Attributet
Totality: total
Visibility: export
recordWidget : Type->Type
  A `Widget e` is an interactive UI element that emits
events of type `e`.

Totality: total
Visibility: public export
Constructor: 
W : HTMLNodes->JSStreame->Widgete

Projections:
.events : Widgete->JSStreame
.nodes : Widgete->HTMLNodes

Hint: 
FunctorWidget
.nodes : Widgete->HTMLNodes
Totality: total
Visibility: public export
nodes : Widgete->HTMLNodes
Totality: total
Visibility: public export
.events : Widgete->JSStreame
Totality: total
Visibility: public export
events : Widgete->JSStreame
Totality: total
Visibility: public export
adjNodes : (HTMLNodes->HTMLNodes) ->Widgete->Widgete
Totality: total
Visibility: export
constant : t->Widgett
  A dummy widget without a node representation that keeps
producing the given value.

Totality: total
Visibility: export
empty : Widgett
  A dummy widget without a node representation that
never fires an event.

Totality: total
Visibility: export
once : t->Widgett
  A dummy widget without a node representation that
fires the given event exactly once.

Totality: total
Visibility: export
recordFileEv : Type
Totality: total
Visibility: public export
Constructor: 
FE : File->String->FileEv

Projections:
.file : FileEv->File
.name : FileEv->String

Hint: 
InterpolationFileEv
.file : FileEv->File
Totality: total
Visibility: public export
file : FileEv->File
Totality: total
Visibility: public export
.name : FileEv->String
Totality: total
Visibility: public export
name : FileEv->String
Totality: total
Visibility: public export
map2 : Functorf=>Functorg=> (x->y) ->f (gx) ->f (gy)
Totality: total
Visibility: export
map3 : Functorf=>Functorg=>Functorh=> (x->y) ->f (g (hx)) ->f (g (hy))
Totality: total
Visibility: export
recordEditor : Type->Type
  An `Editor` describes how to create new interactive DOM elements that
typically serve as a form of (validated) user input. It consists of an
`HTMLNode` for displaying the editing form plus a stream of validated
input data.

An editor and its corresponding widgets can be something simple like a
text input field or a `<select>` element, or it can be highly complex
like a canvas and a group of DOM elements for editing molecules.

A couple of notes about how an editor is supposed to behave:
* If the initial value used for creating the widget is a `Nothing`,
the stream of values produced by the widget *may* already hold
a valid default value. In case no sensible default is available,
the stream's initial value *should* be `Missing`.
* If the initial value used for creating the widget is a `Just`,
the stream of values produced by the widget *must* emit a `Valid`
wrapping the provided initial value as its first output.

The above two rules make sure an editor behaves as expected, especially
when combining several editors in a form, or using the experimental
`bindEd` combinator.

Totality: total
Visibility: public export
Constructor: 
E : (Maybet->Act (Widget (EditRest))) ->Editort

Projection: 
.widget : Editort->Maybet->Act (Widget (EditRest))
  Create a node and stream of values from an optional initial value.
.widget : Editort->Maybet->Act (Widget (EditRest))
  Create a node and stream of values from an optional initial value.

Totality: total
Visibility: public export
widget : Editort->Maybet->Act (Widget (EditRest))
  Create a node and stream of values from an optional initial value.

Totality: total
Visibility: public export
adjWidget : (Maybea->Maybeb) -> (Widget (EditResb) ->Widget (EditResa)) ->Editorb->Editora
Totality: total
Visibility: export
edNodes : (HTMLNodes->HTMLNodes) ->Editort->Editort
Totality: total
Visibility: export
adjEditor : (Maybea->Maybeb) -> (EditResb->EditResa) ->Editorb->Editora
Totality: total
Visibility: export
editI : Iso't1t2->Editort1->Editort2
  Views an editor through an isomorphism.

Totality: total
Visibility: export
editP : Prism't2t1->Editort1->Editort2
  Views the `new` values of an editor through a prism.

Totality: total
Visibility: export
refineEdit : (t2->Maybet1) -> (t1->EditRest2) ->Editort1->Editort2
  Refines an editor to produce values of a more restricted type.

Totality: total
Visibility: export
mapEvents : (JSStream (EditRest) ->JSStream (EditRest)) ->Editort->Editort
Totality: total
Visibility: export
dummy : t->Editort
  A dummy `Editor` for uneditable values.

The given value is fired exactly once.

Totality: total
Visibility: public export