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
Jose Ramon edited this page Mar 12, 2015
·
3 revisions
To let drag and drop to records of a model, on that model's index page (to add sort option to the model gallery see SortableGallery).
You need to:
Add include Adminpanel::Sortable concern in the model you want to make sortable.
Add a position(integer) database attribute to that model.
After that, your model is going to come sorted every time when you search and you'll have icons to update the position of the model in the models index inside the panel.