{hero}

i18n.field.autocomplete

Since: Editor 2.4

Defaults for the strings used by autocomplete 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 , 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 autocomplete field type. Each string can be set directly on the field's object (see the i18n option of autocomplete), 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.

  • 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 is No 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`.