{hero}

language.buttons.updateState

自:StateRestore 1.0.0 起

設定 StateRestore 更新按鈕中的文字。
請注意 - 此屬性需要 DataTables 的 StateRestore 擴充功能。

描述

此字串顯示在 StateRestore 的更新按鈕中。該按鈕的完整文件位於 updateState

此處設定的值會透過 i18n() 函式傳遞。

類型

字串

描述

將顯示在 StateRestore 更新按鈕中的字串。

預設值

  • 值:Update

範例

變更更新按鈕中的文字

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

相關

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