{hero}

language.buttons.savedStates

自:StateRestore 1.0.0 起

設定 StateRestore savedStates 按鈕內的文字。
請注意 - 此屬性需要 DataTables 的 StateRestore 擴展。

描述

此字串顯示在 StateRestore 的 savedStates 按鈕中。此按鈕的完整文件請參考 savedStates

此處設定的值會傳遞至 i18n() 函數。

類型

字串

描述

將顯示在 StateRestore 的 savedStates 按鈕內的字串。

預設值

  • 值:Saved States

範例

變更 savedStates 按鈕內的文字

new DataTable('#myTable', {
	language: {
		buttons: {
			savedStates: 'States'
		}
	},
	layout: {
		topStart: {
			buttons: ['createState', 'savedStates']
		}
	}
});

相關

以下選項直接相關,在您的應用程式開發中可能也會很有用。