Skip to content

Configurable Button-Labels in Steps #3

@FabianWilms

Description

@FabianWilms

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions