erich.wanker Posted May 8, 2013 Posted May 8, 2013 Hello how can i set opacity in UniPanel? i tried out: ClientEvents / ExtEvents: UniFrame1.UniPanel1.style.opacity=0.8; UniFrame1.uniPanel1.style.opacity="0.8"; UniFrame1.UniPanel1.setValue('opacity="0.8"'); sender.style.opacity=0.8; sender.style.opacity="0.8"; sender.setValue('opacity="0.8"'); but doesn´t work .. AND: in ExtEvemts "OnCreate" doesn´t exist - where can i place the code optimal, i now use "OnMousemove" .. Thank you Erich Quote
estrify Posted May 8, 2013 Posted May 8, 2013 Go to panel's ClientEvent -> UniEvents -> OnBeforeInit and add the following: function OnBeforeInit(sender) { Ext.apply(sender, { style: 'opacity: 0.5;' }); } Regards, 1 Quote
erich.wanker Posted May 8, 2013 Author Posted May 8, 2013 Hello estrify , thank you very much :-) .. works fine. Quote
robinhodemorais Posted June 5, 2020 Posted June 5, 2020 On 5/8/2013 at 7:36 AM, estrify said: Go to panel's ClientEvent -> UniEvents -> OnBeforeInit and add the following: function OnBeforeInit(sender) { Ext.apply(sender, { style: 'opacity: 0.5;' }); } Regards, I tried to do the same in version 1531 but it didn't work .... Quote
Sherzod Posted June 6, 2020 Posted June 6, 2020 10 hours ago, robinhodemorais said: I tried to do the same in version 1531 but it didn't work .... function beforeInit(sender, config) { config.style='opacity: 0.5;'; } 1 Quote
robinhodemorais Posted June 8, 2020 Posted June 8, 2020 On 6/6/2020 at 6:06 AM, Sherzod said: function beforeInit(sender, config) { config.style='opacity: 0.5;'; } thanks Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.