W3Cschool
恭喜您成為首批注冊用戶
獲得88經(jīng)驗值獎勵
在本節(jié)的示例中,我們將向您展示如何在jQuery EasyUI數(shù)據(jù)網(wǎng)格(datagrid)中創(chuàng)建頁腳摘要,以顯示摘要信息行。
為了顯示頁腳行,您應(yīng)該將showFooter屬性設(shè)置為true,然后準備定義在數(shù)據(jù)網(wǎng)格數(shù)據(jù)中的頁腳行。以下是示例數(shù)據(jù):
{"total":1,"rows":[{"id":1,"name":"Chai","price":18.00}],"footer":[{"name":"Total","price":18.00}]}
<table id="tt" title="DataGrid" class="easyui-datagrid" style="width:400px;height:250px"
url="data/datagrid17_data.json"
fitColumns="true" rownumbers="true" showFooter="true">
<thead>
<tr>
<th field="name" width="80">Product Name</th>
<th field="price" width="40" align="right">Unit Price</th>
</tr>
</thead>
</table>
頁腳行和顯示數(shù)據(jù)行一樣,所以您可以在頁腳顯示不止一個摘要信息。
Copyright©2021 w3cschool編程獅|閩ICP備15016281號-3|閩公網(wǎng)安備35020302033924號
違法和不良信息舉報電話:173-0602-2364|舉報郵箱:jubao@eeedong.com
掃描二維碼
下載編程獅App
編程獅公眾號
聯(lián)系方式:
更多建議: