/**
* @NApiVersion 2.x
* @NScriptType Portlet
* @NModuleScope SameAccount
*/
define(['N/ui/serverWidget'],
function(serverWidget) {
/**
* Definition of the Portlet script trigger point.
*
* @param {Object} params
* @param {Portlet} params.portlet - The portlet object used for rendering
* @param {number} params.column - Specifies whether portlet is placed in left (1), center (2) or right (3) column of the dashboard
* @param {string} params.entity - (For custom portlets only) references the customer ID for the selected customer
* @Since 2015.2
*/
function render(params) {
var content = '';
params.portlet.title = 'Inline HTML with Image';
var content = '<div style="width: 100%;text-align:center;"><span><b>The image below is rendered using an HTML</b></span></div><br>';
content += '<span><a
href="https://suiteanswers.custhelp.com/app/home"><img
style="width:100%;height:auto;" src = "<your image URL here>"></a></span>';
params.portlet.html = content;
}
return {
render: render
};
});