Skip to content

ContextMenuItemOptions

Defined in: namespaces.ts:285

Options for context menu item registration.

title: string

Defined in: namespaces.ts:287

Display title for the menu item.


optional icon?: SFSymbolName

Defined in: namespaces.ts:289

SF Symbol name for the menu item icon.


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

Defined in: namespaces.ts:291

Condition type for when to show.


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

Defined in: namespaces.ts:293

Handler function invoked when the item is selected.

void | Promise<void>