{hero}

language.searchBuilder.conditions.string

自:SearchBuilder 1.0.0 版本起

設定字串欄位類型的條件名稱。
請注意 - 此屬性需要 DataTables 的 SearchBuilder 擴充功能。

描述

此物件設定條件 select 元素中條件名稱的文字。每個語言選項的預設值如下所列。

  • equals: '等於'
  • not: '不等於'
  • startsWith: '開始於'
  • notStartsWith: '不開始於'
  • contains: '包含'
  • notContains: '不包含'
  • endsWith: '結束於'
  • notEndsWith: '不結束於'
  • empty: '為空'
  • notEmpty: '不為空'

類型

字串 | 物件

描述

language.searchBuilder.conditions.string 變更 SearchBuilder 字串和 HTML 條件的條件 select 元素中顯示的內容。

預設值

  • 數值: object

範例

變更 SearchBuilder 條件的訊息

new DataTable('#myTable', {
	language: {
		searchBuilder: {
			conditions: {
				string: {
					contains: 'Contains',
					empty: 'Empty',
					endsWith: 'Ends With',
					equals: 'Equals',
					not: 'Not',
					notContains: 'Does Not Contain',
					notEmpty: 'Not Empty',
					notEndsWith: 'Does Not End With',
					notStartsWith: 'Does Not Start With',
					startsWith: 'Starts With'
				}
			}
		}
	},
	layout: {
		top1: 'searchBuilder'
	}
});

相關

以下選項直接相關,也可能對您的應用程式開發有所幫助。