-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Storing order + resetting to that order #1765
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
Comments
You call |
I know you haven't had a chance to reply, but I went with the idea of storing the initial HTML, then using the Thanks for your help. What you wrote above was great to another single level ordering I did. :) |
G'day,
I have SortableJS working, and it's very good. I like it. :)
I have nested divs set up to show a page structure. My intent is to be able to reset the view back to it's original state. The form's
button[type=reset]
does the form, but a function to pull the order of the pages back to their initial state is what I'm missing. (I'm hoping I don't have to save the HTML, destroy the SortableJS instance, and reinstantiate.)I have included
store:{get:function(){}, set:function(){}}
but I'm unclear on how to get back to a specific point in time. Assuming I collect one of the arrays["51w","43s","4fv"]
, how to I pump that back into the object? Or have I misunderstood the objective of this?Any help would be appreciated.
The text was updated successfully, but these errors were encountered: