{hero}

已儲存的狀態

自:StateRestore 1.0.0 起

用於提供與已儲存狀態互動的集合。
請注意 - 此屬性需要 DataTables 的 StateRestore 擴展功能。

描述

這是一個集合,其中包含許多 stateRestore 按鈕,每個按鈕對應 StateRestore 儲存的一個狀態。

選項

除了所有按鈕都可用的選項 (例如 buttons.buttons.text) 之外,此按鈕可以在其設定物件中設定以下選項來自訂其動作和顯示方式。

範例

已儲存狀態按鈕修改文字

DataTable.ext.buttons.savedStates.text = function (e, dt, node, config) {
	return 'Saved states collection';
};