Instead of having a control where we concatenate a huge HTML string, I'd like to separate the XTemplate object into its own file. The problem is that I don't know how to set the template text in this class. Normally, you'd create a new XTemplate object in-line and pass the template text as the first parameter.
Is this possible? What property should I be setting?
/**
* Custom XTemplate
*/
Ext.define('MyApp.view.MySuperDuperXTemplate', {
extend: 'Ext.XTemplate',
xtype: 'mySuperDuperXTemplate',
html: 'Does the template text go here?',
text: 'That didn\'t work, let me try this...',
tpl: 'How about this? No?...'
});