{hero}

language.buttons.removeState

自:StateRestore 1.0.0 起

設定 StateRestore 移除按鈕內的文字。
請注意 - 此屬性需要 DataTables 的 StateRestore 擴充功能。

描述

此字串會顯示在 StateRestore 的移除按鈕中。此按鈕的完整文件請參閱 removeState

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

類型

字串

描述

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

預設值

  • 值:移除

範例

變更移除按鈕內的文字

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

相關

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