Menu.addItem() method
Adds a menu item. Only works when menu is not shown yet.
Signature:
addItem(cb: (item: MenuItem) => any): this;
Parameters
Parameter | Type | Description |
---|---|---|
cb | (item: MenuItem ) โ any |
Returns:
this
1 min read
Adds a menu item. Only works when menu is not shown yet.
Signature:
addItem(cb: (item: MenuItem) => any): this;
Parameter | Type | Description |
---|---|---|
cb | (item: MenuItem ) โ any |
Returns:
this