evidence icon indicating copy to clipboard operation
evidence copied to clipboard

[Feature]: Support selecting multiple dimensions in dimension grid

Open mcrascal opened this issue 1 year ago • 3 comments

Description

Support selecting multiple of the same dimension in dimension grid

What problem would this solve?

I want to select three provinces as a group and include them in a filter selection

How should it work?

UI: Either shift click enables selecting multiple dimensions or just clicking a second one is supported.

API: boolean multiple prop defaulted to false, same as drop down

input store: multiple province dimensions selected: (province = 'ontario' or province = 'quebec') and language = 'en'

mcrascal avatar Jul 08 '24 12:07 mcrascal

Either shift click enables selecting multiple dimensions or just clicking a second one is supported.

Just clicking a second one will work on mobile, shift click wont.

if you also have some kind of "Clear Selection" button per dimension this feels like it would work great

archiewood avatar Jul 08 '24 15:07 archiewood

Hi @mcrascal just wanted to clarify a few things,

could we allow user to pass a multiple prop, which allows multiple rows within a column to be selected on single click, user can removed row selections in a column by single click again, as well as add a clear all button.

i think one clear all button should clear all columns, resetting the filter query to true

Alternatively, if we want the clear all for each column, maybe we can make it appear on hover so they are only there when the user is interacting with an individual column. We can call it just clear

Image

kwongz avatar Jul 22 '24 20:07 kwongz

@kwongz

could we allow user to pass a multiple prop, which allows multiple rows within a column to be selected on single click, user can removed row selections in a column by single click again, as well as add a clear all button.

That sounds perfect!

i think one clear all button should clear all columns, resetting the filter query to true Alternatively, if we want the clear all for each column, maybe we can make it appear on hover so they are only there when the user is interacting with an individual column. We can call it just clear

I suspect we don't need a clear button, but I'd have to play with it. I don't think we'll need clear buttons for every column.

mcrascal avatar Jul 23 '24 01:07 mcrascal