Extjs4 treepanel example of dynamically changing row heights

  • 2020-03-30 00:58:27
  • OfStack

 
 
//CSS code

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

//Js code

},{ 
text: ' Distribution of skills ', 
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; 
} 
},{ 

Related articles: