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

Question about ButtonText #2

Open
newdeal30 opened this issue Feb 12, 2020 · 4 comments
Open

Question about ButtonText #2

newdeal30 opened this issue Feb 12, 2020 · 4 comments

Comments

@newdeal30
Copy link

Hi!
First, many thanks for your great project!
One question:
I would like to change the button text (Yes,No...)
I see in your source code that you using resource files.
Wouldnt it be nice to configure the texts in ModalDialogOptions?
If you agree i would change that and make a pull request.

Regards Michael

@sprotty
Copy link
Collaborator

sprotty commented Feb 14, 2020 via email

@newdeal30
Copy link
Author

Hi Simon, happy holidays ;-)
Currently you store the button texts in a resource file.
Maybe we have a static class which holds the configuration and configure it with DI
Something like this:

services.AddModalDialog(x=> { x.BtnTextOk = "Ok"; x.BtnTextCancel = "Cancel"; });
Would this is ok for you?

@marcussacana
Copy link

I'm with the same problem, but in my case I want translate the buttons.

@marcussacana
Copy link

marcussacana commented May 23, 2020

Also, an services.AddModalDialog(x=> { x.BtnTextOk = "Ok"; x.BtnTextCancel = "Cancel"; }); will help; but if possible I want a api that allow change the text without reload the app

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

No branches or pull requests

3 participants