我不想在 ext 网格面板中添加 ext 面板而不是 html。我现在拥有的是这样的:
features: [{
ftype: 'rowbody',
getAdditionalData: function (data, rowIndex, record, orig) {
var headerCt = this.view.headerCt,
colspan = headerCt.getColumnCount();
// Usually you would style the my-body-class in CSS file
return {
rowBody: '<div style="padding: 1em">' + record.get("description") + '</div>',
rowBodyCls: "my-body-class",
rowBodyColspan: colspan
};
}
}],
但我希望包含一个标准面板,而不是 rowBody,这样我就可以添加按钮和其他布局。
这可能吗?