Reference Source
import {ActionBar} from '@adobe/coral-spectrum'
public class | source

ActionBarContainerCollection

Extends:

CollectionSelectableCollection → ActionBarContainerCollection

The ActionBar container collection

See:

Example:

JS constructor
new Coral.ActionBar.Container.Collection();

Method Summary

Public Methods
public

add(item: *, before: *): *

public

clear(): *

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

Removes all the items from the Collection.

public

Returns the first item of the collection.

public

Returns an array with all the items inside the Collection.

public

Returns the last item of the collection.

public

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#add

Params:

NameTypeAttributeDescription
item *
before *

Return:

*

public clear(): * source

Removes all the items from the Collection.

Override:

Collection#clear

Return:

*