Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Dynamic default labels for MatSelectSearchOptions #438

Open
domestack opened this issue Sep 8, 2023 · 3 comments
Open

[FEATURE] Dynamic default labels for MatSelectSearchOptions #438

domestack opened this issue Sep 8, 2023 · 3 comments

Comments

@domestack
Copy link

domestack commented Sep 8, 2023

Is your feature request related to a problem? Please describe.
Currently I'm not able to dynamically update default labels, for example when changing language in the application using ngx-translate, without doing full application reload.

Describe the solution you'd like
MatSelectSearchOptions should be loaded dynamically (using BehaviorSubject or similar solution..)

Additional context
Please make MAT_SELECTSEARCH_DEFAULT_OPTIONS token similar to APP_INITIALIZER token where you can provide dynamically loaded values.

InjectionToken<readonly (() => Observable< MatSelectSearchOptions> >

@macjohnny
Copy link
Member

@domestack do you want to implement this?

@domestack
Copy link
Author

@domestack do you want to implement this?

I could try to.

@domestack
Copy link
Author

domestack commented Sep 25, 2023

@macjohnny Tried to implement, but I couldn't get it working with my project. I would appreciate if you could add that enhancement yourself, as I'm not very familiar with angular library development

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants