@softvisio/ext
Version:
ExtJS patches
14 lines (10 loc) • 355 B
JavaScript
Ext.define( null, {
"override": "Ext.Progress",
updateValue ( newValue, oldValue ) {
this.callParent( arguments );
if ( newValue !== oldValue ) this.fireEvent( "change", this, newValue, oldValue );
},
setColor ( color ) {
this.el.child( ".x-progress-bar", true ).style.backgroundColor = color || "";
},
} );