View Source Tamnoon.DOM.Actions.ForEach (Tamnoon v1.0.0-rc.3)
An action that will trigger the :callback action on each element in the
collection :target.
Summary
Functions
Returns whether the argument is a Tamnoon.DOM.Actions.ForEach.t/0, or a map with
the necessary properties to construct one (via new!/1).
Constructs a Tamnoon.DOM.Actions.ForEach.t/0 with the following arguments
Types
@type t() :: %Tamnoon.DOM.Actions.ForEach{ callback: struct(), target: Tamnoon.DOM.NodeCollection.t() }
Functions
Returns whether the argument is a Tamnoon.DOM.Actions.ForEach.t/0, or a map with
the necessary properties to construct one (via new!/1).
Sidenote: this does not verify that the callback is actually an action, just that it is a struct.
@spec new!(action_args :: term()) :: %Tamnoon.DOM.Actions.ForEach{ callback: term(), target: term() }
Constructs a Tamnoon.DOM.Actions.ForEach.t/0 with the following arguments:
:target: aTamnoon.DOM.NodeCollection.t/0.:callback: any Tamnoon action.