Classes
Type Definitions
-
otris.treechart.ActionScriptstring
-
Script command for executing an action. The following commands are available:
showFile:fileIdrunScript:scriptName (return needs to be a TreeChart)showFolder:folderIdclientFunction:functionNameOnly available if TreeChart is used as a gadget (otris.gadget.gui.TreeChart)
The client function is called with the following object as parameter
{nodeId: "[nodeId]", nodeLabel: "[nodeLabel]", eventName: "[click|dblClick|rightClick]"}
Example
showFile:ims_fi20150000001783 // "88:392091" is a folder id showFolder:88:392091 runScript:imsScript -
otris.treechart.EdgeObject
-
Specifies the edge between two
otris.treechart.TreeNode. nodeId is the id
of the childotris.treechart.TreeNode. For every child there has to be
a corresponding property having the same name as the id of the child node.Properties:
Name Type Description nodeIdotris.treechart.EdgeLabel Label of the edge
Example
var edge = { "1": { label: "edge 1" }, "2"; { label: "edge 2" } }; -
otris.treechart.EdgeLabelObject
-
Label of an edge between two
otris.treechart.TreeNode.Properties:
Name Type Description labelstring Labe of the edge
-
otris.treechart.EventHandlersObject
-
Event handlers on a
otris.treechart.TreeNode.Properties:
Name Type Description clickotris.treechart.ActionScript Action for handling the click event
dblClickotris.treechart.ActionScript Action for handling the double click event
rightClickotris.treechart.ActionScript Action for handling the right click event
-
otris.treechart.Orientationstring
-
Code for the orientation of the tree. Allowed values are
LR(left to right) andTB(top to bottom) -
otris.treechart.SkinObject
-
Style definition for a
otris.treechart.TreeNode.Properties:
Name Type Description Colorstring code for node color
borderColorstring Color code for the border of a node
fontstring Name of the font for the node's label
fontColorstring Color code for the node's label
fontSizenumber Font size for the node's label
borderRoundnessnumber Radius if the corner should be rounded
vMarginnumber Vertical margin of the label to the node's border
hMarginnumber Horizontal margin of the label to the node's border
leafRenderingstring Code how leafs should be rendered
highlightColorInstring Color code for highlighted node
highlightColorOutstring Color code for de-highlighting a node