Skip to content

MenuItem.setTitle method

MenuItem › setTitle

Official

Set the title of the menu item.

Signature:

setTitle(title: string | DocumentFragment): this

Parameters:

ParameterTypeDescription
titlestring | DocumentFragment

Returns: this