Topic: Drag and Drop plugin Save Sort Order Send To Server
cfuller priority asked 1 year 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?
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.
Resources (screenshots, code snippets etc.) n/a
Dawid Wajszczuk staff answered 1 year ago
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.
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
- User: Priority
- Premium support: Yes
- Technology: MDB Standard
- MDB Version: MDB5 3.3.0
- Device: AMI Linux Server
- Browser: Chrome
- OS: Windows10
- Provided sample code: No
- Provided link: Yes