Portlet.addLine(options)

Method Description

Adds a line to the portlet.

Returns

Object

Entry Point

render(params)

Since

2016.2

Parameters
Note:

The options parameter is a JavaScript object.

Parameter

Type

Required / Optional

Description

Since

options.text

string

required

The text for the line.

2016.2

options.url

string

optional

The URL link.

2016.2

options.align

number

optional

The justification for the line.

This value indicates the number of spaces to indent. The align value must be between 0 and 5.

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.

          ...
params.portlet.addLine({ text: 'NetSuite', url: 'http://www.netsuite.com', align: 4
);
... 

        

Related Topics

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

General Notices