rmariuzzo / checkboxes.js

☑️ A jQuery plugin that gives you nice powers over your checkboxes.

Home Page:http://rmariuzzo.github.io/checkboxes.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

.checkboxes({ range: true });

valVk opened this issue · comments

If shift is pressed and some of the checkboxes have been already checked, they haven't unchecked by range. You should uncheck them one by one.

Thanks @valVk for reporting this as a issue. By design I have made the range selection to only works when checking. Do you thing it would be useful to allow unchecking by range too?

Hi @rmariuzzo.
Yes, I think that feature may be usefull.
In my case, why I have reported that, I want to implement booking feature which looks like a grid. Please find attached. So, as I see, user may check and uncheck data range simply holding down shift key.

I hope my explanation is clear enough.
Attachment

Regards, Val

Ok, perfect! Thank for using your time to report this. I will add this feature in the next 24 hours.

By the moment, I'm planing to change the syntax to be:

$('#context').checkboxes('range', {
    'enable' : true,
    'allowUncheck' : true
})

Any suggestion?

@valVk your enhancement were made, tested and deployed. You can test the behaviour here: http://rmariuzzo.github.io/checkboxes.js/#range-selection-of-checkboxes