Web.Chain.DOM
- Package
- purescript-web-chain
- Repository
- david-sledge/purescript-web-chain
DOM manipulation tools that can be chained together.
#appendNodes Source
appendNodes :: forall m p f. Foldable f => MonadEffect m => NodeOp p => f (m Node) -> p -> m pExtracts child nodes from a Foldable of continuations and appends them to
a parent node. Returns the given parent node.
#appendNodesM Source
appendNodesM :: forall m p f. NodeOp p => Foldable f => MonadEffect m => f (m Node) -> m p -> m pExtracts child nodes from a Foldable of continuations and appends them to
a monadic parent node. Returns the given parent node.
#appendsNodes Source
appendsNodes :: forall m p f. NodeOp p => Foldable f => MonadEffect m => p -> f (m Node) -> m p#appendsNodesM Source
appendsNodesM :: forall m p f. NodeOp p => Foldable f => MonadEffect m => m p -> f (m Node) -> m p#detach Source
detach :: forall c m. MonadEffect m => NodeOp c => c -> m cDetatches a node from its parent node and returns the detached node. Descendant nodes and event listeners are not affected. The detatched node is returned.
#detachM Source
detachM :: forall c m. MonadEffect m => NodeOp c => m c -> m cDetatches a node from its parent node and returns the detached node. Descendant nodes and event listeners are not affected. The detatched node is returned.
#doc Source
doc :: forall m. MonadEffect m => m HTMLDocument#empty Source
empty :: forall m p. MonadEffect m => NodeOp p => p -> m pCalls remove on the all of the node's children. The emptied node is
returned.
#emptyM Source
emptyM :: forall m p. MonadEffect m => NodeOp p => m p -> m pCalls remove on the all of the node's children. The emptied node is
returned.
#remove Source
remove :: forall c m. MonadEffect m => NodeOp c => c -> m cCalls detach on the node and its descendants, and in addition removes all
event listeners from the detached node and descendants. The event listners
are removed provided that they were added using Web.Event.Class.EventTargetOp.on or
derivation thereof such as Web.Event.Class.EventTargetOp.change or
Web.Event.Class.EventTargetOp.ready. The removed node is returned.
#removeM Source
removeM :: forall c m. MonadEffect m => NodeOp c => m c -> m cCalls detach on the node and its descendants, and in addition removes all
event listeners from the detached node and descendants. The event listners
are removed provided that they were added using Web.Event.Class.EventTargetOp.on or
derivation thereof such as Web.Event.Class.EventTargetOp.change or
Web.Event.Class.EventTargetOp.ready. The removed node is returned.
#rmAttr Source
rmAttr :: forall m e. MonadEffect m => ElementOp e => String -> e -> m eRemoves an attribute from an element. The element is returned.
#rmAttrM Source
rmAttrM :: forall m e. MonadEffect m => ElementOp e => String -> m e -> m eRemoves an attribute from an element. The element is returned.
- Modules
- Data.
Array. Effect - Data.
List. Util - Data.
Map. Effect - Web.
CSSOM. Lifted. CSSStyleDeclaration - Web.
CSSOM. Window - Web.
Chain - Web.
Chain. CSSOM - Web.
Chain. DOM - Web.
Chain. Event - Web.
Chain. HTML - Web.
Chain. HTML. Class. HTMLAbleOp - Web.
Chain. HTML. Class. HTMLValueContainerOp - Web.
Chain. HTML. Util - Web.
Chain. UI. UISortableTable - Web.
Chain. UI. UITabPane - Web.
DOM. Class. CharacterDataOp - Web.
DOM. Class. DocumentOp - Web.
DOM. Class. ElementOp - Web.
DOM. Class. NodeOp - Web.
DOM. Class. TextOp - Web.
Event. Class. EventTargetOp - Web.
HTML. Class. HTMLElementOp - Web.
HTML. Lifted. HTMLDocument