RasterList.addColumn( name, width, dataIdx [, colIdx [, doPaint]] )
Adds a column to a list. Columns are display only when the list is in "table"
mode. To know the number of columns in a table list use
getColCount().
Parameters
| Name |
Type |
|
Description |
| name |
string |
|
Text shown in the column header. |
| width |
number |
|
Desired width for the column (pixels). |
| dataIdx |
number |
|
Zero-based index of the item data element to be displayed
in the column. |
| colIdx |
number |
optional |
Zero-based index at which the column will be inserted.
If this value is omitted or set null, the column is added at the end. |
| 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 |
The list object. This allow for chaining multiple setter methods in
one single statement. |
See Also