Skip to content

ContextMenuItemOptions

Defined in: namespaces.ts:286

Options for context menu item registration.

title: string

Defined in: namespaces.ts:288

Display title for the menu item.


optional icon?: SFSymbolName

Defined in: namespaces.ts:290

SF Symbol name for the menu item icon.


optional condition?: "always" | "isDirectory" | "isFile"

Defined in: namespaces.ts:292

Condition type for when to show.


handler: () => void | Promise<void>

Defined in: namespaces.ts:294

Handler function invoked when the item is selected.

void | Promise<void>