Is it possible to use an xtype inside an ExtJS template
问题 I am wondering if I can do something like this in ExtJS. I am creating my own button as an xtype and want it to be used in the table row I am creating. testTpl: Ext.DomHelper.createTemplate( { tag: 'tbody', children: [ { tag: 'tr', cls: 'test-row', children:[{ tag: 'td', cls: 'test-table-cell test-class1', html: '{value1}' }, { tag: 'td', xtype:'myxtype' cls: 'test-table-cell test-class2', html: '{value2}' }] }] }); 回答1: Its not possible to place ExtJS components inside of a extjs template.