Results 1 to 2 of 2

Thread: Change progressbar colour

  1. #1
    Sencha User
    Join Date
    Nov 2011
    Posts
    27
    Vote Rating
    -1
      0  

    Default Change progressbar colour

    Hello I'm looking a simple way to change the colour of the progress bar, what I'm trying to do with it, would look like this:

    Code:
    function(progressBar, value){
    if (value<40){
    progressBar.setColor('red');
    }else if (value>=40 && value <= 80){
    progressBar.setColor('yellow');
    }else{
    progressBar.setColor('green');
    }
    }
    Then some kind of way to change the colour through the style with the method progressbar already have, setUI, or other kind of way that it could work would be great as well.

    Thanks.

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,060
    Vote Rating
    1389
      0  

    Default

    The color is pure CSS
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •