Idris2Doc : Web.MVC.Util

Web.MVC.Util

(source)

Reexports

importpublic Text.HTML.Ref
importpublic Text.HTML.Tag

Definitions

0ElemType : Reft->Type
  DOM type associacte with an ElemRef

Totality: total
Visibility: public export
strictGetElementById : SafeCastt=>MaybeString->String->JSIOt
  Tries to retrieve an element of the given type by looking
up its ID in the DOM. Unlike `getElementById`, this will throw
an exception in the `JSIO` monad if the element is not found
or can't be safely cast to the desired type.

Totality: total
Visibility: export
strictGetHTMLElementById : String->String->JSIOHTMLElement
  Tries to retrieve a HTMLElement by looking
up its ID in the DOM. Unlike `getElementById`, this will throw
an exception in the `JSIO` monad if the element is not found
or can't be safely cast to the desired type.

Totality: total
Visibility: export
getElementByRef : (r : Reft) ->JSIO (ElemTyper)
  Tries to retrieve an element of the given type by looking
up its ID in the DOM. Unlike `getElementById`, this will throw
an exception in the `JSIO` monad if the element is not found
or can't be safely cast to the desired type.

Totality: total
Visibility: export
castElementByRef : SafeCastt=>Refx->JSIOt
  Tries to retrieve an element of the given type by looking
up its ID in the DOM. Unlike `getElementById`, this will throw
an exception in the `JSIO` monad if the element is not found
or can't be safely cast to the desired type.

Totality: total
Visibility: export
setValidityMessage : Reft->ValidityTagt=>String->JSIO ()
Totality: total
Visibility: export
setValue : Reft->ValueTagt=>String->JSIO ()
Totality: total
Visibility: export
replaceChildren : Element->DocumentFragment->JSIO ()
  Replaces all children of the given node with a new document fragment.

Totality: total
Visibility: export
appendDF : Element->DocumentFragment->JSIO ()
  Appends the given document fragment to a DOM element's children

Totality: total
Visibility: export
prependDF : Element->DocumentFragment->JSIO ()
  Prepends the given document fragment to a DOM element's children

Totality: total
Visibility: export
afterDF : Element->DocumentFragment->JSIO ()
  Inserts the given document fragment after a DOM element.

Totality: total
Visibility: export
beforeDF : Element->DocumentFragment->JSIO ()
  Inserts the given document fragment before a DOM element.

Totality: total
Visibility: export
replaceDF : Element->DocumentFragment->JSIO ()
  Inserts the given document fragment before a DOM element.

Totality: total
Visibility: export
toRect : DOMRect->JSIORect
Totality: total
Visibility: export
boundingRect : Refx->JSIORect
Totality: total
Visibility: export