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

SelectableCollection

Extends:

Collection → SelectableCollection

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

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 Constructors

public constructor() source

Override:

Collection#constructor