Module

DOM.Classy.HTMLElement

Package
purescript-dom-classy
Repository
garyb/purescript-dom-classy

#IsHTMLElement Source

class (IsElement e) <= IsHTMLElement e  where

A class for subtypes of HTMLElement.

Members

Instances

#blur Source

blur :: forall eff el. IsHTMLElement el => el -> Eff (dom :: DOM | eff) Unit

#click Source

click :: forall eff el. IsHTMLElement el => el -> Eff (dom :: DOM | eff) Unit

#contentEditable Source

contentEditable :: forall eff el. IsHTMLElement el => el -> Eff (dom :: DOM | eff) String

#dir Source

dir :: forall eff el. IsHTMLElement el => el -> Eff (dom :: DOM | eff) String

#draggable Source

draggable :: forall eff el. IsHTMLElement el => el -> Eff (dom :: DOM | eff) Boolean

#focus Source

focus :: forall eff el. IsHTMLElement el => el -> Eff (dom :: DOM | eff) Unit

#getBoundingClientRect Source

getBoundingClientRect :: forall eff el. IsHTMLElement el => el -> Eff (dom :: DOM | eff) DOMRect

#hidden Source

hidden :: forall eff el. IsHTMLElement el => el -> Eff (dom :: DOM | eff) Boolean

#isContentEditable Source

isContentEditable :: forall eff el. IsHTMLElement el => el -> Eff (dom :: DOM | eff) Boolean

#lang Source

lang :: forall eff el. IsHTMLElement el => el -> Eff (dom :: DOM | eff) String

#offsetHeight Source

offsetHeight :: forall eff el. IsHTMLElement el => el -> Eff (dom :: DOM | eff) Number

#offsetLeft Source

offsetLeft :: forall eff el. IsHTMLElement el => el -> Eff (dom :: DOM | eff) Number

#offsetParent Source

offsetParent :: forall eff el. IsHTMLElement el => el -> Eff (dom :: DOM | eff) (Maybe Element)

#offsetTop Source

offsetTop :: forall eff el. IsHTMLElement el => el -> Eff (dom :: DOM | eff) Number

#offsetWidth Source

offsetWidth :: forall eff el. IsHTMLElement el => el -> Eff (dom :: DOM | eff) Number

#setContentEditable Source

setContentEditable :: forall eff el. IsHTMLElement el => String -> el -> Eff (dom :: DOM | eff) Unit

#setDir Source

setDir :: forall eff el. IsHTMLElement el => String -> el -> Eff (dom :: DOM | eff) Unit

#setDraggable Source

setDraggable :: forall eff el. IsHTMLElement el => Boolean -> el -> Eff (dom :: DOM | eff) Unit

#setHidden Source

setHidden :: forall eff el. IsHTMLElement el => Boolean -> el -> Eff (dom :: DOM | eff) Unit

#setLang Source

setLang :: forall eff el. IsHTMLElement el => String -> el -> Eff (dom :: DOM | eff) Unit

#setSpellcheck Source

setSpellcheck :: forall eff el. IsHTMLElement el => Boolean -> el -> Eff (dom :: DOM | eff) Unit

#setTabIndex Source

setTabIndex :: forall eff el. IsHTMLElement el => Int -> el -> Eff (dom :: DOM | eff) Unit

#setTitle Source

setTitle :: forall eff el. IsHTMLElement el => String -> el -> Eff (dom :: DOM | eff) Unit

#spellcheck Source

spellcheck :: forall eff el. IsHTMLElement el => el -> Eff (dom :: DOM | eff) Boolean

#tabIndex Source

tabIndex :: forall eff el. IsHTMLElement el => el -> Eff (dom :: DOM | eff) Int

#title Source

title :: forall eff el. IsHTMLElement el => el -> Eff (dom :: DOM | eff) String

Re-exports from DOM.Classy.Element

#textContent Source

textContent :: forall eff n. IsNode n => n -> Eff (dom :: DOM | eff) String

If the node type is document fragment, element, text, processing instruction, or comment this is the node's data, or null in all other cases.

#tagName Source

tagName :: forall el. IsElement el => el -> String

#setTextContent Source

setTextContent :: forall eff n. IsNode n => String -> n -> Eff (dom :: DOM | eff) Unit

If the node type is document fragment, element, text, processing instruction, or comment this allows the node's data to be changed, or has no effect in all other cases.

#setScrollTop Source

setScrollTop :: forall eff el. IsElement el => Number -> el -> Eff (dom :: DOM | eff) Unit

#setScrollLeft Source

setScrollLeft :: forall eff el. IsElement el => Number -> el -> Eff (dom :: DOM | eff) Unit

#setNodeValue Source

setNodeValue :: forall eff n. IsNode n => String -> n -> Eff (dom :: DOM | eff) Unit

If the node type is text, comment, or processing instruction this allows the node's data to be changed, or has no effect in all other cases.

#setId Source

setId :: forall el eff. IsElement el => ElementId -> el -> Eff (dom :: DOM | eff) Unit

#setClassName Source

setClassName :: forall el eff. IsElement el => String -> el -> Eff (dom :: DOM | eff) Unit

#setAttribute Source

setAttribute :: forall el eff. IsElement el => String -> String -> el -> Eff (dom :: DOM | eff) Unit

#scrollWidth Source

scrollWidth :: forall el eff. IsElement el => el -> Eff (dom :: DOM | eff) Number

#scrollTop Source

scrollTop :: forall el eff. IsElement el => el -> Eff (dom :: DOM | eff) Number

#scrollLeft Source

scrollLeft :: forall el eff. IsElement el => el -> Eff (dom :: DOM | eff) Number

#scrollHeight Source

scrollHeight :: forall el eff. IsElement el => el -> Eff (dom :: DOM | eff) Number

#replaceChild Source

replaceChild :: forall eff n3 n2 n1. IsNode n1 => IsNode n2 => IsNode n3 => n1 -> n2 -> n3 -> Eff (dom :: DOM | eff) Node

Uses the first node as a replacement for the second node in the children of the third node.

#removeChild Source

removeChild :: forall eff n2 n1. IsNode n1 => IsNode n2 => n1 -> n2 -> Eff (dom :: DOM | eff) Node

Removes the first node from the children of the second node.

#removeAttribute Source

removeAttribute :: forall el eff. IsElement el => String -> el -> Eff (dom :: DOM | eff) Unit

#previousSibling Source

previousSibling :: forall eff n. IsNode n => n -> Eff (dom :: DOM | eff) (Maybe Node)

The previous sibling node, or null if there is no previous sibling.

#prefix Source

prefix :: forall el. IsElement el => el -> Maybe String

#parentNode Source

parentNode :: forall eff n. IsNode n => n -> Eff (dom :: DOM | eff) (Maybe Node)

The parent node of the node.

#parentElement Source

parentElement :: forall eff n. IsNode n => n -> Eff (dom :: DOM | eff) (Maybe Element)

The parent element of the node.

#ownerDocument Source

ownerDocument :: forall eff n. IsNode n => n -> Eff (dom :: DOM | eff) (Maybe Document)

The document the node belongs to, unless the node is a document in which case the value is null.

#normalize Source

normalize :: forall eff n. IsNode n => n -> Eff (dom :: DOM | eff) Unit

Removes empty text nodes and then combines any remaining text nodes that are contiguous.

#nodeValue Source

nodeValue :: forall eff n. IsNode n => n -> Eff (dom :: DOM | eff) String

If the node type is text, comment, or processing instruction this is the node's data, or null in all other cases.

#nodeTypeIndex Source

nodeTypeIndex :: forall n. IsNode n => n -> Int

The numeric value for the type of a node.

#nodeType Source

nodeType :: forall n. Partial => IsNode n => n -> NodeType

The type of a node.

#nodeName Source

nodeName :: forall n. IsNode n => n -> String

For elements this is the tag name, for document types this is the doctype name, for processing instructions this is the target, for all other nodes it is a string like "#text", `"#comment", etc. depending on the node type.

#nextSibling Source

nextSibling :: forall eff n. IsNode n => n -> Eff (dom :: DOM | eff) (Maybe Node)

The next sibling node, or null if there is no next sibling.

#namespaceURI Source

namespaceURI :: forall el. IsElement el => el -> Maybe String

#lookupPrefix Source

lookupPrefix :: forall eff n. IsNode n => String -> n -> Eff (dom :: DOM | eff) (Maybe String)

#lookupNamespaceURI Source

lookupNamespaceURI :: forall eff n. IsNode n => String -> n -> Eff (dom :: DOM | eff) (Maybe String)

#localName Source

localName :: forall el. IsElement el => el -> String

#lastChild Source

lastChild :: forall eff n. IsNode n => n -> Eff (dom :: DOM | eff) (Maybe Node)

The last child of the node, or null if the node has no children.

#isEqualNode Source

isEqualNode :: forall eff n2 n1. IsNode n1 => IsNode n2 => n1 -> n2 -> Eff (dom :: DOM | eff) Boolean

Checks whether two nodes are equivalent.

#isDefaultNamespace Source

isDefaultNamespace :: forall eff n. IsNode n => String -> n -> Eff (dom :: DOM | eff) Boolean

#insertBefore Source

insertBefore :: forall eff n3 n2 n1. IsNode n1 => IsNode n2 => IsNode n3 => n1 -> n2 -> n3 -> Eff (dom :: DOM | eff) Node

Inserts the first node before the second as a child of the third node.

#id Source

id :: forall el eff. IsElement el => el -> Eff (dom :: DOM | eff) ElementId

#hasChildNodes Source

hasChildNodes :: forall eff n. IsNode n => n -> Eff (dom :: DOM | eff) Boolean

Indicates whether the node has any child nodes.

#getElementsByTagNameNS Source

getElementsByTagNameNS :: forall el eff. IsElement el => Maybe String -> String -> el -> Eff (dom :: DOM | eff) HTMLCollection

#getElementsByTagName Source

getElementsByTagName :: forall el eff. IsElement el => String -> el -> Eff (dom :: DOM | eff) HTMLCollection

#getElementsByClassName Source

getElementsByClassName :: forall el eff. IsElement el => String -> el -> Eff (dom :: DOM | eff) HTMLCollection

#getAttribute Source

getAttribute :: forall el eff. IsElement el => String -> el -> Eff (dom :: DOM | eff) (Maybe String)

#firstChild Source

firstChild :: forall eff n. IsNode n => n -> Eff (dom :: DOM | eff) (Maybe Node)

The first child of the node, or null if the node has no children.

#contains Source

contains :: forall eff n2 n1. IsNode n1 => IsNode n2 => n1 -> n2 -> Eff (dom :: DOM | eff) Boolean

Checks whether the second node is contained within the first

#compareDocumentPositionBits Source

compareDocumentPositionBits :: forall eff n2 n1. IsNode n1 => IsNode n2 => n1 -> n2 -> Eff (dom :: DOM | eff) Int

Compares the position of two nodes in the document.

#clientWidth Source

clientWidth :: forall el eff. IsElement el => el -> Eff (dom :: DOM | eff) Number

#clientTop Source

clientTop :: forall el eff. IsElement el => el -> Eff (dom :: DOM | eff) Number

#clientLeft Source

clientLeft :: forall el eff. IsElement el => el -> Eff (dom :: DOM | eff) Number

#clientHeight Source

clientHeight :: forall el eff. IsElement el => el -> Eff (dom :: DOM | eff) Number

#className Source

className :: forall el eff. IsElement el => el -> Eff (dom :: DOM | eff) String

#childNodes Source

childNodes :: forall eff n. IsNode n => n -> Eff (dom :: DOM | eff) NodeList

The children of the node.

#baseURI Source

baseURI :: forall eff n. IsNode n => n -> Eff (dom :: DOM | eff) String

The node's base URL.

#appendChild Source

appendChild :: forall eff n2 n1. IsNode n1 => IsNode n2 => n1 -> n2 -> Eff (dom :: DOM | eff) Node

Appends the first node to the child node list of the second node.