Class: AutoComplete

webgis4u/components/AutoComplete~AutoComplete(options)

Creates an auto complete able input element

Constructor

new AutoComplete(options)

Constructor
Parameters:
Name Type Description
options Options
Source:

Members

_getChoiceText :function|null

Type:
  • function | null
Source:

_onListUpdated :null|module:webgis4u/components/AutoComplete~OnListUpdatedCallback

Callback for on hover
Type:
Source:

choices :Array

Type:
  • Array
Source:

currentFocus :number

The currently focused
Type:
  • number
Source:

element :HTMLInputElement

The input element
Type:
  • HTMLInputElement
Source:

filteredChoices :Array.<any>

Array containing the choices that were filtered
Type:
  • Array.<any>
Source:

limit :number|null

Type:
  • number | null
Source:

list :HTMLElement|null

The list element that will contain the items (values)
Type:
  • HTMLElement | null
Source:

messageNotFound :string

Message that is shown when no search results are found
Type:
  • string
Source:

messagePending :string

Message that is shown while search is pending
Type:
  • string
Source:

onItemHover :null|module:webgis4u/components/AutoComplete~OnItemHoverCallback

Callback for on hover
Type:
Source:

onItemSelected :null|module:webgis4u/components/AutoComplete~OnItemSelectCallback

Callback for on Select
Type:
Source:

source :Array.<any>|function

The source to provide the choices.Can be an array or a function
Type:
  • Array.<any> | function
Source:

Methods

(async) updateList(value)

Updates the list
Parameters:
Name Type Description
value string
Source: