Index

(treeview)

o2tree_def

o2_ctrl_tree o2tree_def(string $name, array $structure, integer $activation, string $action)


ATTENTION: Treeview scripting definition and usage are DEPRECATED. Use a Treeview control from development interface (JXOB) instead.

Defines a treeview control in the current program.
$structure can be an array of nodes to fill-up treeview on creation. Array is in the form:
array($node1_id => array($parent_id, $html_code, icon_file),
$node2_id => array($parent_id, $html_code, icon_file),
...,
$nodeN_id => array($parent_id, $html_code, icon_file))


Parameters:
  1. $name
  2. Control unique name
  3. $structure
  4. Tree view structure array
  5. $activation
  6. Active nodes 0=None|1=All|2=Leavs|3=Folders
  7. $action
  8. Action to be executed on nodes activation