MenuItem.setLabel

Sets or unsets the "label" attribute of menu_item. If label is non-NULL it is used as the label for the menu item. If it is NULL then the label attribute is unset. Since 2.32

class MenuItem
void
setLabel
(
string label
)

Parameters

label string

the label to set, or NULL to unset. [allow-none]

Meta