-
9 Mar 2012 11:34 AM #1
Am I able to use prepareData?
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
Is it possible to use prepareData? Should I create an override?A valid function must have fn set. In addition, a function of a non top level component must match a configuration.
Thanks
-
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
@aconran
Sencha Architect Development Team


Reply With Quote