Select - only one selection type at a time
Select - only one selection type at a time

When I change the selection type and click in some cell, the previous selection remains active, as can be seen by the selection description: "1 row selected 1 column selected".
I want to change this behavior to only have the last selection type active at a time. How can I do it?
This discussion has been closed.
Answers
Hi @renatopeixe ,
Sounds like you want to set
select.style
tosingle
.Thanks,
Sandy
Hi, @sandy. I want to be able to select more than one cell, row and column at a time, but I want the previous select type to be automatically deselected. For example, if I have selected a cell and change the selection type to «select row» and click in a row, I want the cell selection to be undone.
You would need to call the API for that - i.e.
columns().deselect()
, orrows().deselect()
orcells().deselect()
- before or after changing the type.Colin