I have the following code in my component “mbdus.data-grid.html.twig”:
In the index.js I have registered a method:
window.addEventListener('dragenter', this.onDragEnter);
And in the console I can see my output:
onDragEnter(dragData, dropData, validDrop){
console.log('on drag enter');
console.log(dragData);
console.log(dragData.position);
console.log(this.records);
console.log(this.selection);
But this output doesn't help me. How can I change the rows? And how can I save the row positions for push them back to save them in the database?
Thanks!
But with npm install && npm build is vuedraggable not installed. I have to go into the Plugin and folder src/Resources. This is a problem when you have several Plugins and you don’t want to install all npm packages manually. Is there a better way?