Phantom Documentation

[Help Home] [Phantom Home]
Collapse

window.Collapse(sItem[.sSubItem1...]);

Applicable Classes: TreeView

Parameters:
string sItem - The name of the item.
string(s) sSubItem - A list of items under the base item in the tree, each separated by a period.  Each item is a subsequent level in a tree.
Return Value: None.

Description:
Collapses the specified TreeView item.  Sub, or Child items, are accessed similarly to menu items.  Each parent is separated from the child by a period.  For example, if you had a tree that looked like this:

Item1
            Sub1
                        Sub1Sub1
            Sub2

and you wanted to access Sub1Sub1, the parameter would be 'Item.Sub1.Sub1Sub1'.  Collapsing item 'Sub1' would make the above tree look like:

Item1
            Sub1
            Sub2

For an example, see TreeView Functions.


See Also: TreeView Functions



Copyright 2000-2011 Phantom Automated Solutions