View Source Tamnoon.DOM.Actions.ReplaceNode (Tamnoon v1.0.0-rc.3)
An action that will replace the :target node with the :replacement node.
Summary
Functions
Returns whether the argument is a Tamnoon.DOM.Actions.ReplaceNode.t/0, or a map with
the necessary properties to construct one (via new!/1).
Constructs a Tamnoon.DOM.Actions.ReplaceNode.t/0 with the following arguments
Types
@type t() :: %Tamnoon.DOM.Actions.ReplaceNode{ replacement: Tamnoon.DOM.Node.t(), target: Tamnoon.DOM.Node.t() }
Functions
Returns whether the argument is a Tamnoon.DOM.Actions.ReplaceNode.t/0, or a map with
the necessary properties to construct one (via new!/1).
@spec new!(action_args :: term()) :: %Tamnoon.DOM.Actions.ReplaceNode{ replacement: term(), target: term() }
Constructs a Tamnoon.DOM.Actions.ReplaceNode.t/0 with the following arguments:
:target: aTamnoon.DOM.Node.t/0.:replacement: aTamnoon.DOM.Node.t/0.