站长资源网络编程

extjs4 treepanel动态改变行高度示例

整理:jimmy2026/8/6浏览2
简介复制代码 代码如下: //css代码 .x-row-class{ line-height:30px; } //js代码 },{ text: '技能分配', flex: 1, width:150, dataIndex: 'skillDistribut', sortable: true, render
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;
}
},{