Hi,
Am trying to change the background color of "TUniMenuButton" without success I've seen the following link
http://forums.unigui.com/index.php?/topic/5861-change-background-color-button-solved/
and I have made the same steps
the name of the control is btnTest
in the
ExtEvents:
function added(sender, container, pos, eOpts)
{
sender.addCls('bntTest');
}
in the
UniEvents:
function beforeInit(sender, config)
{
config.cls="bntTest";
}
in ServerModule
CustomCSS:
.bntTest
{
background:#1892d1 !important;
color:#fff !important;
-webkit-transition: background 0.5s ease-in-out;
transition: background 0.5s ease-in-out;
}
.bntTest:hover
{
background:#828282 !important;
-webkit-transition: background 0.5s ease-in-out;
transition: background 0.5s ease-in-out;
}
Is the above code correct or do I have to make any changes.
Regards