cell().selected()
自:Select 1.4.0 起
判斷單元格是否已被選取。
請注意 - 此屬性需要 DataTables 的 Select 擴充套件。
描述
此方法可用於判斷個別單元格的選取狀態。
類型
範例
檢查表格中的第一個單元格是否被選取
var table = new DataTable('#myTable');
if (table.cell(':eq(0)', 0).selected()) {
console.log('Cell is selected');
}
else {
console.log('Cell is not selected');
}
相關
以下選項直接相關,在您的應用程式開發中也可能很有用。