new Collection(options)
Parameters:
| Name | Type | Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
* |
Properties
|
Fires:
- item:select
- item:dblclick
- item:keydown
- item:order
Extends
- ol.Object
Methods
-
getSelect()
-
Get current selection
Returns:
- Type
- *
-
getSelectPosition()
-
Get current selection
Returns:
- Type
- number
-
refresh( [focus])
-
Redraw the list
Parameters:
Name Type Argument Description focus* <optional>
item to focus on
-
removeCollection()
-
Remove current collection (listeners) /!\ remove collection when input list is removed from the DOM
-
select(item)
-
Select an item
Parameters:
Name Type Description item* -
selectAt(n)
-
Select an item at
Parameters:
Name Type Description nnumber -
setCollection(collection)
-
Set the collection
Parameters:
Name Type Description collectionol.Collection