Sortable
Sortable copied to clipboard
Is there any way to limit the amount of items in a list?
Hi,
I'm using sortablejs and i love it so far! I'm just wondering if there is a way too limit the amount of items that can be placed in a list at one time?
Hmm, i was a bit too hasty with posting my question it seems... ;) Just found a way. If anyone is curious, i simply check the length of the list array and then change 'put' value in options to false or true according to the length.
Please can you post your code so we can understand what you were trying to communicate
You can also set put to a function to check this