Module
Specular.Dom.Node.Class
- Package
- purescript-specular
- Repository
- restaumatic/purescript-specular
#(:=) Source
Operator alias for Foreign.Object.singleton (non-associative / precedence 8)
Convenient syntax for building Attrs
#DOM Source
class DOM node where
Members
createTextNode :: String -> Effect node
setText :: node -> String -> Effect Unit
createDocumentFragment :: Effect node
createElementNS :: Maybe Namespace -> TagName -> Effect node
setAttributes :: node -> Attrs -> Effect Unit
removeAttributes :: node -> Array String -> Effect Unit
parentNode :: node -> Effect (Maybe node)
Return parent node of the node, or Nothing if it has been detached.
insertBefore :: node -> node -> node -> Effect Unit
insertBefore newNode nodeAfter parent
InsertnewNode
beforenodeAfter
inparent
appendChild :: node -> node -> Effect Unit
appendChild newNode parent
appendRawHtml :: String -> node -> Effect Unit
Append a chunk of raw HTML to the end of the node.
removeAllBetween :: node -> node -> Effect Unit
removeAllBetween from to
Remove
from
and all nodes afterfrom
and beforeto
from their parent.to
is not removed.Assumes that
from
andto
have the same parent, andfrom
is beforeto
.moveAllBetweenInclusive :: node -> node -> node -> Effect Unit
moveAllBetweenInclusive from to parent
Moves
from
, all nodes afterfrom
and beforeto
andto
toparent
.Assumes that
from
andto
have the same parent, andfrom
is beforeto
.childNodes :: node -> Effect (Array node)
- Modules
- Control.
Monad. Cleanup - Control.
Monad. Replace - Specular.
Debug - Specular.
Dom. Browser - Specular.
Dom. Builder - Specular.
Dom. Builder. Class - Specular.
Dom. Node. Class - Specular.
Dom. Widget - Specular.
Dom. Widgets. Button - Specular.
Dom. Widgets. Input - Specular.
Dom. Widgets. RadioGroup - Specular.
Dom. Widgets. Select - Specular.
FRP - Specular.
FRP. Async - Specular.
FRP. Base - Specular.
FRP. Fix - Specular.
FRP. List - Specular.
FRP. Replaceable - Specular.
FRP. WeakDynamic - Specular.
Internal. Effect - Specular.
Internal. RIO - Specular.
Internal. UniqueMap. Mutable
Create an element, optionally with namespace.