Login Register

How to limit maximum items in a dnd Source ?

Hi . i m very new to Dojo and using its dnd functionality .. i have a problem that is i want to limit my target that after accepting 10 items it will stop accepting .. how can i do that ???

Simple: override

Simple: override checkAcceptance() method on your source, and return "false", when you reached your limit.