Jump to content

Progressbar Color


pcoenen

Recommended Posts

5 hours ago, pcoenen said:

is it possible to change the color of a progressbar

Hi,

Yes, the component is managed based on the style...

But, one possible solution, you can try to use this approach for now I think:

function afterrender(sender, eOpts)
{
    var me=sender;
    me.bar.setStyle(
        'background-image', 
        'linear-gradient(to right, green, lime)'
    );
    
    me.setStyle(
        'border-color', 
        'green'
    );
    
    var pText = me.el.select('.x-progress-text.x-progress-text-back').elements[0];
    if (pText) {
        Ext.get(pText).setStyle(
            'color', 
            'green'
        )
    }
}

progressBarColor.png.c4c0b33e4a72f939deceef5b18aa7050.png

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