sortablejs-vue3 icon indicating copy to clipboard operation
sortablejs-vue3 copied to clipboard

v-model support

Open VincentVanclef opened this issue 2 years ago • 3 comments

It's nice someone have taken up the torch to keep the sortablejs library available and updated for vue3, but is there no way you could introduce v-model binding?

The amount of boilerplate you have to write when you need your component in more than 1 spot is absolutely insane.

I could write my own component that wraps yours, to handle things such as sorting/add/remove and other v-model related events, but it kinda defeats the purpose of having something "out of the box"

Hope you'll consider

VincentVanclef avatar Nov 11 '22 11:11 VincentVanclef

@VincentVanclef I'm open to it, but i wrote this library specifically because I needed to handle the events in my use-case. If you want to share what the API might look like I can start hacking on it, or a PR would be welcome.

MaxLeiter avatar Nov 11 '22 20:11 MaxLeiter

@VincentVanclef I'm open to it, but i wrote this library specifically because I needed to handle the events in my use-case. If you want to share what the API might look like I can start hacking on it, or a PR would be welcome.

Sure thing, i’ll post my wrapper once i get it done

RAORelewise avatar Nov 11 '22 20:11 RAORelewise

Hey @RAORelewise, just curious if you have an update

MaxLeiter avatar Nov 24 '22 20:11 MaxLeiter