Returns a value indicating whether this item is an image only item.
[JavaScript]
MenuItem.isImageOnly(
)
Return Value
Returns true if this menu item is an image only item, otherwise false.
Remarks
Once you use Image to set the images for a menu item, the item is considered to be an image only item. LeftIcon, Text and RightIcon are ignored for an image only item.
While you can use setImage to change item images after the control is rendered, whether an item is image only item is determined at rendering time and can not be changed later. Thus calling setImage has no effect if the item is not initially rendered as an image only item.
Calling to setLeftIcon, setText or setRightIcon is ignored for an image only item.
See Also
MenuItem Object