Skip to content
This repository has been archived by the owner on Nov 27, 2019. It is now read-only.

Feature request: limit items to be dropped in a list #11

Closed
rbatllet opened this issue Jul 15, 2015 · 2 comments
Closed

Feature request: limit items to be dropped in a list #11

rbatllet opened this issue Jul 15, 2015 · 2 comments

Comments

@rbatllet
Copy link

I need to avoid adding more then x elements in a list. It would be great if it's configurable.

@luckylooke luckylooke added this to the 1.5.0 milestone Jul 15, 2015
@jameswyse
Copy link
Collaborator

You can do this with the accepts option

accepts: function (el, target, source, sibling) {
  return target.children.length < 5;
}

Demo: http://codepen.io/jameswyse/pen/JdBPJd

@luckylooke
Copy link
Owner

@jameswyse solution is sufficient enough, so implementing feature is not necessary.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants