Thursday, October 8, 2015
ZK: setting menuitem style programmtically
ZK's menuitem inherits setStyle but I couldn't get it work eg...
However, on the forums someone pointed out setting sclass works and then defining that class style in your zul.
eg..
in your zul:
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>
Subscribe to:
Posts
(
Atom
)