RasterListItem.setIcon( icon )
Sets the 16x16 icon displayed in the "list" and "table" modes.An
icon
URL might be prefixed by Raster resource-folder tag. The prefix
"IMG:" is replaced with the current raster/images location, for example:
"IMG:icon.gif" resolves to "$RASTER_HOME$/images/icon.gif". The prefix "CSS:"
is replaced with the current css themes images location, for example:
"CSS:icon.gif" resolves to "$RASTER_HOME$/themes/$THEME$/images/icon.gif".
Do not place a "/" between the prefix and the rest of the URL, as a forward slash will be inserted automatically. For configuring the RASTER_HOME and THEME use the
Raster.config()
method.
Parameters
Name | Type | Description | |
---|---|---|---|
icon | string |
String containing path of a 16x16 image file
or an object that implements the IID_SPRITEINFO interface such as
the constants in the ICONS16 object. Set to
null if no icon needed. |
Returns
Type | Description |
---|---|
object | The list item object. This allow for chaining multiple setter methods in one single statement. |