Topic: Drag and Drop plugin Save Sort Order Send To Server
cfuller free asked 3 years ago
I used to use JQuery UI to do sortable lists. However, I have the MDB5 Drag and Drop plug in in use for movable Modals, and it seems to be interacting with JQuery's #().sortable() features. I'm happy to use Drag and Drop to do it since it seems to have the functionality, but I can't find anything in the documentation about how to get the sort results that the user has changed and send it back to the server. Is there an API call or something that will return the sort-order after things have been moved?
https://mdbootstrap.com/docs/standard/plugins/drag-and-drop/#docsTabsAPI
Thanks!
Expected behavior Use the Drag and Drop plugin to rearrange a list of items. Include a submit button. When submit is selected, it will send the sort order arranged by the user to the server to save it.
Actual behavior I can't find any information on the documentation about how to save the sort order or to get it into javascript. I searched the forum and don't see anything about how to save the results.
Resources (screenshots, code snippets etc.) n/a
Dawid Wajszczuk staff answered 2 years ago
Hi,
You need to write your own function for this. It can be something like this https://mdbootstrap.com/snippets/standard/m-duszak/3501764#js-tab-view.
Keep coding,
Dawid
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Free
- Premium support: No
- Technology: MDB Standard
- MDB Version: MDB5 3.3.0
- Device: AMI Linux Server
- Browser: Chrome
- OS: Windows10
- Provided sample code: No
- Provided link: Yes