Kap.Dashboard.toImage

Syntax

toImage (settings)

Parameters

settings. Image drawing parameters: Rendered - function that handles the event fired on rendering the screenshot; Scale - screenshot displaying scale.

Description

The toImage method creates a dashboard screenshot.

Example

To execute the example, the HTML page must contain an instance of the Kap.Dashboard class named dashBoard (see Dashboard constructor). Make a dashboard screenshot (code is executed from the browser console):

function openImage(sender, args) {

   window.open(args.Canvas.toDataURL(), "_blank");

}

var settings = {

   Renderer: {

      Rendered: openImage,

      Scale: 2

   }

};

dashBoard.toImage(settings);

Example execution opens a window that contains dashboard picture.

See also:

Kap.Dashboard