You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.
Hi I've implemented nested sortable items setup in surveys module in my project. i.e. I can sort Individual questions AND I can create an empty group, drop a single question into it and like this I fill up the group and I can sort the groups in hierarchy as well. Like this:
Wow that's a lot of code...
My first question will be whether you checked the Tree with dynamic template example found in README.
Are you defining the ui-sortable on each sub-sortable tree?
1- I checked that and that was too complex to understand. Also all of my module is working fine except these two bugs so don't wan't to replace or modify all the code base. What I think is I'm missing some little thing which is causing all this.
2- Yes. as group are added dynamically into the parent sortable array so I put a separate ui-sortable for sub-sortable trees as well. So there are 2 ui-sortable. One for parent array and one for sub-sortable array.
Hi I've implemented nested sortable items setup in
surveys module
in my project. i.e. I can sort Individual questions AND I can create an empty group, drop a single question into it and like this I fill up the group and I can sort the groups in hierarchy as well. Like this:Here's my code:
Related Functions from Controller:
Things are working pretty fine but there are few problems.
1- When there are two adjacent groups and I try to drag an individual question into upper group, it always gets added into the lower/second group.
See in the image: I added
here is the text for question
ingroup 1
but it added ingroup 2
. Model ofgroup 1
is in console2- I can't sort the questions into a group.
Can someone help me here on it. I've been trying quite hard on it.
The text was updated successfully, but these errors were encountered: