MenuItem.setLabel

void setLabel(string label)

Sets text on the menu_item label

Parameters

labelthe text you want to set