-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple tree in view causing issue #44
Comments
@sarahm7 , Yes, I think it required a lot of changes. I will try fix repository after I finish another new pachage ( vue-tree-dnd) and take example of code from new package, because I write it clear and smart (have much more expirience since this repo) . |
@Zicrael thanks for the reply! i'm trying to fix it in my end but i'm not sure if the approach is good for you. I placed a rootId on the tree model so i can keep track which instance it is. im testing it now and if its good already i'll create a pull request later. |
@Zicrael we can't use this package for drag and drop an element between two trees? |
@RmilaWeb at the current version - no:( But I hope I will fix it in next versions. |
thanks for the reply! Can you tell me when the next version? Cause need this future. |
@sarahm7 can you make multiple tree? |
yes i was able to do it after modifying the code. although i can't do a pull request at the moment since i'm still testing it. basically you can use it like this: <app-tree [rootId]="1"> so the singleton tree-service can handle the event properly based on the rootId. i'm not sure if its the best solution though. |
@sarahm7 , @hirenkukadiya Thank you for support this. I don`t have so much time now for package, but I can make you collabarators. Also I almost finish new plugin for vue. Better, faster, a lot of functionality, I share it with you guys. |
Need help when i use multiple instance of the component the + event is not triggering on the correct component
See example codes here:
https://stackblitz.com/edit/ngx-tree-dnd-pj9zw6?file=app%2Ftree%2Ftree.component.ts
Even if i clicked the + icon on the first instance, the last instance of the component gets updated instead
The text was updated successfully, but these errors were encountered: