{hero}

searchPanes.clearSelections()

自:SearchPanes 1.0.0 起

清除所有窗格中的選擇。
請注意 - 此屬性需要 DataTables 的 SearchPanes 擴充功能。

說明

此方法提供清除所有窗格中所做選擇的功能,以便在相關的 DataTable 上發生變更時使用。

searchPanes.clearSelections() 不接受任何引數 - 所有窗格中的選擇都會被清除。

類型

function searchPanes.clearSelections()

說明

清除所有窗格中的選擇。

返回

DataTables API 實例。

範例

在窗格中選取一列,並清除選擇:

var dt = new DataTable('#myTable', {
	layout: {
		top1: 'searchPanes'
	}
});

$('div.dtsp-searchPane:eq(1) table tbody tr:eq(0) td:eq(0)').click();
new DataTable('#myTable').searchPanes.clearSelections();