CustomDropdownMenu

Data to create a dropdown menu in the main top menus.

Extends


Properties

action?

optional action: string;

The registered action to run when the menu item is clicked.

Inherited from

CustomMenuConfig.action


disabledAction?

optional disabledAction: string;

If specified, what action's return value should determine if this menu item is disabled?

Inherited from

CustomMenuConfig.disabledAction


file?

optional file: object;

If specified, this menu item should launch a file picker

accept

accept: string;

An accept string as specified for HTML file inputs

action

action: string;

An action registered with EditorClient.registerFileUploadAction

binary?

optional binary: boolean;

If true, send the file contents to the callback action as a Uint8Array as well as a plain text string

singleFileOnly?

optional singleFileOnly: boolean;

If true, only allow a single file to be selected for upload

Inherited from

CustomMenuConfig.file


label

label: string;

The text to display on the menu item

Inherited from

CustomMenuConfig.label


location?

optional location: MenuLocation;

Where in that menu to display this item in Lucidchart.
Defaults to the extension menu.
In Lucidspark the only valid menu is Extension, it will not appear otherwise.


visibleAction?

optional visibleAction: string;

If specified, what action's return value should determine if this menu item is visible?

Inherited from

CustomMenuConfig.visibleAction