ezraroi / ngJsTree

Angular Directive for the famous JS Tree
http://ezraroi.github.io/ngJsTree/
MIT License
270 stars 101 forks source link

attach separate dnd_stop.vakata event to different selectors #139

Closed kpetrow closed 3 years ago

kpetrow commented 3 years ago

I have multiple trees, one is a file browser that is available in multiple places/pages(gloabally available) and others are for a page specific feature. The dnd_stop.vakata stop handlers are different for these trees. Is there anyway to attach the handlers to the parent div's? or to add a selector on the "on" handler? none of these work:

$j(document).on('dnd_stop.vakata','#project_manager_body',function(){ })
$j('#project_manager_body').on('dnd_stop.vakata',function(){ })