Setting IDs for components

Hi,

I’d like to set an ID attribute for my HorizontalLayout component. The goal is to have, in the client side, <div id=“myId” …> for the component.
It seems that there are some problems with the setDebugId() method. Is there any method to add the id attribute to the component.

Regards.

setDebugId is the way to set the ID on a component. There is no other way.

What problem are you seeing?

I’m sorry. It works quite well. I just forgot to add the component to its container.
setDebugId() has no problem.