MenuItem โ€บ setSection

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

ParameterTypeDescription
sectionstring

Returns:

this