Portlet.addLine(options)
Method Description |
Adds a line to the portlet. |
Returns |
Object |
Entry Point |
|
Since |
2016.2 |
Parameters
The options parameter is a JavaScript object.
Parameter |
Type |
Required / Optional |
Description |
Since |
---|---|---|---|---|
|
string |
required |
The text for the line. |
2016.2 |
|
string |
optional |
The URL link. |
2016.2 |
|
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
);
...