<fx-insert>

Description

Action to insert node(s) into instance data.

Attributes

NameDescriptionDefault
atindex position in nodeset where to insert new node(s)0
contextoptional XPath pointing to parent node of node to insert
positionwith regard to ‘at’ can be either ‘before’ or ‘after’after
originXPath pointing to nodes to be inserted into referenced nodeset
keepValuesBoolean attribute. When present will keep text-values of origin nodesfalse
refXPath pointing to node(s) to insert. If context is given ref is relative to that

Events

NameDescription
insertdispatched when nodes have been inserted
detail[insertedNodes] - the inserted nodes
detail[position] - the position of the insert in the nodeset

Examples