CirclonGroup / angular-tree-component

A simple yet powerful tree component for Angular (>=2)
https://angular2-tree.readme.io/docs
MIT License
1.1k stars 492 forks source link

Sample Drop function #824

Closed tonylodge closed 4 years ago

tonylodge commented 4 years ago

PLEASE READ CAREFULLY!

This is less of a bug and more simply help. I want to enable drag and drop but on the drop functions I want to put some rules in place that determine wether or not the nodes can be dropped there. I may be a little slow but reading the docs I see it is possible with a function, however, I do not know how to define the function in question. Any help or sample code is greatly appreciated

tonylodge commented 4 years ago

Figured it out, guess I should have looked more closely at the example code