getToolbarButtonItems MethodStatic

Called when the application is populating a toolbar so that any registered UiItemsProvider can add tool buttons that either either execute an action or specify a registered ToolId into toolbar.

getToolbarButtonItems(stageId: string, stageUsage: string, usage: ToolbarUsage, orientation: ToolbarOrientation): ReadonlyArray<ProviderItem<ToolbarItem>>

@returns an array of error messages. The array will be empty if the load is successful, otherwise it is a list of one or more problems.

Parameter Type Description
stageId string a string identifier of the active stage.
stageUsage string the StageUsage of the active stage.
usage ToolbarUsage usage of the toolbar
orientation ToolbarOrientation orientation of the toolbar

Returns - ReadonlyArray<ProviderItem<ToolbarItem>>

an array of error messages. The array will be empty if the load is successful, otherwise it is a list of one or more problems.

Defined in

Last Updated: 20 November, 2024