View Source Tamnoon.DOM.Actions.AddChild (Tamnoon v1.0.0-rc.3)

An action that will append the :child node to the :parent node's children.

Summary

Functions

Returns whether the argument is a Tamnoon.DOM.Actions.AddChild.t/0, or a map with the necessary properties to construct one (via new!/1).

Constructs a Tamnoon.DOM.Actions.AddChild.t/0 with the following arguments

Types

@type t() :: %Tamnoon.DOM.Actions.AddChild{
  child: Tamnoon.DOM.Node.t(),
  parent: Tamnoon.DOM.Node.t()
}

Functions

@spec is_valid?(action_args :: any()) :: boolean()

Returns whether the argument is a Tamnoon.DOM.Actions.AddChild.t/0, or a map with the necessary properties to construct one (via new!/1).

@spec new!(action_args :: term()) :: %Tamnoon.DOM.Actions.AddChild{
  child: term(),
  parent: term()
}

Constructs a Tamnoon.DOM.Actions.AddChild.t/0 with the following arguments: