Classes
Methods
(inner) closeAllLists(element)
close all autocomplete lists in the document
except the one passed as an argument
Parameters:
Name | Type | Description |
---|---|---|
element |
* | The element that should not be closed |
- Source:
Type Definitions
OnItemHoverCallback(The, choice)
Parameters:
Name | Type | Description |
---|---|---|
The |
Event | original event |
choice |
any | The choice that was hovered |
- Source:
OnItemSelectCallback(event, choice)
Parameters:
Name | Type | Description |
---|---|---|
event |
Event | The original event |
choice |
any | The choice that was hovered |
- Source:
OnListUpdatedCallback(event, choices)
Parameters:
Name | Type | Description |
---|---|---|
event |
Event | The original event |
choices |
Array.<any> | The choices |
- Source:
Options
Type:
- object
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
element |
HTMLElement | |||
minLength |
number |
<optional> |
0 | The minimum length at which the search is executed |
placeholder |
string |
<optional> |
The placeholder text | |
getChoiceText |
function |
<optional> |
Function that is executed with one list item and returns the text | |
onItemHover |
module:webgis4u/components/AutoComplete~OnItemHoverCallback |
<optional> |
||
onItemSelected |
module:webgis4u/components/AutoComplete~OnItemSelectCallback |
<optional> |
- Source: