ActionBarContainerCollection
Extends:
The ActionBar container collection
Example:
new Coral.ActionBar.Container.Collection();
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. |
Public Methods
public add(item: *, before: *): * source
Adds an item to the Collection. The item can be either a HTMLElement
or an Object with the item
properties. If the index is not provided the element appended to the end. If options.onItemAdded
was
provided, it will be called after the element is added from the DOM.
Override:
Collection#addParams:
Name | Type | Attribute | Description |
item | * | ||
before | * |
Return:
* |
public clear(): * source
Removes all the items from the Collection.
Override:
Collection#clearReturn:
* |