checkboxes.js icon indicating copy to clipboard operation
checkboxes.js copied to clipboard

Support vertical 'range' mode

Open krychaj5 opened this issue 8 years ago • 5 comments

Hi! I have multiple visible columns with checkboxes, I need to multiple check checkboxes only in one column, now when I'm starting checking from upper checkbox in middle column (see pic), pressing shift and clicking down checkbox in middle column, It's checking checkboxes in all columns.

Is there any option to make check only middle column?

image

Thanks for your attention

krychaj5 avatar Jul 05 '17 20:07 krychaj5

🤔 Interesting scenario you have there, give me a couple of mins.

rmariuzzo avatar Jul 05 '17 20:07 rmariuzzo

I have checked if I could easily handle your specific scenario with the plugin, but I couldn't.

Check this demo, and tell me if it is that what you are looking for: https://plnkr.co/edit/lsJvQMGJ1tfLtMnDwkkn?p=preview

The API usage would be:

$('table').checkboxes('range', true, 'col.a :checkbox');
$('table').checkboxes('range', true, 'col.b :checkbox');
$('table').checkboxes('range', true, 'col.c :checkbox');

@krychaj5 what do you think?

rmariuzzo avatar Jul 05 '17 20:07 rmariuzzo

That makes the job! Thanks man ;)

krychaj5 avatar Jul 05 '17 21:07 krychaj5

@krychaj5 I still have to create a new release with this feature included. I will focus on that later, probably this week.

rmariuzzo avatar Jul 05 '17 22:07 rmariuzzo

Any reason for waiting with releasing this? Would be really useful!

Stadly avatar Jun 29 '20 12:06 Stadly