colReorder.move()
自:ColReorder 1.4.0 起
以程式設計方式移動欄位。
請注意 - 此屬性需要 DataTables 的 ColReorder 擴充功能。
說明
此方法提供以程式設計方式一次更改一欄順序的能力 (而 colReorder.order()
將設定所有欄位的順序)。
類型
範例
將表格中的第一欄移動到第二個位置
var table = new DataTable('#myTable', {
colReorder: true
});
table.colReorder.move(0, 1);