Module
DOM.Simple
- Package
- purescript-dom-simple
- Repository
- garganscript/purescript-dom-simple
Re-exports from DOM.Simple.Document
#createTextNode Source
createTextNode :: String -> Text
#createElement' Source
createElement' :: Document -> String -> Element
Creates a new DOM element of the given tag using the provided document
#createElement Source
createElement :: String -> Element
Creates a new DOM element of the given tag using the global document
Re-exports from DOM.Simple.Element
#removeEventListener Source
removeEventListener :: forall listener event. IsEventListener listener => IsEvent event => listener -> String -> Callback event -> Effect Unit
#prevElement Source
prevElement :: forall e. IsSibling e => e -> Maybe Element
Returns the previous Element sibling if any
#nextElement Source
nextElement :: forall e. IsSibling e => e -> Maybe Element
Returns the next Element sibling if any
#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
#dispatchEvent Source
dispatchEvent :: forall l e. IsEventListener l => l -> e -> Effect Unit
#childCount Source
childCount :: forall n. IsParent n => n -> Int
Returns the number of child Elements
#boundingRect Source
boundingRect :: forall e. IsElement e => e -> DOMRect
#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.Types
#IsEventListener Source
class IsEventListener :: forall k. k -> Constraint
class IsEventListener n