new Collection(options)
Parameters:
Name | Type | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
* |
Properties
|
Fires:
- item:select
- item:dblclick
- item:order
Extends
- ol.Object
Methods
-
getSelect()
-
Get current selection
Returns:
- Type
- *
-
getSelectPosition()
-
Get current selection
Returns:
- Type
- number
-
refresh()
-
Redraw the list
-
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 n
number -
setCollection(collection)
-
Set the collection
Parameters:
Name Type Description collection
ol.Collection