当前位置:Gxlcms > JavaScript > extjs4 treepanel动态改变行高度示例

extjs4 treepanel动态改变行高度示例

时间:2021-07-01 10:21:17 帮助过:30人阅读

 
代码如下:

//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;
}
},{

人气教程排行