jquery - jQueryUI: selectable - cancel option when dragging the lasso over an element -


the cancel option on selectable following:

prevents selecting if start on elements matching selector.

is there build-in way make ignore elements if drag on them? cause cancel works if start element if start selectable element , drag lasso on 1 of canceled elements still select them.

if there isn't build-in way guess have add myself selecting event.

you can use filter option :not() selector this, example:

$(".selector").selectable({    cancel: 'li.cancelclass',    filter: 'li:not(.cancelclass)'  }); 

this prevents same cancel elements being selected in lasso either...they do selected because default filter *.


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -