RasterList.changeDisplayMode( [displayMode [, thumbsize]] )
Specifies the way the list displays its items.
Parameters
Name |
Type |
|
Description |
displayMode |
string |
optional |
Specifies how the list render its items. Possible
values include:
- "list" (default) - Items are display in a single column
and tiled vertically. A 16x16 icon shows to the left
of the text.
- "grid" - Items are display in a grid-like
pattern. Icon shows above the text. Text might wrap
to a maximum of two lines and any overflow left is hidden.
- "thumbs" - Items are display in a grid-like
pattern. Thumbnail image shows above the text. Text might wrap
to a maximum of three lines and any overflow left is hidden.
- "table" - Items are display as rows in a table.
A 16x16 icon shows to the left of the first column's text.
If the item was created with a text[] array, each text element
in the array is displayed as a column.
This value is case-sensitive. If this value is omitted or
not recognized, a "list" value is assumed. |
thumbsize |
number |
optional |
Specifies the maximum width or height of a thumbnail picture.
This argument is used only when displayMode is
"thumbs". If not given, the current thumbnail size is used. It is
recommended the size is specified to match those from the thumbnails
to avoid a jagged pixel-resize look. |
Returns
Type |
Description |
object |
The list object. This allow for chaining multiple setter methods in
one single statement. |