Documentation / jpl-vite / api / MenuItem
Interface: MenuItem
Defined in: joplin-plugin-api/dist/types.d.ts:224
Properties
accelerator?
optional
accelerator:string
Defined in: joplin-plugin-api/dist/types.d.ts:242
Accelerator associated with the menu item
commandArgs?
optional
commandArgs:any
[]
Defined in: joplin-plugin-api/dist/types.d.ts:234
Arguments that should be passed to the command. They will be as rest parameters.
commandName?
optional
commandName:string
Defined in: joplin-plugin-api/dist/types.d.ts:229
Command that should be associated with the menu item. All menu item should have a command associated with them unless they are a sub-menu.
label?
optional
label:string
Defined in: joplin-plugin-api/dist/types.d.ts:250
Menu item label. If not specified, the command label will be used instead.
submenu?
optional
submenu:MenuItem
[]
Defined in: joplin-plugin-api/dist/types.d.ts:246
Menu items that should appear below this menu item. Allows creating a menu tree.
type?
optional
type:"normal"
|"separator"
|"submenu"
|"checkbox"
|"radio"
Defined in: joplin-plugin-api/dist/types.d.ts:238
Set to "separator" to create a divider line