Ext给gird每个单元格加tip

在每一列的列头加上,renderer:showTip;


{header: "<s:text name='report.enabled'/>", dataIndex: 'strEnabled', width: 0,  sortable: true ,menuDisabled : true,renderer:showTip }

 

 

 

//表格中每一列的tip提示

           function showTip(data, metadata, record, rowIndex, columnIndex, store){

                     metadata.attr ='" ext:qtip="' + data; 

                     return data;

              }

你可能感兴趣的:(ext)