Module

DOM.Simple.Parent

Package
purescript-dom-simple
Repository
garganscript/purescript-dom-simple

#childCount Source

childCount :: forall n. IsParent n => n -> Int

Returns the number of child Elements

#children Source

children :: forall n. IsParent n => n -> Array Element

Returns an array of the child Elements

#firstChildElement Source

firstChildElement :: forall n. IsParent n => n -> Maybe Element

Find the first Element that is a child of the current Node, 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

#append Source

append :: forall n. IsParent n => n -> Array Element -> Effect Unit

#prepend Source

prepend :: forall n. IsParent n => n -> Array Element -> Effect Unit

#querySelector Source

querySelector :: forall n. IsParent n => n -> String -> Effect (Maybe Element)

#querySelectorAll Source

querySelectorAll :: forall n. IsParent n => n -> String -> Effect (Array Element)