Portlet.addColumn(options)
Method Description |
Adds a list column to the portlet. |
Returns |
|
Entry Point |
|
Since |
2016.2 |
Parameters
The options parameter is a JavaScript object.
Parameter |
Type |
Required / Optional |
Description |
Since |
---|---|---|---|---|
|
string |
required |
The internal ID of this column. The internal ID must be in lowercase, contain no spaces. |
2016.2 |
|
string |
required |
The label of this column. |
2016.2 |
|
string |
required |
The field type for this column. For more information about possible values, see serverWidget.FieldType. |
2016.2 |
|
string |
optional |
The layout justification for this column. For more information about possible values, see serverWidget.LayoutJustification. |
2016.2 |
Syntax
The following code snippet shows the syntax for this member. It is not a functional example. For a complete script example, see SuiteScript 2.x Portlet Script Type.
...
var newColumn = params.portlet.addColumn({ id: 'column1', label: 'Text', type: serverWidget.FieldType.TEXT, align: serverWidget.LayoutJustification.RIGHT
});
...