You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Custom filters registered through FilterService can include a locale during the registration.
Is your feature request related to a problem?
Currently, in the ColumnFilter component definition within the DataTable component, the computed method matchModes() returns directly for custom filters that are not present in primevue.config.filterMatchModeOptions. This results in the inability to display labels for custom filters in the dropdown filter list. In my answer on the Stack Overflow thread linked at the end of the issue, I proposed a temporary solution. However, I believe it is not elegant enough.
Describe the solution you'd like
Modify the FilterService.register() method to specify the locale when registering a filter by adding a parameter.
Describe alternatives you have considered
Modify the matchModes() method to allow custom filters to automatically find localized strings in primevue.config.locale.
Issue tracker is used for defects only as part of our commitment to quality and continuous improvement in all areas. Enhancements are collected as valuable community feedback and managed internally so moving this enhancement ticket to our internal project management backlog.
For enhancement requests and other topics, you can open a new topic in PrimeVue disccussions.
Describe the feature you would like to see added
Custom filters registered through
FilterService
can include a locale during the registration.Is your feature request related to a problem?
Currently, in the ColumnFilter component definition within the DataTable component, the computed method
matchModes()
returns directly for custom filters that are not present inprimevue.config.filterMatchModeOptions
. This results in the inability to display labels for custom filters in the dropdown filter list. In my answer on the Stack Overflow thread linked at the end of the issue, I proposed a temporary solution. However, I believe it is not elegant enough.Describe the solution you'd like
Modify the
FilterService.register()
method to specify the locale when registering a filter by adding a parameter.Describe alternatives you have considered
Modify the
matchModes()
method to allow custom filters to automatically find localized strings inprimevue.config.locale
.Additional context
Stack Overflow answer regarding this issue (authored by me)
The text was updated successfully, but these errors were encountered: