Module
DOM.Simple.Element
- Package
- purescript-dom-simple
- Repository
- garganscript/purescript-dom-simple
#boundingRect Source
boundingRect :: forall e. IsElement e => e -> DOMRect
Re-exports from DOM.Simple.Child
Re-exports from DOM.Simple.EventListener
#removeEventListener Source
removeEventListener :: forall listener event. IsEventListener listener => IsEvent event => listener -> String -> Callback event -> Effect Unit
#dispatchEvent Source
dispatchEvent :: forall l e. IsEventListener l => l -> e -> Effect Unit
#addEventListener Source
addEventListener :: forall listener event. IsEventListener listener => IsEvent event => listener -> String -> Callback event -> Effect Unit
A little unsafe
Re-exports from DOM.Simple.Node
#textContent Source
textContent :: forall n. IsNode n => n -> String
#prevSibling Source
prevSibling :: forall n m. IsNode n => IsNode m => n -> m
Gets the previous sibling
#parentNode Source
parentNode :: forall n m. IsNode n => IsNode m => n -> m
#nextSibling Source
nextSibling :: forall n m. IsNode n => IsNode m => n -> m
Gets the next sibling
Re-exports from DOM.Simple.Parent
#lastChildElement Source
lastChildElement :: forall n. IsParent n => n -> Maybe Element
Find the last Element that is a child of the current Node, if any
#firstChildElement Source
firstChildElement :: forall n. IsParent n => n -> Maybe Element
Find the first Element that is a child of the current Node, if any
#childCount Source
childCount :: forall n. IsParent n => n -> Int
Returns the number of child Elements