SelectableCollection
Extends:
Direct Subclass:
Collection capable of handling non-nested items with a selected attribute. It is useful to manage the internal state of selection. It currently does not support options.filter for the selection related functions.
Constructor Summary
Public Constructor | ||
public |
|
Inherited Summary
From class Collection | ||
public |
Number of items inside the Collection. |
|
public |
add(item: HTMLElement | Object, insertBefore: HTMLElement): HTMLElement Adds an item to the Collection. |
|
public |
clear(): Array<HTMLElement> Removes all the items from the Collection. |
|
public |
first(): HTMLElement Returns the first item of the collection. |
|
public |
getAll(): Array<HTMLElement> Returns an array with all the items inside the Collection. |
|
public |
last(): HTMLElement Returns the last item of the collection. |
|
public |
remove(item: HTMLElement): HTMLElement Removes the given item from the Collection. |