Module: xreport-embed

Main entry point of xreport-embed library.
Source:

Methods

(static) getReportAsText() → {string}

Get the generated report as text.
Source:
Returns:
Type
string

(static) getTemplateForUpload() → {object}

Get the template in JSON format.
Source:
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.
Source:
Returns:
Type
Promise

(static) togglePreviewMode()

Toggles between showing the form and the text output.
Source: