{hero}

language.stateRestore.creationModal.title

自:StateRestore 1.0.0 起

設定建立模式視窗的標題文字。
請注意 - 此屬性需要 DataTables 的 StateRestore 擴充功能。

描述

此字串會顯示在建立狀態時顯示的建立模式視窗中的標題。

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

類型

字串

描述

啟用 stateRestore.creationModal 時,將顯示在建立模式視窗標題中的字串。

預設值

  • 值:建立新狀態

範例

變更搜尋核取方塊標籤的文字

new DataTable('#myTable', {
	language: {
		stateRestore: {
			creationModal: {
				title: 'New State:'
			}
		}
	},
	layout: {
		topStart: {
			buttons: [
				{
					extend: 'createState',
					config: {
						creationModal: true
					}
				},
				'savedStates'
			]
		}
	}
});

相關

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