arvindr21 / jsTree-directive

An Angular Directive for jsTree. Docs :
http://jstree-directive.herokuapp.com/
51 stars 33 forks source link

Double click event binding #26

Open ghost opened 9 years ago

ghost commented 9 years ago

Is it possible to bind double click event from controller ?

I followed https://github.com/vakata/jstree/issues/515, but double click event was not fired.

` var myApp = angular.module('myApp', [ 'jsTree.directive']); myApp.controller('mainController', function($scope) {

// jstree double click event // https://github.com/vakata/jstree/issues/515 $(function() { console.log( "ready!", $('#mytree') ); $('#mytree').on('dblclick','.jstree-anchor', function (e) { alert("double click fired"); }); });

}) `

Mastanka commented 8 years ago

+1