diff options
Diffstat (limited to 'ecomp-portal-FE/client/bower_components/jqTree/_entries/25_onismovehandle.md')
-rw-r--r-- | ecomp-portal-FE/client/bower_components/jqTree/_entries/25_onismovehandle.md | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/25_onismovehandle.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/25_onismovehandle.md new file mode 100644 index 00000000..fc904d6f --- /dev/null +++ b/ecomp-portal-FE/client/bower_components/jqTree/_entries/25_onismovehandle.md @@ -0,0 +1,17 @@ +--- +title: onIsMoveHandle +name: options-onismovehandle +--- + +You can override this function to determine if a dom element can be used to move a node. + +{% highlight js %} +$('#tree1').tree({ + data: data, + onIsMoveHandle: function($element) { + // Only dom elements with 'jqtree-title' class can be used + // as move handle. + return ($element.is('.jqtree-title')); + } +}); +{% endhighlight %} |