In my collection there are models which I would like to exclude from being selected. Is there a way to make a checkbox non responsive to select-all event? I would like it to stay checked
and disabled
. I've tried to do it outside of the Backgrid:
@$el.find("tr.inactive")
.find(":checkbox")
.prop("disabled", true)
.prop("checked", true)
But it's overridden on each "backgrid:select-all"
event.
You may have to select all of them and then filter by the one you don't want to select. This happens a lot in sql. Something like:
.filter(function( index ) {
return !index === 'whateverSelector';
})
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.