- Source:
Methods
(inner) createMessage(templateString, replacements, markeropt) → {string}
Creates a message using a template strings.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
templateString | string | The template message string. | |
replacements | Array.<string> | The template string replacements. | |
marker | string | <optional> | The template marker to replace in the string. |
- Source:
Requires:
Throws:
Will throw an error a message replacement contains a template marker.
Returns:
The message with the template markers replaced.
- Type
- string
(inner) createMessage(message) → {HTMLElement}
This function creates an HTML 'Message-Box' Element containing a program message.
Parameters:
Name | Type | Description |
---|---|---|
message | string | messageBoxObject | A string message to use or an |
- Source:
Requires:
Returns:
- Type
- HTMLElement