extjs4 treepanel动态改变行高度示例
内容摘要
复制代码 代码如下: //css代码
.x-row-class{ line-height:30px; }
//js代码
},{ text: '技能分配', flex: 1, width:150, dataIndex: 'skillDistribut', sortable:
.x-row-class{ line-height:30px; }
//js代码
},{ text: '技能分配', flex: 1, width:150, dataIndex: 'skillDistribut', sortable:
文章正文
复制代码 代码如下:
//css代码
.x-row-class{
line-height:30px;
}
//js代码
},{
text: '技能分配',
flex: 1,
width:150,
dataIndex: 'skillDistribut',
sortable: true,
renderer:function(value, metaData, record, rowIndex, columnIndex, store){
metaData.tdAttr= "data-qtip='" + value + "'";
if (record.data.outboundAmount==1) {
metaData.tdCls='x-grid-record-red';
}
return value;
}
},{
代码注释