Jump to content

Set opacity in uniPanel


erich.wanker

Recommended Posts

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

 

 

Link to comment
Share on other sites

Go to panel's ClientEvent -> UniEvents -> OnBeforeInit and add the following:

 

function OnBeforeInit(sender)

{

      Ext.apply(sender, {

            style: 'opacity: 0.5;'

      });

}

 

Regards,

  • Upvote 1
Link to comment
Share on other sites

  • 7 years later...
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 ....

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...