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

Deselect Cell From Range #4448

Open
ailton-lopes opened this issue Mar 29, 2024 · 0 comments
Open

Deselect Cell From Range #4448

ailton-lopes opened this issue Mar 29, 2024 · 0 comments
Labels
Suggested Feature A suggested feature that is waiting review

Comments

@ailton-lopes
Copy link

Hello,

Describe the bug/suggestion
I would like to make a suggestion for improving the Selectable Cell Range functionality, including an option to check if the cell is already part of a range or disregard it if Ctrl + Mouse Click is pressed.

Tabulator Info

  • 6.0.1

Examples:

  • pressing ctrl + click on the same cell 5 times, the table.getRanges() function returns length=5 with the same targets (start/end). This also occurs if you press Ctrl + drag the mouse in the same range range. The same cells are considered in the ranges
  • does not allow deselecting a cell/cells within a range by pressing Ctrl + Mouse Click

To Reproduce
https://tabulator.info/examples/6.1#range
1- select range from the 'Progress' column from line 2 to 5
2- press Ctrl + Mouse Click to deselect any cell in the range. Do not deselect.
3- Selects range from line 1 to line 5, from the Name column to the Rating column. Now press Ctrl + Mouse Click on row 2, from the Name column to the Rating column. It will not deselect. And if you use the table.getRanges() function, it will return 2 ranges

Screenshots
image
image

Desktop (please complete the following information):
OS: Windows 10
Browser Chrome, Edge

Tanks

@ailton-lopes ailton-lopes added the Suggested Feature A suggested feature that is waiting review label Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Suggested Feature A suggested feature that is waiting review
Projects
None yet
Development

No branches or pull requests

1 participant