atatanasov / gijgo

Gijgo - Free Javascript Controls
http://gijgo.com
MIT License
475 stars 187 forks source link

Tree - missing method 'setDragAndDrop(value )' #164

Open stvowi opened 6 years ago

stvowi commented 6 years ago

I missing a method to toggle between "Drag and Drop" Mode and normal display mode. I would like offer my users a toggle button for easy editing (moving nodes) and switch back to the normal display mode where is dragAndDrop = false.

Reason... It is not passible to select a node...there is no select event.

 <script>
     var tree = $('#tree').tree({
         dataSource: '/Locations/Get',
         dragAndDrop: true,
         uiLibrary: 'bootstrap'
     });
   tree.on('select', function (e, node, id) {
         alert(''select is fired & don't work here.');
     });
 </script>
atatanasov commented 6 years ago

we are going to add edit mode in future version. Thanks for the feedback.

stvowi commented 6 years ago

It's okay! Please implement the missing methods which I told you as soon as possible.

stvowi commented 6 years ago

I need this feature in my actual project.

atatanasov commented 6 years ago

This is planned for version 1.7.0, that is coming in November.

bvmatt commented 6 years ago

I am running into the same issue where I need to toggle between drag and drop and being able to select nodes and edit them. I don't see this method in 1.7.3. Is there a way to toggle dragAndDrop true/false?