Methods
(static) getReportAsText() → {string}
Get the generated report as text.
Returns:
- Type
- string
(static) getTemplateForUpload() → {object}
Get the template in JSON format.
Returns:
- Type
- object
(static) makeWidget(url, title, targetId, editorMode) → {Promise}
Make an embedded template builder or viewer widget.
Parameters:
Name | Type | Description |
---|---|---|
url |
string | The URL of the template JSON. |
title |
string | The title of the template. |
targetId |
string | The id of the element that will host the widget. |
editorMode |
boolean | 'true' for builder, 'false' for viewer. |
Returns:
- Type
- Promise
(static) togglePreviewMode()
Toggles between showing the form and the text output.