如何在 jQuery Datatables 中启用特定列的排序而不是禁用特定列

问题描述 投票:0回答:1

我正在尝试启用特定列排序。

有什么方法可以使特定列可排序吗?

jquery datatables
1个回答
0
投票
drawingsColumnDefs = [ { "bSearchable": true, "bVisible": true, "sDefaultContent": "n/a", "aTargets": [ 0, 1, 2, 3, 4 ] }, { "bSortable": false, "bSearchable": false, "bVisible": true, "aTargets": [ 5, 6 ] }, { "sClass": "txtCentered", "aTargets": [ 1, 2 ] }, { "sWidth": "230px", "aTargets": [ 0, 4 ] } ]

$('#tableID').dataTable({"aoColumnDefs": columnDefinitions})
© www.soinside.com 2019 - 2024. All rights reserved.