i18n.field.tags
Defaults for the strings used by tags fields.
Please note - this property requires the Editor extension for DataTables.
The full Editor reference documentation is available to registered users of Editor - the information shown below is a summary only. If you already have an Editor license please sign-in, alternatively an Editor license can be purchased on this site, or sign up for the free trial.
Description
This object provides a container for the strings used by the tags
field type. Each string can be set directly on the field's object (see the i18n
option of tags
), but can also be set here to have a default value. This is particularly useful when providing a full translation for Editor and you are happy with the generic terms for the field type.
It is worth highlighting that Editor's language strings can be loaded from the JSON language object that DataTables loads during its startup (language
). That allows a single file to provide a full translation for DataTables and Editor.
The following properties can be set on this object.
addButton
- When another tag can be added to the value a button is shown providing the end user with that ability. This parameter defines the string that is shown in that button. The default value is+ Add
.inputPlaceholder
- The search input element shown in the tags dropdown can have a placeholder value set with this parameter. The default value is an empty string.noResults
- This string is shown when a search term is applied (i.e. the user has typed into the input), but no results have been found that match that term. The default value isNo results found
.placeholder
- This string is shown when no search term has yet been applied, and no options have been loaded. This is typically when using Ajax search for the autocomplete and there is no search applied. The default valueis
-string Type to search`.