Menuitem menuItem = new Menuitem("Foo")); menuItem.setStyle("font-weight:bold");
However, on the forums someone pointed out setting sclass works and then defining that class style in your zul.
eg..
Menuitem menuItem = new Menuitem("Foo")); menuItem.setSclass("itembold");
in your zul:
<style> .itembold .z-menuitem-text {font-weight: bold} </style>
No comments :
Post a Comment