Skip to main content

CreateSubMenuItem

Description

Creates a new SubMenu for already created Menu.

Syntax

// shellFrame points here into the IShellFrame interface
const result = await shellFrame.Commands.CreateSubMenuItem(
parentMenuItemId,
customCommand,
orderPriority,
);

Parameters

NameTypeDescription
parentMenuItemIdnumberID of the Parent MenuItem.
customCommandnumberCommand to execute when the MenuItem is selected..
orderPrioritynumberPriority to assign to the new item.

Return type

TypeDescription
Promise < number >ID of the newly created MenuItem.