Skip to content

MenuItem.setTitle method

MenuItem › setTitle

Official

Set the title of the menu item.

Signature:

setTitle(title: string | DocumentFragment): this

Parameters:

Parameter Type Description
title string | DocumentFragment

Returns: this