Idris2Doc : Web.MVC.Controller.Validation

Web.MVC.Controller.Validation

(source)

Definitions

validateState : CastiDomID=>ValEnvi=> (s->EitherStringt) ->i->s->Cmde
  Sets the associated validation text of a validated widget based on
its current state.

Totality: total
Visibility: export
valTextInput : CastiDomID=>ValEnvi=> (String->EitherStringt) ->i->ControllerStringString
  Sets the validation message of an `<input>` element based on its
current value.

Totality: total
Visibility: export
validated : CastiDomID=>ValEnvi=>Editorisen->Editorisen
  Converts an editor representing an interactive widget to one
with an associated DOM element for displaying validation text
messages.

Totality: total
Visibility: export
checkVal : CastiDomID=>ValEnvi=> (String->EitherStringt) ->String->EitherStringt
Totality: total
Visibility: export
input : CastiDomID=>ValEnvi=>Class->InputType-> (String->EitherStringnew) -> (Maybenew->String) ->EditoriStringStringnew
  An editor for editing values as strings via `<input>` elements.

@cls : CSS class for the input text field we use.

@tpe : Type of the input field

@rd : Reading function for converting strings to values of the
desired type

@disp : Function for displaying client-side values.

@ini : Initial (client-side) value

Totality: total
Visibility: export