Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] SHIFT behavior by default #79

Open
vascocc opened this issue Aug 6, 2019 · 4 comments
Open

[Question] SHIFT behavior by default #79

vascocc opened this issue Aug 6, 2019 · 4 comments

Comments

@vascocc
Copy link

vascocc commented Aug 6, 2019

First of all, great project. Just have a question.
I want to drag multiple times and persist those selections, the same we get with Shift pressed, but I want to achieve that as the default behavior.
Is that possible with the current code base?
I tried setting the selected cells programmatically but my cells keep flickering (They have a different color when selected). Each time I start dragging, the status of the previously selected cells is set to 'unselected'.

@d3lm
Copy link
Owner

d3lm commented Aug 7, 2019

Hey @vascocc, thanks for the feedback! I am happy to hear that you find some use case for this library.

As to your question, this is currently not supported and there is no option to enable the shift behavior by default. But I could imagine adding this as an option. For example having an additive mode that, when enabled, will not clear the previously selected items and therefore keep adding items to the selection, similar to the shift behavior.

Are you interested in implementing this option? I am happy to help you out and review your PR.

@vascocc
Copy link
Author

vascocc commented Aug 8, 2019

Hey @d3lm, I like that approach.
I'm interested but I'll just be able to do it in a couple of weeks.

@vascocc
Copy link
Author

vascocc commented Aug 28, 2019

Hey @d3lm, should I use 'additive' or 'addictive'?
I just managed to get this feature working and I'm hoping to pull this in the near future.

@d3lm
Copy link
Owner

d3lm commented Sep 2, 2019

Great, looking forward to your PR. Let's go with additive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants