extjs4 treepanel动态改变行高度示例


 
复制代码 代码如下:

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

« 
» 
快速导航

Copyright © 2016 phpStudy | 豫ICP备2021030365号-3