Hello,
Is there any draggable components/elements demo available in Medtronic, we have to implement draggable dashboard components so if is there any demo available please provide it!
Hi,
You can refer to the Draggable plugin in the HTML version documentation. The draggable plugin can be used in Vue as other js plugins we used in Vue.
Regards
Do you have some documentation on how to implement/use in in vue?
1. Install Package:
npm install @shopify/draggable --save
Then add below mentioned code:
import { Sortable } from "@shopify/draggable";
In onMounted:
const draggable = new Sortable(document.querySelectorAll(".dragContainer"), {
draggable: ".dragAble",
handle: ".dragAble .draggable-handle",
mirror: {
//appendTo: selector,
appendTo: "body",
constrainDimensions: true
}
});
draggable.on("drag:start", () => console.log("drag:start"));
draggable.on("drag:move", () => console.log("drag:move"));
draggable.on("drag:stop", () => console.log("drag:stop"));
draggable.on("sortable:sorted", () => console.log("drag:sorted"));<pre>
Hi,
Thank you for describing this. We will consider using @shopify/draggable
package in upcoming releases.
Regards,
Lauris Stepanovs,
Keenthemes Support Team
good news, it would be also great if you could use more plugins in vue. when is the upcoming release planned?
draggable is working, but when i drop i want to update the order in backend. how can i get the new order after dropping?
hello!
Did you manage your question?
hi, no. i'm waiting for the upcoming release