UNPKG

@softvisio/ext

Version:
14 lines (10 loc) 355 B
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 || ""; }, } );