Home >Web Front-end >JS Tutorial >extjs4 treepanel dynamically changes row height example_extjs

extjs4 treepanel dynamically changes row height example_extjs

WBOY
WBOYOriginal
2016-05-16 17:08:441186browse
extjs4 treepanel dynamically changes row height example_extjs
Copy code The code is as follows:

//css code

.x-row-class{
line-height:30px;
}

//js code

},{
text: 'Skill allocation',
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;
}
},{
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn