我正在使用Datatable插件版本-1.10.15
我想让我的表行可拖动以更改排序顺序,为此我使用了数据表的“行重新排序”功能,但它不起作用
给我一个错误: Uncaught TypeError: table.rowReordering is not a function
这是我的工作,但无效
我正在尝试包括所有相关的外部资源
我的剧本是
$(document).ready(function() {
var table = $('#example').DataTable({
"iDisplayLength": 50,
'createdRow': function(row, data, dataIndex) {
$(row).attr('id', 'row-' + dataIndex);
}
});
table.rowReordering();
});
请通过查看我的示例来帮助我找出问题所在
我用解决了我的问题 DataTables 1.10.9, RowReorder 1.0.0
这正在处理数据表子行
简单的解决方案是:
var table = $('#example').DataTable({
rowReorder: true,
"iDisplayLength": 50,
});
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句