Is there any way to manage the internal state of sortable programmatically? #2273
Unanswered
SyedMSawaid
asked this question in
Q&A
Replies: 1 comment
-
You can easily obtain the internal state: When creating the Sortable instance you can tell Sortable what attribute you want to use - so you can assign a unique ID to each element: dataIdAttr: 'data-yourid' And add that data-yourid = "xxx" to each HTML element. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My rough requirements are that I want to change or order the sortable programmatically from javascript. I expect some sort of API to manage that. For instance, the Angular2-tree library has API methods to deal with it (https://angular2-tree.readme.io/docs/calling-methods-on-the-tree)
I saw a similar discussion here at #1998, but I can't find my answer.
Beta Was this translation helpful? Give feedback.
All reactions