MenuItem.setSection method
MenuItem › setSection
Official
Sets the section this menu item should belong in. To find the section IDs of an existing menu, inspect the DOM elements to see theirdata-section attribute. Signature:
setSection(section: string): thisParameters:
| Parameter | Type | Description |
|---|---|---|
| section | string |
Returns: this
Since: 0.15.3