Jump to content

Recommended Posts

Posted

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

 

 

Posted

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

 

function OnBeforeInit(sender)

{

      Ext.apply(sender, {

            style: 'opacity: 0.5;'

      });

}

 

Regards,

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

Posted
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;';
}

 

  • Like 1

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...