Skip to content

Instantly share code, notes, and snippets.

@gnosis23
Last active August 29, 2015 14:01
Show Gist options
  • Save gnosis23/8017584e1298d42cfe1b to your computer and use it in GitHub Desktop.
Save gnosis23/8017584e1298d42cfe1b to your computer and use it in GitHub Desktop.
closure
<style type="text/css">
.red .x-progress-bar{
background: palevioletred none;
}
.x-progress.red {
border-color: #D3279C;
}
</style>
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);
@gnosis23
Copy link
Author

EXTJS 4 progress bar change background color

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment