|
@@ -27,14 +27,24 @@ See [`Menu`](menu.md) for examples.
|
|
|
* `visible` Boolean (optional) - If false, the menu item will be entirely hidden.
|
|
|
* `checked` Boolean (optional) - Should only be specified for `checkbox` or `radio` type
|
|
|
menu items.
|
|
|
- * `submenu` (MenuItemConstructorOptions[] | [Menu](menu.md)) (optional) - Should be specified for `submenu` type menu items. If
|
|
|
- `submenu` is specified, the `type: 'submenu'` can be omitted. If the value
|
|
|
- is not a [`Menu`](menu.md) then it will be automatically converted to one using
|
|
|
+ * `submenu` (MenuItemConstructorOptions[] | [Menu](menu.md)) (optional) - Should be specified
|
|
|
+ for `submenu` type menu items. If `submenu` is specified, the `type: 'submenu'` can be omitted.
|
|
|
+ If the value is not a [`Menu`](menu.md) then it will be automatically converted to one using
|
|
|
`Menu.buildFromTemplate`.
|
|
|
* `id` String (optional) - Unique within a single menu. If defined then it can be used
|
|
|
as a reference to this item by the position attribute.
|
|
|
- * `position` String (optional) - This field allows fine-grained definition of the
|
|
|
- specific location within a given menu.
|
|
|
+ * `before` String[] (optional) - Inserts this item before the item with the specified label. If
|
|
|
+ the referenced item doesn't exist the item will be inserted at the end of the menu. Also implies
|
|
|
+ that the menu item in question should be placed in the same “group” as the item.
|
|
|
+ * `after` String[] (optional) - Inserts this item after the item with the specified label. If the
|
|
|
+ referenced item doesn't exist the item will be inserted at the end of
|
|
|
+ the menu.
|
|
|
+ * `beforeGroupContaining` String[] (optional) - Provides a means for a single context menu to declare
|
|
|
+ the placement of their containing group before the containing group of the item
|
|
|
+ with the specified label.
|
|
|
+ * `afterGroupContaining` String[] (optional) - Provides a means for a single context menu to declare
|
|
|
+ the placement of their containing group after the containing group of the item
|
|
|
+ with the specified label.
|
|
|
|
|
|
### Roles
|
|
|
|