我怎样才能删除分页 and showjQuery 的特点数据表 http://datatables.net/?我只想要它的搜索和排序功能,并想摆脱其他功能。有什么办法吗?
如果你不使用 jQuery UI 主题,你可以这样做
$(document).ready( function() {
$('#example').dataTable( {
"sDom": 'frt' // only show search.. processing.. and table
});
});
http://live.datatables.net/iqewoh/2/edit#preview http://live.datatables.net/iqewoh/2/edit#preview
带有 jQuery UI 主题
$(document).ready( function() {
$('#example').dataTable( {
"sDom": '<"H"f>rt' // only show search.. processing.. and table
});
});
t == 在标头中放置lfr
..表..然后页脚放ip
允许使用以下选项:
'l' - 长度变化
'f' - 过滤输入
't' - 桌子!
“我”——信息
'p' - 分页
'r' - 处理
允许使用以下常量:
'H' - jQueryUI 主题“标题”类('fg-toolbar ui-widget-header ui-corner-tl ui-corner-tr ui-helper-clearfix')
'F' - jQueryUI 主题“页脚”类('fg-toolbar ui-widget-header ui-corner-bl ui-corner-br ui-helper-clearfix')
预期语法如下:
'' - div 元素
'' - 带有类的 div
'' - 带有 ID 的 div
默认值:lfrtip(当 bJQueryUI 为 false 时)或 t(当 bJQueryUI 为 true 时)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)