Jump to content

Making htmlframe transparent


mhmda
 Share

Recommended Posts

Hi,

 

If you want UniHTMLFrame transparent then put this code in clientevents->extjevents->added

function added(sender, container, pos, eOpts)
{
  var html=sender.id;
  html=html+'-body';
  Ext.Function.defer(function(){
   document.getElementById(html).setAttribute('style', 'background-color:transparent !important');
   }, 100, this, []);
  
}

Have fun :- )

  • Upvote 1
Link to comment
Share on other sites

  • 1 year later...
ClientEvents:
 
1.
function added(sender, container, pos, eOpts)
{
  sender.addBodyCls('trans_panel');
}

2. OR - UniEvents->beforeinit:

config.BodyCls='trans_panel';

ServerModule->CustomCSS:

 

.trans_panel
{
 background-color:transparent !important;
}

 

 

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.

 Share

×
×
  • Create New...