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

Configurable Button-Labels in Steps #3

Open
FabianWilms opened this issue Mar 22, 2018 · 0 comments
Open

Configurable Button-Labels in Steps #3

FabianWilms opened this issue Mar 22, 2018 · 0 comments
Assignees

Comments

@FabianWilms
Copy link
Contributor

Hello!

To enhance the re-usability of this component it would be a great enhancement being able to override the button-labels for i18n purposes.

I think there are two solutions for this problem:

  1. Configuration-Object

Just like Vaadin's Date-Picker handles it, you would give the ud-stepper an Object with all the texts you would like to be replaced. The big advantage of this purpose is that, as a user of this component, you only have to define your texts and configuration once and add it to every stepper you use. Of course it's a bit more work for implementing it correctly, but it shouldn't be too hard.

  1. Configuration via property

When using the property-approach, you can add a property to each stepper (e.g. button-skip-label) and override the texts this way. This appraoch is way easier for you to implement, but it would get quite repetitive and hard to maintain when using multiple steppers with multiple steps in one application.

Kind regards
Fabian

@urdeveloper urdeveloper self-assigned this Mar 22, 2018
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

2 participants