IExportingMenuItem

Type interface

Inheritance

IExportingMenuItem does not extend any other symbol.

IExportingMenuItem is not extended by any other symbol.

Properties

callback
#

Type undefined | ( menuItem: any) => any

If type is set to "custom", this needs to be set to a function.

callbackTarget
#

Type any

A target for callback function.

element
#

Type HTMLAnchorElement

A DOM element for the menu item.

@readonly

exportType
#

Type ExportingTypes

Indicates export type: "image", "data", or "print".

format
#

Type ExportingFormats

If type is set to "format", clicking item will initiate export in that format.

label
#

Type undefined | string

Menu label.

sublabel
#

Type undefined | string

Additional information.

type
#

Type "format" | "separator" | "custom"

Indicates type of the menu item:

  • "format" - indicates export action
  • "separator" - will show horizontal divider.
  • "custom" - will invoke custom function when clicked.