IExportingMenuItem
Type interface
Sources
IExportingMenuItem is an interface: it describes a shape of data and is not imported on its own.
Properties
callbackType
undefined| (menuItem:any) =>anyFunction to call when a
"custom"item is clicked.callbackTargetType
anythisinsidecallback; the menu if not set.elementType
HTMLAnchorElementThe item's DOM element.
exportTypeType
ExportingTypesExport type of the item:
"image","data"or"print". An item whose type is not available, such as"data"without data, is left out.formatType
ExportingFormatsFormat to export in, for a
"format"item."print"prints the chart.labelType
undefined|stringText of the item.
sublabelType
undefined|stringSmaller text after the label, such as
"Image".typeType
"format"|"separator"|"custom"Type of the item:
"format": exports informatwhen clicked."separator": a divider, withlabelas a heading if set."custom": callscallbackwhen clicked.