javascript - Override every Combo getValue Field using common method? -


i have combos in extjs application comob box id(valuefield) html encode(because have special chars)

how can override every combo getvalue method return decode html value

note: override text-field setvalue using bellow method

ext.override(ext.form.field.base, {     transformrawvalue: function(val) {         val = ext.util.format.htmldecode(val);         return this.callparent([val]);     }   }); 

in 4.x+, overrides have different syntax.

ext.define("app.overrides.form.combobox",{     override: 'ext.form.combobox',     getvalue: function () {         return ext.util.format.htmldecode(this.value);     } }); 

Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -