Categories: jQuery EasyUI 教程

jQuery EasyUI 数据网格 – 创建页脚摘要

jQuery EasyUI 数据网格 – 创建页脚摘要

在本节的示例中,我们将向您展示如何在jQuery EasyUI数据网格(datagrid)中创建页脚摘要,以显示摘要信息行。

为了显示页脚行,您应该将showFooter属性设置为true,然后准备定义在数据网格数据中的页脚行。以下是示例数据:

 {"total":1,"rows":[{"id":1,"name":"Chai","price":18.00}],"footer":[{"name":"Total","price":18.00}]}

创建数据网格(DataGrid)

 <table id="tt" title="DataGrid" class="easyui-datagrid" style=""  
            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>

页脚行和显示数据行一样,所以您可以在页脚显示不止一个摘要信息。

下载 jQuery EasyUI 实例

jeasyui-datagrid-datagrid17.zip

唐伯虎点蚊香

前端小白,想各位学习!

Share
Published by
唐伯虎点蚊香

Recent Posts

聊聊vue3中的defineProps

在Vue 3中,defineP…

5 天 ago

在 Chrome 中删除、允许和管理 Cookie

您可以选择删除现有 Cooki…

1 周 ago

自定义指令:聊聊vue中的自定义指令应用法则

今天我们来聊聊vue中的自定义…

2 周 ago

聊聊Vue中@click.stop和@click.prevent

一起来学下聊聊Vue中@cli…

3 周 ago

Nginx 基本操作:启动、停止、重启命令。

我们来学习Nginx基础操作:…

4 周 ago

Vue3:手动清理keep-alive组件缓存的方法

Vue3中手动清理keep-a…

4 周 ago