-
7 Jun 2011 9:46 AM #1
Adding custom format functions to ALL XTemplates
Adding custom format functions to ALL XTemplates
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:
Does anyone else do this? Is there a better (correct) way to extend the default format functions?Code:Ext.util.Format.myFormatter = function(v){ return doSomething(v) };


Reply With Quote