9 Mar 2012 11:34 AM #1
Am I able to use prepareData?
When using ExtJS I am able to use the prepareData method to modify variables before they are applied to a template. The Touch dataview documentation indicates there is a prepareData method but when I create a 'Basic Function' as I do when using ExtJS the designer reports
A valid function must have fn set. In addition, a function of a non top level component must match a configuration.
9 Mar 2012 12:52 PM #2
I answered my own question. The component must be promoted to a class.
9 Mar 2012 12:52 PM #3
Yes, this is a departure from Ext JS, but is the only way that it is possible in Sencha Touch.
(It's purposefully enforced that you can't override methods at the instance level)Aaron Conran