StringtreeNode.click

Overview[ depends on jquery.ztree.core js ]

Simple click event operations. As same as : (onclick ="...") the code. If the operation is more complex, please use the onClick callback.

Because IE is different to other browsers in operating the event of ‘onclick’ and ‘click’ coexistence, please do not use this parameter to control whether to allow the redirection operation (for example: treeNode.click = "return false;"). If there is similar requirements, please do not use the 'url' attribute to save the website address, but use the 'onClick' callback to control jumps.

Default: undefined

String Format

Standard javascript syntax, for example: alert ("test"); etc.

Examples of treeNode

1. When click this node, will alert msg.

var nodes = [
	{ "id":1, "name":"Google CN", "url":"http://g.cn", "click":"alert('test');"},
	......
]