JQuery Datatables Dom 和 Language 参数详细说明
http://linleizi.iteye.com/blog/2086435
***********************************
Data Tables: http://datatables.net/
Version: 1.10.0
Dom说明
定义表格控件在页面的显示顺序。
每个控件元素在数据表都有一个关联的单个字母。
l- 每页显示行数的控件f- 检索条件的控件t- 表格控件i- 表信息总结的控件p- 分页控件r- 处理中的控件
还可以在控件元素外添加DIV和Class,语法如下
<and>- DIV元素<"class"and>- DIV和Class<"#id"and>- DIV和ID
Language说明
数据表的文言设置。
参数文档:
- {
- "emptyTable": "No data available in table",
- "info": "Showing _START_ to _END_ of _TOTAL_ entries",
- "infoEmpty": "Showing 0 to 0 of 0 entries",
- "infoFiltered": "(filtered from _MAX_ total entries)",
- "infoPostFix": "",
- "thousands": ",",
- "lengthMenu": "Show _MENU_ entries",
- "loadingRecords": "Loading...",
- "processing": "Processing...",
- "search": "Search:",
- "zeroRecords": "No matching records found",
- "paginate": {
- "first": "First",
- "last": "Last",
- "next": "Next",
- "previous": "Previous"
- },
- "aria": {
- "sortAscending": ": activate to sort column ascending",
- "sortDescending": ": activate to sort column descending"
- }
- }
Example:
- 没有检索元素
- /* Results in:
- <div class="wrapper">
- {length}
- {processing}
- {table}
- {information}
- {pagination}
- </div>
- */
- $('#example').dataTable( {
- "dom": 'lrtip'
- } );
- 简单的DIV和样式元素设置
- /* Results in:
- <div class="wrapper">
- {filter}
- {length}
- {information}
- {pagination}
- {table}
- </div>
- */
- $('#example').dataTable( {
- "dom": '<"wrapper"flipt>'
- } );
- 每页行数,检索条件,分页在表格上面,表信息在表格下面
- /* Results in:
- <div>
- {length}
- {filter}
- <div>
- {table}
- </div>
- {information}
- {pagination}
- </div>
- */
- $('#example').dataTable( {
- "dom": '<lf<t>ip>'
- } );
- 表信息在表上面,检索条件,每页行数,处理中在表下面,并且有清除元素
- /* Results in:
- <div class="top">
- {information}
- </div>
- {processing}
- {table}
- <div class="bottom">
- {filter}
- {length}
- {pagination}
- </div>
- <div class="clear"></div>
- */
- $('#example').dataTable( {
- "dom": '<"top"i>rt<"bottom"flp><"clear">'
- } );
- 实际应用
- /**
<style>
.float_left{
float: left;
}
.float_right {
float:right;
}
</style>
- */
- $('#dealsData').dataTable(
- {
- 'dom': '<"float_left"f>r<"float_right"l>tip',
- 'language': {
- 'emptyTable': '没有数据',
- 'loadingRecords': '加载中...',
- 'processing': '查询中...',
- 'search': '检索:',
- 'lengthMenu': '每页 _MENU_ 件',
- 'zeroRecords': '没有数据',
- 'paginate': {
- 'first': '第一页',
- 'last': '最后一页',
- 'next': '',
- 'previous': ''
- },
- 'info': '第 _PAGE_ 页 / 总 _PAGES_ 页',
- 'infoEmpty': '没有数据',
- 'infoFiltered': '(过滤总件数 _MAX_ 条)'
- }
- }
- );
效果图片


JQuery Datatables Dom 和 Language 参数详细说明的更多相关文章
- Jquery.Datatables dom表格定位
Datatables会添加一些控制元素在表格的周围,比如默认状态下改变每页显示条数(l)的空间在左上角,即使搜索框(f)在右上角,表格的信息(i)显示在左下角,分页控件(p)显示在右下角. 这些控件在 ...
- Jquery.Datatables dom表格定位 (转)
Datatables会添加一些控制元素在表格的周围,比如默认状态下改变每页显示条数(l)的空间在左上角,即使搜索框(f)在右上角,表格的信息(i)显示在左下角,分页控件(p)显示在右下角. 这些控件在 ...
- JQuery Datatables Columns API 参数详细说明
---恢复内容开始--- Data Tables: http://datatables.NET/ Version: 1.10.0 Columns说明 虽然我们可以通过DOM直接获取DataTables ...
- JQuery中的AJAX参数详细介绍
Jquery中AJAX参数详细介绍 参数名 类型 描述 url String (默认: 当前页地址) 发送请求的地址. type String (默认: "GET") 请求方 ...
- 转载 Jquery中AJAX参数详细介绍
Jquery中AJAX参数详细列表: 参数名 类型 描述 url String (默认: 当前页地址) 发送请求的地址. type String (默认: "GET") 请求方式 ...
- Jquery中AJAX参数详细(1)-转
http://www.cnblogs.com/qiufuwu618/archive/2012/12/20/2826190.html Jquery中AJAX参数详细列表: 参数名 类型 描述 url S ...
- Jquery中AJAX参数详细介绍
Jquery中AJAX参数详细列表: 参数名 类型 描述 url String (默认: 当前页地址) 发送请求的地址. type String (默认: "GET") 请求方式 ...
- Jquery Datatables 请求参数及接收参数处理
Jquery Datatables 请求参数及接收参数处理 /** * Created by wb-wuyifu on 2016/8/9. */ /** * Created by wb-wuyifu ...
- jquery datatables api (转)
学习可参考:http://www.guoxk.com/node/jquery-datatables http://yuemeiqing2008-163-com.iteye.com/blog/20069 ...
随机推荐
- HTML问题集锦及笔记
1.<html>和<body>之间的输出? 加入<p>or<script>均可正常运行 2.<br />换行,用<br>< ...
- 测试与log
1 加载logback private static void loadloack() { LoggerContext lc = (LoggerContext) LoggerFactory.getIL ...
- 怎样将BigDecimal转换成Int
BigDecimal a=new BigDecimal(12.88); int b=a.intValue(); System.out.println(b);//b=12;
- MVC 发布
发布为局域网可用:以IP地址访问 安装IIS 发布 出现的错误: 处理程序"BlockViewHandler"在其模块列表中有一个错误模块"ManagedPipeline ...
- Python之路-python(常用模块学习)
模块介绍 time &datetime模块 random os sys shutil shelve xml处理 yaml处理 configparser hashlib re正则表达式 1.模块 ...
- kernel update 2.6.18-2.6.38
细致某种程度上可以体现作者的开放精神 copy for build a note needed when config the kernel 主要的问题出在了menu.lst 和 grub.conf文 ...
- .net下的跨域问题
环境: IIS7.0 MVC 4.0 公司官网 asp.net 需要的报名系统,需要有后台管理 由于是配合传统产业,所以MVC系统的数据,是由AIPS系统提供. (制作前是考虑去年用 ...
- tp生成验证码
视图层: <input type="text" name="code" value="" /> <img o ...
- paper 98:图像视觉各个领域文献目录
当前图像视觉各个领域文献资料的索引,包含计算机视觉.图像处理.文本(图像)分析.视频分析.模式识别等主题.如果对哪个方向比较感兴趣,可以查看这个方向的比较重要的Paper,每一个大的目录后面都对应一些 ...
- CentOS7使用无线网卡
1.安装CentOS7最小化时候,在网络连接功能项中设置WIFI的设备和密码. 2.进入系统,执行nmcli查看使用NetworkManager管理的网络 [root@seastar ~] nmcli ...