8.7 released—WinterCG Compliance Part 1
Learn more
ActionItems
Represents a collection of ActionItems.

Summary

Constructors

constructor

new ActionItems(): ActionItems
Returns ActionItems

Methods

addItem

addItem(item: ActionItem): void
Adds an item to the collection.
Parameter Default Description
item

the item to be added

Returns void

getItemAt

getItemAt(index: number): ActionItem
Gets an item at a specified index.
Parameter Default Description
index
number

The index.

Returns ActionItem

getItems

getItems(): ActionItem[]
Gets an array of the current action items in the collection.
Returns ActionItem[]

removeItem

removeItem(item: ActionItem): void
Removes an item to the collection.
Parameter Default Description
item

The item to be removed.

Returns void
Previous
ActionItem