Last active
August 29, 2015 14:01
-
-
Save gnosis23/8017584e1298d42cfe1b to your computer and use it in GitHub Desktop.
closure
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style type="text/css"> | |
.red .x-progress-bar{ | |
background: palevioletred none; | |
} | |
.x-progress.red { | |
border-color: #D3279C; | |
} | |
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var progressRenderer = (function(){ | |
var b = Ext.create('Ext.ProgressBar', { | |
value: tmpValue, | |
text: tmpText | |
}); | |
if(color)b.setUI(color); | |
return function() { | |
return Ext.DomHelper.markup(b.getRenderTree()); | |
} | |
})(tmpValue, tmpText, color); | |
return progressRenderer(tmpValue, tmpText, color); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
EXTJS 4 progress bar change background color