Skip to content

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 their data-section attribute.

Signature:

setSection(section: string): this

Parameters:

Parameter Type Description
section string

Returns: this

Since: 0.15.3