<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
execute-actiondispatched when insert executes - mostly for internal debugging purposes
detail[action] - the action object itself
detail[event] - current event object
detail[path] - a DOMNodeIndex
insertdispatched when nodes have been inserted
detail[insertedNodes] - the inserted nodes
detail[position] - the position of the insert in the nodeset
index-changeddispatch right after insertion of new nodes
detail[insertedNode] - the inserted node(s)
detail[index] - the new index

Examples