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

New Line from resource bundle in Wizardsteps #32

Open
dominikguhr opened this issue Apr 17, 2018 · 0 comments
Open

New Line from resource bundle in Wizardsteps #32

dominikguhr opened this issue Apr 17, 2018 · 0 comments

Comments

@dominikguhr
Copy link

dominikguhr commented Apr 17, 2018

Hi there, so I am using Vaadin 8 and I am trying to create a step-caption with a line-break. Simple as this sounds, it seems not to work. I tried \n, <br>, <br />, and this approach .

My getCaption looks like this:

 @Override
    public String getCaption() {
        return MyUI.getCurrent().getResString("view.event.step1.title");
    }

And the resource bundle like this:
view.event.step1.title=This is my too long
title

So after looking at the code of this plugin, would it be possible to change WizardProgressbar.Java's "createCaptionLabel" method to use ContentMode.HTML as stated here? https://vaadin.com/forum/message/9327916 I think this would do the trick.

Would be absolutely great!

If there's another way, would be nice to tell me ;) thanks!

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

1 participant