TreeNode Class [PHP]

Summary

Properties Description
expand Get or set whether node is expanded or collapsed
id Get or set id of the node.
image Get or set image src of node.
showPlusMinus Get or set whether node show plusminus button (Note: For root node only)
subTreeUrl Get or set the url for loading subtree.
text Get or set content of node.
visible Get or set whether node is visible (Note: For root node only)
Methods Description
addChild Add a new childnode to the node.
addData Add hidden data to the node which can be retrived at client-side.

Properties Detail

expandTop

bool expand

Get or set whether node is expanded or collapsed

Show/Hide Code

Supported from version: 2.0.0.0

idTop

string id

Get or set id of the node.

Show/Hide Code

Supported from version: 2.0.0.0

imageTop

string image

Get or set image src of node.

Show/Hide Code

Supported from version: 2.0.0.0

showPlusMinusTop

bool showPlusMinus

Get or set whether node show plusminus button (Note: For root node only)

Show/Hide Code

Supported from version: 2.0.0.0

subTreeUrlTop

string subTreeUrl

Get or set the url for loading subtree.

Show/Hide Code

Supported from version: 2.0.0.0

textTop

string text

Get or set content of node.

Show/Hide Code

Supported from version: 2.0.0.0

visibleTop

bool visible

Get or set whether node is visible (Note: For root node only)

Show/Hide Code

Supported from version: 2.0.0.0

Methods Detail

addChildTop

void addChild(TreeNode  $node)

Add a new childnode to the node.

Show/Hide Code

Supported from version: 2.0.0.0

addDataTop

void addData(string $key, string  $value)

Add hidden data to the node which can be retrived at client-side.

Show/Hide Code

Supported from version: 2.0.0.0