Portlet.addColumn(options)

Method Description

Adds a list column to the portlet.

Returns

serverWidget.ListColumn

Entry Point

render(params)

Since

2016.2

Parameters
Note:

The options parameter is a JavaScript object.

Parameter

Type

Required / Optional

Description

Since

options.id

string

required

The internal ID of this column.

The internal ID must be in lowercase, contain no spaces.

2016.2

options.label

string

required

The label of this column.

2016.2

options.type

string

required

The field type for this column.

For more information about possible values, see serverWidget.FieldType.

2016.2

options.align

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
});
... 

        

Related Topics

Portlet Object
Portlet.addEditColumn(options)
Portlet.addField(options)
Portlet.addLine(options)
Portlet.addRow(options)
Portlet.addRows(options)
Portlet.setSubmitButton(options)
Portlet.clientScriptFileId
Portlet.clientScriptModulePath
Portlet.html
Portlet.title

General Notices