-
Notifications
You must be signed in to change notification settings - Fork 279
Description
Discussed in #6907
Originally posted by FRicardi April 11, 2023
When I was studying about ViewSettingsDialog, I was wondering how to deal with the event details object. I see that it uses the text
property to populate the object's keys, which can be troublesome on cases that uses i18n to display the texts.
I believe that there's a workaround that involves using the translations as key maps, but I wonder if there's an easier way to manipulate filter and sort keys to avoid these kinds of workarounds.
Have someone stumbled upon this problem as well? What are the possible solutions?
https://codesandbox.io/s/table-filter-sort-and-grouping-7w389k?file=/src/App.js
On the ViewSettingsDialog component, text of the filter items is used as a key on the event.details.filters
object, same with sort
and sortOrder
. On the sort
object, we have a sortItem
which allows usage of HTML id
keys to sort.
In terms of maintainability of the codebase, it would be really helpful to have the option to use a proper key on the objects.
UI5-webcomponents codesandbox kindly created by @Lukas742 : https://codesandbox.io/s/ui5-webcomponents-forked-bg03lg?file=/index.html
Metadata
Metadata
Assignees
Type
Projects
Status