select
and multi-select
filterVariants' tooltip could match label instead of value
#994
Closed
loughlinclaus3
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
Sure, make a PR if you want |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
So, when a user is filtering a column, there's a
FilterAltIcon
next to the column header. And when the user hovers their mouse over it, a tooltip pops up, saying "filtering by {header} - {filterFn} {filterValue}". This filter tooltip is defined in the code here.Now, if the column's
filterVariant
is set to eitherselect
ormulti-select
, users can also choose to provide an array of either strings or{label: string, value: string, text:string}
(note:text
is deprecated) asfilterSelectOptions
(assuming that theenableFacetedValues
is false). In the scenario that a user provides an array of{label: string, value: string, text:string}
, the tooltip displays the filterValue'svalue
, instead of the associatedlabel
. I think that the tooltip would be improved if it showed thelabel
instead of thevalue
. What are your thoughts on this?Example in current version:

Example of desired update:

Beta Was this translation helpful? Give feedback.
All reactions