Jump to content

Recommended Posts

Posted

i need to change default background color of the Theme used : uni_sencha in Ext.tip.ToolTip

i tried

function afterrender(sender, eOpts)
{
   Ext.create('Ext.tip.ToolTip', {
   target: sender.getEl(),
   showDelay:50,
   hideDelay:50,
   html: '<span class="hintClass">Note Pratica</span>'
  });
}

in Custom.css

.hintClass {
    background-color: #096EA9!important;
    border: 1px solid #096EA9;
}
 

but I always have a border with the original color around the message

 

Thanks for the help

Angelo

 

 

 

Cattura.JPG

Posted
20 minutes ago, azago said:

i need to change default background color of the Theme used : uni_sencha in Ext.tip.ToolTip

Hello,

You can try to use componentCls property.

function afterrender(sender, eOpts) {
    Ext.create('Ext.tip.ToolTip', {
        target: sender.getEl(),
        showDelay: 50,
        hideDelay: 50,
        componentCls: 'customTip',
        html: '<span class="hintClass">Note Pratica</span>'
    });
}

CustomCSS:

.customTip {
  border-color: green;
  background-color: limegreen;
}

 

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