Functions |
| uty_treeview_start ($id, $text="", $img="", $onclick="", $ondblclick="", $ondispchange="", $tip="", $style="", $class="utytreeview") |
| uty_treeview_end () |
| uty_treeview_node_start ($text="", $img="", $last=FALSE, $children=0, $tip="", $style="", $class="utytreeview") |
| uty_treeview_node_end () |
| uty_treeview_node ($text="", $img="", $last=0, $children=0, $tip="", $style="", $class="utytreeview node") |
Detailed Description
treeview. javascript object: utyTreeview
Function Documentation
uty_treeview_node |
( |
$ |
text = "" , |
|
|
$ |
img = "" , |
|
|
$ |
last = 0 , |
|
|
$ |
children = 0 , |
|
|
$ |
tip = "" , |
|
|
$ |
style = "" , |
|
|
$ |
class = "utytreeview node" | |
|
) |
| | |
uty_treeview_node_end |
( |
|
) |
|
uty_treeview_node_start |
( |
$ |
text = "" , |
|
|
$ |
img = "" , |
|
|
$ |
last = FALSE , |
|
|
$ |
children = 0 , |
|
|
$ |
tip = "" , |
|
|
$ |
style = "" , |
|
|
$ |
class = "utytreeview" | |
|
) |
| | |
- Parameters:
-
| [text] | (string) displayed node text, default="" |
| [img] | (string) inner img src attribute, default="". (if "" img element is not rendered) |
| [last] | (bool) node is the last sibling in branch (must specify to render tree lines), default=FALSE |
| [children] | (int) used to render the tree img. 0 = leaf node | 1 = branch (collpsed) | -1 branch (expanded), default=0 |
| [tip] | (string) element title attribute, default="" |
| [style] | (string) element style attribute, default="". CSS-RESERVED-PROPERTIES background |
| [class] | (string) element class attribute, default="utytreeview node" |
- Note:
- Inside a node you can put any html EXCEPT DIV ELEMENTS (divs are child nodes)!
uty_treeview_start |
( |
$ |
id, |
|
|
$ |
text = "" , |
|
|
$ |
img = "" , |
|
|
$ |
onclick = "" , |
|
|
$ |
ondblclick = "" , |
|
|
$ |
ondispchange = "" , |
|
|
$ |
tip = "" , |
|
|
$ |
style = "" , |
|
|
$ |
class = "utytreeview" | |
|
) |
| | |
Start a treeview widget
- Parameters:
-
| id | (string) element id and javascript variable |
| text | (string) root node displayed text |
| img | (string) root node img src attribute |
| [onclick] | (string) when a node is clicked: javascript expression, default="" |
| [ondblclick] | (string) when a node is double clicked: javascript expression, default="" |
| [ondispchange] | (string) when a node is expanded or collapsed: javascript expression, default="" |
| [tip] | element title attribute, default="" |
| [style] | element style attribute, default="" |
| [class] | element class attribute, default="utytreeview" |