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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Vote Rating
    1272
      0  

    Default

    The color is pure CSS
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    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
  •