ExtJS doesn’t provide API to change progress bar dynamically. However, it’s not too diffcult to make it possible by changing CSS dynamically. In the following example, we implement a lister for update event, which change CSS according to the value of progress bar.
blue progress bar if value < 0.5
red progress bar if value >= 0.5
It’s tested on Firefox 16, Chome 22, and IE 9 with ExtJS 4.1.1a.
| progressbar.htm |
| <html> <script type="text/javascript"> Ext.require([ </script> <style type="text/css"> .x-progress-blue .x-progress-bar { |