Module
DOM.Classy.ParentNode
- Package
- purescript-dom-classy
- Repository
- garyb/purescript-dom-classy
#IsParentNode Source
class IsParentNode n where
A class for subtypes of ParentNode
.
Members
toParentNode :: n -> ParentNode
fromParentNode :: ParentNode -> Maybe n
Instances
IsParentNode Document
IsParentNode Element
IsParentNode HTMLDocument
IsParentNode HTMLElement
IsParentNode HTMLHtmlElement
IsParentNode HTMLHeadElement
IsParentNode HTMLTitleElement
IsParentNode HTMLBaseElement
IsParentNode HTMLLinkElement
IsParentNode HTMLMetaElement
IsParentNode HTMLStyleElement
IsParentNode HTMLBodyElement
IsParentNode HTMLHeadingElement
IsParentNode HTMLParagraphElement
IsParentNode HTMLHRElement
IsParentNode HTMLPreElement
IsParentNode HTMLQuoteElement
IsParentNode HTMLOListElement
IsParentNode HTMLUListElement
IsParentNode HTMLLIElement
IsParentNode HTMLDListElement
IsParentNode HTMLDivElement
IsParentNode HTMLAnchorElement
IsParentNode HTMLDataElement
IsParentNode HTMLTimeElement
IsParentNode HTMLSpanElement
IsParentNode HTMLBRElement
IsParentNode HTMLModElement
IsParentNode HTMLImageElement
IsParentNode HTMLIFrameElement
IsParentNode HTMLEmbedElement
IsParentNode HTMLObjectElement
IsParentNode HTMLParamElement
IsParentNode HTMLMediaElement
IsParentNode HTMLAudioElement
IsParentNode HTMLVideoElement
IsParentNode HTMLSourceElement
IsParentNode HTMLTrackElement
IsParentNode HTMLMapElement
IsParentNode HTMLAreaElement
IsParentNode HTMLTableElement
IsParentNode HTMLTableCaptionElement
IsParentNode HTMLTableColElement
IsParentNode HTMLTableSectionElement
IsParentNode HTMLTableRowElement
IsParentNode HTMLTableCellElement
IsParentNode HTMLTableDataCellElement
IsParentNode HTMLTableHeaderCellElement
IsParentNode HTMLFormElement
IsParentNode HTMLLabelElement
IsParentNode HTMLInputElement
IsParentNode HTMLButtonElement
IsParentNode HTMLSelectElement
IsParentNode HTMLDataListElement
IsParentNode HTMLOptGroupElement
IsParentNode HTMLOptionElement
IsParentNode HTMLTextAreaElement
IsParentNode HTMLKeygenElement
IsParentNode HTMLOutputElement
IsParentNode HTMLProgressElement
IsParentNode HTMLMeterElement
IsParentNode HTMLFieldSetElement
IsParentNode HTMLLegendElement
IsParentNode HTMLScriptElement
IsParentNode HTMLTemplateElement
IsParentNode HTMLCanvasElement
#children Source
children :: forall eff n. IsParentNode n => n -> Eff (dom :: DOM | eff) HTMLCollection
The child elements for the node.
#firstElementChild Source
firstElementChild :: forall eff n. IsParentNode n => n -> Eff (dom :: DOM | eff) (Maybe Element)
The first child that is an element, or null if no such element exists.
#lastElementChild Source
lastElementChild :: forall eff n. IsParentNode n => n -> Eff (dom :: DOM | eff) (Maybe Element)
The last child that is an element, or null if no such element exists.
#childElementCount Source
childElementCount :: forall eff n. IsParentNode n => n -> Eff (dom :: DOM | eff) Int
The number of child elements.
#querySelector Source
querySelector :: forall eff n. IsParentNode n => QuerySelector -> n -> Eff (dom :: DOM | eff) (Maybe Element)
Finds the first child that is an element that matches the selector(s), or null if no such element exists.
#querySelectorAll Source
querySelectorAll :: forall eff n. IsParentNode n => QuerySelector -> n -> Eff (dom :: DOM | eff) NodeList
Finds all the child elements that matches the selector(s).