Table of Contents
setImage Method 

Sets image Url for an image only menu item for a given state.

Syntax
JavaScript
 MenuItem.setImage(url, state)

Parameters

url
The new Url.
state
Optional. A string value specified which state of the url the function should return. If not provided, Url for the Normal state is returned. See getLeftIcon for a complete list of valid values for this paramter.
See Also