getFirstChildId

gets the ID of the first child of the specified branch

string getFirstChildId(id id);

Parameters

ididthe parent (branch) ID

Returns

stringthe ID of the first child of the specified branch. If there aren't any, returns null

Example

var firstChild = tree.data.getFirstChildId(tree.getSelectedId()); 
// returns the ID of the first child of selected item

See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix ui library and page of javascript tree control product.