MenuItem class
Signature:
export class MenuItem
Methods
Method | Modifiers | Description |
---|---|---|
onClick(callback) | ||
setChecked(checked) | ||
setDisabled(disabled) | ||
setIcon(icon) | ||
setIsLabel(isLabel) | ||
setSection(section) | Sets the section this menu item should belong in. To find the section IDs of an existing menu, inspect the DOM elements to see their data-section attribute. | |
setTitle(title) |