Search code examples
vaadinvaadin7

Vaadin Create <div>simple text</div> with no styles or classes?


Is this possible? Do I need to create custom componant? I simple want to create a div that just hold text and be able to change the text programatically.

Thanks :)


Solution

  • To remove the v-label style name from your Label, you could say

    label.setPrimaryStyleName("foobar");
    

    It replaces the v-label style name with foobar.