rmariuzzo / checkboxes.js

☑️ A jQuery plugin that gives you nice powers over your checkboxes.
http://rmariuzzo.github.io/checkboxes.js
MIT License
134 stars 25 forks source link

Support vertical 'range' mode #24

Open krychaj5 opened 7 years ago

krychaj5 commented 7 years ago

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

rmariuzzo commented 7 years ago

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

rmariuzzo commented 7 years ago

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?

krychaj5 commented 7 years ago

That makes the job! Thanks man ;)

rmariuzzo commented 7 years ago

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

Stadly commented 4 years ago

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