getParentChildIndex

Type: Function

Deprecated!

Use XPath/XQuery to do this. Refer to the examples page for an example on how to do this.

Get the index of this node in the childNodes of the parent.

Refer to blueprintQuery for more information on how to import and use this function.

Arguments

  1. blueprint

    (Required)

    Type: Blueprint

    The blueprint to consider when evaluating relations for nodes

  2. childNode

    (Required)

    Type: Node

    The childNode to get the index of.

Returns

Type: Number

The index of the given node in the childNodes of the parent.