This class allows the client-side script to execute the code on the server-side using Script Includes. it is used to create branded notifications.
This method sets the main header of email notification.
Parameter(s):
Name | Type | Mandatory | Default value |
---|---|---|---|
title | String | Y | N |
Return:
Type | Description |
---|---|
Void | This method does not return a value. |
This method sets the header of text body of email notification.
Parameter(s):
Name | Type | Mandatory | Default value |
---|---|---|---|
bodyHeader | String | Y | N |
Return:
Type | Description |
---|---|
Void | This method does not return a value. |
This method sets the main text body of email notification.
Parameter(s):
Name | Type | Mandatory | Default value |
---|---|---|---|
bodyText | String | Y | N |
Return:
Type | Description |
---|---|
Void | This method does not return a value. |
This method sets the email notification comment:
Parameter(s):
Name | Type | Mandatory | Default value |
---|---|---|---|
comment | String | Y | N |
Return:
Type | Description |
---|---|
Void | This method does not return a value. |
This method returns the main header of notification.
Return:
Type | Description |
---|---|
String | The main header of notification. |
This method returns the main header of text body.
Return:
Type | Description |
---|---|
String | The main header of text body. |
This method returns the main text body.
Return:
Type | Description |
---|---|
String | The main text body. |
This method returns the comment text.
Return:
Type | Description |
---|---|
String | The comment text. |
This method returns the array of buttons.
Return:
Type | Description |
---|---|
Array | The array of buttons. |
This methods adds a new button to array of buttons.
Parameter(s):
Name | Type | Mandatory | Default value |
---|---|---|---|
text | String | Y | N |
url | String | Y | N |
color | String | Y | N |
buttonArray | Array | Y | N |
Return:
Type | Description |
---|---|
Array | The base of buttons array with the new one. |
This method removes the last added button.
This method removes all added buttons.
This method sets internal method for input type validation.
Parameter(s):
Name | Type | Mandatory | Default value |
---|---|---|---|
propertyName | String | Y | N |
input | String/Number | Y | N |
propertyTitle | String | Y | N |
This method creates and returns HTML template based on set properties.
Return:
Type | Description |
---|---|
String | The HTML template. |