{hero}

language.stateRestore.creationModal.columns.search

自:StateRestore 1.0.0

設定在建立模式視窗中,欄位搜尋核取方塊標籤的文字。
請注意 - 此屬性需要 DataTables 的 StateRestore 擴充功能。

描述

此字串顯示在核取方塊旁邊的標籤中,該核取方塊允許在建立狀態時顯示的建立模式視窗中切換欄位特定搜尋狀態的儲存。

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

類型

字串

描述

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

預設值

  • 值:欄位搜尋

範例

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

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

相關

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