我想根据ExtReact网格中的行数据更改行背景,但在文档中找不到任何选项
发布于 2017-09-28 06:50:17
我想你是在找Ext.grid.feature.RowBody。您必须重写getAdditionalData方法并返回一个包含rowBodyCls的对象。
Ext.create('Ext.grid.Panel', {
...
features: [{
ftype: 'rowbody',
getAdditionalData: function (data, idx, record, orig) {
// Use the data/record to determine which class to apply, then
// style the row body in CSS.
return {
rowBodyCls: "my-body-class"
};
}
}],
...https://stackoverflow.com/questions/46448487
复制相似问题