RasterListItem( listControl, index, icon, icon32, thumbnail, data [, value] )
Represents an item in aRasterList
control. List items are not created by using this
constructor directly, but rather using of the RasterList.add()
method.
The following code creates a grid list control inside a document element with an
id
of "listDiv", adds an item, and marks it as "disabled":
var list = new RasterList( "listDiv", "grid" ); var item = list.add( null, ICONS32.GRAPHICS, null, "Customize" ); item.setEnabled( false ); ...
Parameters
Name | Type | Description | |
---|---|---|---|
listControl | object | A List object that owns this item. | |
index | number | Index of this item in the list. | |
icon | value |
String containing path of a 16x16 image file
or an object that implements the IID_SPRITEINFO interface
such as those in ICONS16 . This icon is displayed when
the list is in "list" and "table" modes. Set to null if no
small icon is desired. |
|
icon32 | value |
String containing path of a 32x32 image file
or an object that implements the IID_SPRITEINFO interface
such as those in ICONS32 . This icon is displayed when
the list is in "grid" mode. If this icon is not provided,
the icon16 is used if available. Set to null
or omit if no large icon display is needed. |
|
thumbnail | string |
Path of a thumbnail image file.
If the image given is bigger than the thumbnail size specified
during the #List constructor, clipping will occur. This image
is displayed when the list is in "thumbnails" mode. Set to
null or omit if no thumbnail display is needed. |
|
data | any |
Define one or more values to be display in this list item.
Multiple values are given as a array. Values are typically
strings, but may be of any type. The toString() method is used
to convert values to text. Null values display as a empty string "". |
|
value | any | optional | Define any program-specific value to be associated with this item, such as a primary-key or other server side unique-ID. |