Module
DOM.Classy.ParentNode
- Package
- purescript-dom-classy
- Repository
- garyb/purescript-dom-classy
#IsParentNode Source
class IsParentNode n whereA class for subtypes of ParentNode.
Members
toParentNode :: n -> ParentNodefromParentNode :: ParentNode -> Maybe n
Instances
IsParentNode DocumentIsParentNode ElementIsParentNode HTMLDocumentIsParentNode HTMLElementIsParentNode HTMLHtmlElementIsParentNode HTMLHeadElementIsParentNode HTMLTitleElementIsParentNode HTMLBaseElementIsParentNode HTMLLinkElementIsParentNode HTMLMetaElementIsParentNode HTMLStyleElementIsParentNode HTMLBodyElementIsParentNode HTMLHeadingElementIsParentNode HTMLParagraphElementIsParentNode HTMLHRElementIsParentNode HTMLPreElementIsParentNode HTMLQuoteElementIsParentNode HTMLOListElementIsParentNode HTMLUListElementIsParentNode HTMLLIElementIsParentNode HTMLDListElementIsParentNode HTMLDivElementIsParentNode HTMLAnchorElementIsParentNode HTMLDataElementIsParentNode HTMLTimeElementIsParentNode HTMLSpanElementIsParentNode HTMLBRElementIsParentNode HTMLModElementIsParentNode HTMLImageElementIsParentNode HTMLIFrameElementIsParentNode HTMLEmbedElementIsParentNode HTMLObjectElementIsParentNode HTMLParamElementIsParentNode HTMLMediaElementIsParentNode HTMLAudioElementIsParentNode HTMLVideoElementIsParentNode HTMLSourceElementIsParentNode HTMLTrackElementIsParentNode HTMLMapElementIsParentNode HTMLAreaElementIsParentNode HTMLTableElementIsParentNode HTMLTableCaptionElementIsParentNode HTMLTableColElementIsParentNode HTMLTableSectionElementIsParentNode HTMLTableRowElementIsParentNode HTMLTableCellElementIsParentNode HTMLTableDataCellElementIsParentNode HTMLTableHeaderCellElementIsParentNode HTMLFormElementIsParentNode HTMLLabelElementIsParentNode HTMLInputElementIsParentNode HTMLButtonElementIsParentNode HTMLSelectElementIsParentNode HTMLDataListElementIsParentNode HTMLOptGroupElementIsParentNode HTMLOptionElementIsParentNode HTMLTextAreaElementIsParentNode HTMLKeygenElementIsParentNode HTMLOutputElementIsParentNode HTMLProgressElementIsParentNode HTMLMeterElementIsParentNode HTMLFieldSetElementIsParentNode HTMLLegendElementIsParentNode HTMLScriptElementIsParentNode HTMLTemplateElementIsParentNode HTMLCanvasElement
#children Source
children :: forall eff n. IsParentNode n => n -> Eff (dom :: DOM | eff) HTMLCollectionThe 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) IntThe 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) NodeListFinds all the child elements that matches the selector(s).