[英]How do i order my datatable column to display in ascending order
I have this section of code already in place and i think it uses the domsourced method to render the control with the class .file-upload table
as a datatable. 我已经准备好了这部分代码,并且我认为它使用domsourced方法使用类.file-upload table
作为数据.file-upload table
来呈现控件。
initDataTable = function () {
services.dataTables.domSourced('.file-upload table');
};
now i want to use this code below to order the first column in desc order, how do i do that 现在我想使用下面的代码按降序排列第一列,我该怎么做
"order": [[0, 'asc']],
Did you tried this? 你有试过吗
$(document).ready(function() {
$('#example').DataTable( {
"order": [[ 0, "desc" ]]
} );
} );
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.