9.0 Released! → Native ESM runtimes 🚀, Vite support ⚡️, multi-window apps and more...
Read Announcement

Defined in: ui/action-bar/index.d.ts:93

Represents a collection of ActionItems.

Constructors

Constructor

ts
new ActionItems(): ActionItems;

Returns

ActionItems

Methods

addItem()

ts
addItem(item: ActionItem): void;

Defined in: ui/action-bar/index.d.ts:98

Adds an item to the collection.

Parameters

ParameterTypeDescription
itemActionItemthe item to be added

Returns

void


getItemAt()

ts
getItemAt(index: number): ActionItem;

Defined in: ui/action-bar/index.d.ts:115

Gets an item at a specified index.

Parameters

ParameterTypeDescription
indexnumberThe index.

Returns

ActionItem


getItems()

ts
getItems(): ActionItem[];

Defined in: ui/action-bar/index.d.ts:109

Gets an array of the current action items in the collection.

Returns

ActionItem[]


removeItem()

ts
removeItem(item: ActionItem): void;

Defined in: ui/action-bar/index.d.ts:104

Removes an item to the collection.

Parameters

ParameterTypeDescription
itemActionItemThe item to be removed.

Returns

void

Previous
ActionItem