StatusBarItemUtilities.createActionItem Function

Beta  

Creates a StatusBar item to perform an action.

createActionItem(id: string, section: StatusBarSection, itemPriority: number, icon: string | ConditionalStringValue, tooltip: string | ConditionalStringValue, execute: () => void, overrides?: Partial<AbstractStatusBarActionItem>): StatusBarActionItem

Parameter Type Description
id string  
section StatusBarSection  
itemPriority number  
icon string | ConditionalStringValue  
tooltip string | ConditionalStringValue  
execute () => void  
overrides Partial<AbstractStatusBarActionItem>  

Returns - StatusBarActionItem

Defined in

Last Updated: 30 November, 2023