Skip to content

Menu.addSections method

Menu › addSections

Unofficial

Add a section to the menu.

Signature:

addSections(items: string[]): this

Parameters:

Parameter Type Description
items string[] The section names to add.

Returns: thisThe menu instance.