{hero}

language.stateRestore.creationModal.order

自:StateRestore 1.0.0 起

設定在建立模式中,排序核取方塊標籤的文字。
請注意 - 這個屬性需要 DataTables 的 StateRestore 擴充功能。

描述

此字串會顯示在核取方塊旁邊的標籤中,該核取方塊允許切換在建立狀態時顯示的建立模式中的排序狀態儲存。

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

類型

字串

描述

當在 stateRestore.creationModal 中啟用時,將顯示在建立模式中顯示的欄位排序核取方塊旁邊的標籤中的字串。

預設值

  • 值:排序

範例

變更排序核取方塊標籤的文字

new DataTable('#myTable', {
	language: {
		stateRestore: {
			creationModal: {
				order: 'Column Sorting:'
			}
		}
	},
	layout: {
		topStart: {
			buttons: [
				{
					extend: 'createState',
					config: {
						creationModal: true,
						toggle: {
							order: true
						}
					}
				},
				'savedStates'
			]
		}
	}
});

相關

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