【发布时间】:2014-10-07 03:48:50
【问题描述】:
我想知道我是否可以在 ExtJS 中做这样的事情。我正在创建自己的按钮作为 xtype,并希望在我正在创建的表格行中使用它。
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}'
}]
}]
});
【问题讨论】:
标签: javascript extjs extjs4