This is a popup menu item displaying an icon and a text. The icon is displayed to the left of the text. PopupImageMenuItem is a similar, deprecated item, that displays the icon to the right of the text, which is ugly in most cases. Do not use it. If you think you need to display the icon on the right, make your own menu item (by copy and pasting the code found below) because PopupImageMenuItem is deprecated and may disappear any time.
_init (string text,string iconName,St.IconType iconType,JSON params);
text |
text to display in the label |
|
iconName |
name of the icon used |
|
iconType |
the type of icon (usually |
|
params |
parameters to pass to |
setIconSymbolicName (string iconName);
Changes the icon to a symbolic icon with name iconName.
setIconName (string iconName);
Changes the icon to a full color icon with name iconName.