Module
DOM.Classy.Element
- Package
- purescript-dom-classy
- Repository
- garyb/purescript-dom-classy
#IsElement Source
class (IsNode e) <= IsElement e where
A class for subtypes of Element
.
Members
toElement :: e -> Element
fromElement :: Element -> Maybe e
Instances
IsElement Element
IsElement HTMLElement
IsElement HTMLHtmlElement
IsElement HTMLHeadElement
IsElement HTMLTitleElement
IsElement HTMLBaseElement
IsElement HTMLLinkElement
IsElement HTMLMetaElement
IsElement HTMLStyleElement
IsElement HTMLBodyElement
IsElement HTMLHeadingElement
IsElement HTMLParagraphElement
IsElement HTMLHRElement
IsElement HTMLPreElement
IsElement HTMLQuoteElement
IsElement HTMLOListElement
IsElement HTMLUListElement
IsElement HTMLLIElement
IsElement HTMLDListElement
IsElement HTMLDivElement
IsElement HTMLAnchorElement
IsElement HTMLDataElement
IsElement HTMLTimeElement
IsElement HTMLSpanElement
IsElement HTMLBRElement
IsElement HTMLModElement
IsElement HTMLImageElement
IsElement HTMLIFrameElement
IsElement HTMLEmbedElement
IsElement HTMLObjectElement
IsElement HTMLParamElement
IsElement HTMLMediaElement
IsElement HTMLAudioElement
IsElement HTMLVideoElement
IsElement HTMLSourceElement
IsElement HTMLTrackElement
IsElement HTMLMapElement
IsElement HTMLAreaElement
IsElement HTMLTableElement
IsElement HTMLTableCaptionElement
IsElement HTMLTableColElement
IsElement HTMLTableSectionElement
IsElement HTMLTableRowElement
IsElement HTMLTableCellElement
IsElement HTMLTableDataCellElement
IsElement HTMLTableHeaderCellElement
IsElement HTMLFormElement
IsElement HTMLLabelElement
IsElement HTMLInputElement
IsElement HTMLButtonElement
IsElement HTMLSelectElement
IsElement HTMLDataListElement
IsElement HTMLOptGroupElement
IsElement HTMLOptionElement
IsElement HTMLTextAreaElement
IsElement HTMLKeygenElement
IsElement HTMLOutputElement
IsElement HTMLProgressElement
IsElement HTMLMeterElement
IsElement HTMLFieldSetElement
IsElement HTMLLegendElement
IsElement HTMLScriptElement
IsElement HTMLTemplateElement
IsElement HTMLCanvasElement
#clientHeight Source
clientHeight :: forall el eff. IsElement el => el -> Eff (dom :: DOM | eff) Number
#clientWidth Source
clientWidth :: forall el eff. IsElement el => el -> Eff (dom :: DOM | eff) Number
#getElementsByClassName Source
getElementsByClassName :: forall el eff. IsElement el => String -> el -> Eff (dom :: DOM | eff) HTMLCollection
#getElementsByTagName Source
getElementsByTagName :: forall el eff. IsElement el => String -> el -> Eff (dom :: DOM | eff) HTMLCollection
#getElementsByTagNameNS Source
getElementsByTagNameNS :: forall el eff. IsElement el => Maybe String -> String -> el -> Eff (dom :: DOM | eff) HTMLCollection
#scrollHeight Source
scrollHeight :: forall el eff. IsElement el => el -> Eff (dom :: DOM | eff) Number
#scrollWidth Source
scrollWidth :: forall el eff. IsElement el => el -> Eff (dom :: DOM | eff) Number
Re-exports from DOM.Classy.Node
#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.
#nodeTypeIndex Source
nodeTypeIndex :: forall n. IsNode n => n -> Int
The numeric value for the type of a node.
#hasChildNodes Source
hasChildNodes :: forall eff n. IsNode n => n -> Eff (dom :: DOM | eff) Boolean
Indicates whether the node has any child nodes.
#childNodes Source
childNodes :: forall eff n. IsNode n => n -> Eff (dom :: DOM | eff) NodeList
The children of the node.