MenuItem โบ setSection
MenuItem.setSection() method
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.
Signature:
setSection(section: string): this;Parameters
| Parameter | Type | Description |
|---|---|---|
section | string |
Returns:
this