Difference between revisions of "SHIP:Sail:getChild"

From Serious Documentation
Jump to: navigation, search
(Parameters & Return Value)
Line 4: Line 4:
  
 
=== Parameters & Return Value ===
 
=== Parameters & Return Value ===
{| class="wikitable" style="margin: 1em auto 1em auto;"  
+
{| class="wikitable" style="margin: 1em 1em;"  
! scope="col" | Name
+
! scope="col" | Parameter
 
! scope="col" | Data Type
 
! scope="col" | Data Type
 
! scope="col" | Description
 
! scope="col" | Description
|-
 
|node||{{DataType|Node}}||the nth node within the parentNode's children
 
 
|-
 
|-
 
|parentNode||{{DataType|Node}}||The node to look in for children
 
|parentNode||{{DataType|Node}}||The node to look in for children
Line 15: Line 13:
 
|index||{{DataType|Integer}}||The index of the child desired in the parent
 
|index||{{DataType|Integer}}||The index of the child desired in the parent
 
|-
 
|-
 +
! scope="col" | Return
 +
! scope="col" | {{DataType|Node}}
 +
! scope="col" | nth node within the parentNode's children
 
|}
 
|}

Revision as of 16:27, 4 December 2012

Function Template:

node = getChild(parentNode, index);

Parameters & Return Value

Parameter Data Type Description
parentNode Node The node to look in for children
index Integer The index of the child desired in the parent
Return Node nth node within the parentNode's children