EasyUI的Datagrid鼠標懸停顯示單元格內容


功能描述:table鼠標懸停顯示單元格內容

1.js函數

1 function hoveringShow(value) {
2       return "<span title='" + value + "'>" + value + "</span>";
3 }

2.調用函數

1 <table id="mydatagrid" style="width:100%;height:96%">
2     <thead>
3     <tr>
4         <th data-options="field:'code',width:150, formatter: hoveringShow">編碼</th>
5         <th data-options="field:'flowname',width:150, formatter: hoveringshow">名稱</th>
6     </tr>
7     </thead>
8 </table>

3.圖示

調用前:

            

調用后:

            

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM