This type is being used to display documents connected to your project. The display of the document is provided in different formats:
- As a PDF file
- As an HTML page - there are 2 different ways to set it up:
- Using a URL (website link)
- Using HTML
PDF Document Example
This example displays a Document Jig used to display a PDF document.
HTML Document Example (URL)
In this example a Document Jig is used to display an HTML document/page.
HTML Document Example (Content)
You can also use this Jig type to pass raw HTML into the webview (without linked CSS, JS etc.).
If your HTML content does not render as expected (e.g. font too small etc.) embed this HTML tag into your HTML content that you are passing into the uri option.
In this example a Document Jig is used to display raw HTML content.
See the full code sample in GitHub.
HTML Document Example (Content with Message Listener)
You can also use this Jig type to pass raw HTML into the web view (without linked CSS, JS etc.).
This code example is not in the jigx.samples solution in GitHub.