{hero}

colReorder.move()

自:ColReorder 1.4.0 起

以程式設計方式移動欄位。
請注意 - 此屬性需要 DataTables 的 ColReorder 擴充功能。

說明

此方法提供以程式設計方式一次更改一欄順序的能力 (而 colReorder.order() 將設定所有欄位的順序)。

類型

function colReorder.move( from, to [, drop [, invalidate ] ] )

說明

以程式設計方式重新排序欄位

參數
傳回值

未修改的 API 實例。

範例

將表格中的第一欄移動到第二個位置

var table = new DataTable('#myTable', {
	colReorder: true
});

table.colReorder.move(0, 1);