CustomMenuConfig

Data to create a menu

Extended by


Properties

action?

optional action: string;

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


disabledAction?

optional disabledAction: string;

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


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


label

label: string;

The text to display on the menu item


visibleAction?

optional visibleAction: string;

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