Topic: Sortable is not defined
Espen Rønning priority asked 2 years ago
Expected behavior const instanceSortable = Sortable.getInstance(sortableElement); This should get the sortable instance of the element sortableElement
Resources (screenshots, code snippets etc.) https://mdbootstrap.com/snippets/standard/ererling-sande-no/3040842#js-tab-view
The snippet is built from Drag & Drop API documentation: https://mdbootstrap.com/docs/standard/plugins/drag-and-drop/#api-section-methods
Thank you for your feedback. I see this option is not working properly. I am currently working on locating the problem, and fixing it as fast as we can.
Next question - how to update the list of sortable elements? Nothing happens when you press Add Element (exept for the alert message).
Now it's correct and working. Sortable element didn't have an ID, and I had to look in the DragAndDrop module to get Sortable
<div id="sortable" data-mdb-sortable="sortable">
const instanceSortable = DragAndDrop.Sortable.getInstance(sortableElement);
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.5.0
- Device: PC
- Browser: Google Chrome
- OS: Windows 10
- Provided sample code: No
- Provided link: Yes