menu
- Description:
- IDE Menu API methods
- Source:
Interfaces
Methods
(static) addItem(parentDescriptor, item, itemAddedCallbackopt)
- Description:
- Add menu item
- Source:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
parentDescriptor |
codioIDE.menu.MenuItemDescriptor | item descriptor | |
item |
codioIDE.menu.MenuItem | menu item | |
itemAddedCallback |
itemAddedCallback |
<optional> |
will be called when on item add with item id |
(static) removeItem(itemDescriptor)
- Description:
- Remove menu item
- Source:
Parameters:
Name | Type | Description |
---|---|---|
itemDescriptor |
codioIDE.menu.MenuItemDescriptor | item descriptor |
(static) updateItem(itemDescriptor, item)
- Description:
- Update menu item
- Source:
Parameters:
Name | Type | Description |
---|---|---|
itemDescriptor |
codioIDE.menu.MenuItemDescriptor | item descriptor |
item |
codioIDE.menu.MenuItemUpdate | menu item |