AddMenuItemQuery

type AddMenuItemQuery: object;

Type declaration

a?

optional a: string;

Named action to run when the menu item is clicked

d?

optional d: string;

Named action that returns whether the menu item should be disabled

f?

optional f: object;

If specified, this menu item should launch a file picker

f.a

a: string;

Action to call when files are selected

f.ac

ac: string;

File types to accept

f.b?

optional b: boolean;

Return content in a binary ArrayBuffer instead of as text

f.s?

optional s: boolean;

Single file only

i?

optional i: string;

Url of the Icon to display on the menu item

l

l: string;

Label to display on the menu item

loc?

optional loc: MenuLocation;

If specified, where to place the menu item; defaults to MenuLocation.Extension

t

t: MenuType;

Which menu to put the item in

v?

optional v: string;

Named action that returns whether the menu item should be visible