AboutSupportDeveloper GuideVersion 36.122.80.26

Interface ShowPopupMenuOptions<Data>

Options for showing a popup menu

Type Parameters

  • Data extends unknown = unknown

    User-defined shape for data returned upon menu item click. Should be a union of all possible data shapes for the entire menu, and the click handler should process these with a "reducer" pattern.

Hierarchy

  • ShowPopupMenuOptions

Properties

Properties

template: MenuItemTemplate<Data>[]

An array describing the menu to show.

x?: number

The window x coordinate where to show the menu. Defaults to mouse position. If using must also use y.

y?: number

The window y coordinate where to show the menu. Defaults to mouse position. If using must also use x