erich.wanker Posted May 8, 2013 Share 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 Link to comment Share on other sites More sharing options...
estrify Posted May 8, 2013 Share 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 Link to comment Share on other sites More sharing options...
erich.wanker Posted May 8, 2013 Author Share Posted May 8, 2013 Hello estrify , thank you very much :-) .. works fine. Quote Link to comment Share on other sites More sharing options...
robinhodemorais Posted June 5, 2020 Share 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 Link to comment Share on other sites More sharing options...
Sherzod Posted June 6, 2020 Share 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 Link to comment Share on other sites More sharing options...
robinhodemorais Posted June 8, 2020 Share 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 Link to comment Share on other sites More sharing options...
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.