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

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

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -