|
||||||||||||||||||||||
|
||||||||||||||||||||||
|
||||||||||||||||||||||
Item BehaviorCodeThatTree allows you to specify an action that will be performed after item click event. It may be:
Structure of action object:
"action" : {
"js" : " ", // JS code - onClick event handler
"js2" : " ", // JS code - onDblClick event handler
"jsover" : " ", // JS code - onMouseOver event handler
"jsout" : " ", // JS code - onMouseOut event handler
"url" : " ", // go to URL
"target" : " ", // link target
"title" : " ", // item hint
}
Note that target can be defined globally. This may be useful when your tree is located on a frame and items should open pages on other frame. If an item is a floder, i.e. non-leaf node, action is handeled as follows:
Example - Tree ActionsYou can see an example and complete code here - Tree Actions Example [popup] |
||||||||||||||||||||||
|
||||||||||||||||||||||
© CodeThat.com, 2003-2010 |
||||||||||||||||||||||