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