Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add a CSS style ID (not only CSS style class) in Vaadin

Tags:

css

vaadin

I would like that my Vaadin components be set a style id:

<div id="menu"> ... </div>

and not only a style class:

<div class="menu"> ... </div>

Anyone have an idea? Thanks.

like image 691
Jean-Eric Avatar asked Feb 08 '11 10:02

Jean-Eric


1 Answers

So you would want to set an ID yourself, or that Vaadin set them for you?

You can set ID’s yourself using the setDebugId method for each component instance. Do note, that each ID should be unique for each individual component instance.

like image 80
Jouni Avatar answered Nov 15 '22 04:11

Jouni