IMenuButtonConfiguration
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
export interface IMenuButtonConfiguration
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
ReadonlyArray<[number, IMenuButtonItem]> | (ALPHA) (Optional) Specify additional menu items to add on top of the default items. | ||
ReadonlyArray<IMenuButtonItem> | (ALPHA) (Optional) Specify custom items that will be in the menu. |
Property details
IMenuButtonConfiguration.additionalMenuItemspropertyAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Specify additional menu items to add on top of the default items.
additionalMenuItems?: ReadonlyArray<[number, IMenuButtonItem]>;
Remarks
If specified, this should be a list of tuples: index to add item at, the menu item to add. If you want to add item at the end of the list, use index -1.
IMenuButtonConfiguration.menuItemspropertyAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Specify custom items that will be in the menu.
menuItems?: ReadonlyArray<IMenuButtonItem>;
Remarks
Using this setting fully overrides the menu items. The default items will not be shown.