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
Name | Type | Description |
---|---|---|
parentMenuItemId | number | ID of the Parent MenuItem. |
customCommand | number | Command to execute when the MenuItem is selected.. |
orderPriority | number | Priority to assign to the new item. |
Return type
Type | Description |
---|---|
Promise < number > | ID of the newly created MenuItem. |