RasterList.add( icon, icon32, thumbnail, data [, value [, doPaint]] )

Adds an item to the list.

Parameters

Name Type   Description
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 "thumbs" 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.
doPaint boolean optional Used to increase performance when doing batch operations in the list. If this argument is omitted or set true, the display is updated immediately to reflect the changes, false does not update the the display until paint() is later invoked.

Returns

Type Description
object A reference to the RasterListItem object just added.
Home Examples Download License
 
Copyright © 2010-2017 Edwin R. López