icon - Icon URL
Specifies the path for an icon.
Category
basicsSyntax
icon="path"
Where path
is
the location of the icon. A slash followed by the name of a graphic
file indicates a resource stored in the current application.Usage
In Design mode, click the top tab under Properties and look for Specify image for button, or click All Properties and look for icon under basics.Examples
This Button control provides an icon with alternate text.<xp:button id="button2" value="Save and Exit" icon="/folder.gif" iconAlt="Folder">
<xp:eventHandler event="onclick" submit="true" refreshMode="complete">
<xp:this.action>
<xp:save name="/xpage2.xsp"></xp:save>
</xp:this.action>
</xp:eventHandler>
</xp:button>