View Full Version : Adding custom format functions to ALL XTemplates

7 Jun 2011, 9:46 AM
I want to add my own formatters to all my XTemplates. I dug around in the source and found I can just add functions to Ext.util.Format like:

Ext.util.Format.myFormatter = function(v){
return doSomething(v)

Does anyone else do this? Is there a better (correct) way to extend the default format functions?