Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HTMLPreview

Display of HTML Preview window, the same as the HTMLPreview action step. Returns true if user closed preview with the "Continue" button, false if the user cancelled.

Example

let html = "<html><body>My Document</body></html>"

let preview = HTMLPreview.create();
if (preview.show(html)) {
  // continue button was pressed
}
else {
  // cancel button was pressed
}

Hierarchy

  • HTMLPreview

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

hideInterface

hideInterface: boolean

Hides the toolbars and Cancel / Continue buttons in the preview window. For use only when combined with JavaScript flow control in the HTML preview. See docs for details.

Methods

show

  • show(html: string): boolean
  • Open HTML Preview window displaying the HTML string passed.

    Parameters

    • html: string

      The HTML content to display. Should be complete HTML document.

    Returns boolean

Static create

Generated using TypeDoc