Vue.draggable: How to customize limit item drop ?

Created on 19 Oct 2017  路  5Comments  路  Source: SortableJS/Vue.Draggable

Hello it's nice component! Any way that I can limit user drop the item to list2 ? example I want to limit only 5 items only allowed user can drop.

Thanks

question

Most helpful comment

<draggable :options="{disabled: list.lenght<=5}">
</draggable>

All 5 comments

Take a look at disabled option and move prop, you should be able to implement what you are looking for.

Hi thanks for replied. again how can I trigger user object which user dropped ( on function ) that object item ? thanks

@David-Desmaisons I still didn't find where I can trigger user drag item from list push to list2 ? I do need check condition before user can drag item from list to list2.

thanks for replied.

<draggable :options="{disabled: list.lenght<=5}">
</draggable>

thank you so much!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fedenko picture fedenko  路  3Comments

ghost picture ghost  路  3Comments

parthibeyond picture parthibeyond  路  3Comments

mathlet0x picture mathlet0x  路  4Comments

steffanhalv picture steffanhalv  路  3Comments