RasterListItem.setIcon32( icon32 )

Sets the 32x32 icon displayed in the "grid" mode.

The icon32 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
icon32 string String containing path of a 32x32 image file or an object that implements the IID_SPRITEINFO interface such as the constants in the ICONS32 object. Set to null to remove any large icon.

Returns

Type Description
object The list item object. This allow for chaining multiple setter methods in one single statement.
Home Examples Download License
 
Copyright © 2010-2017 Edwin R. López