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. Keep the align value between 0 and 5.

2016.2

Syntax

The following code snippet shows the syntax for this member. Note that this isn't a working 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

General Notices