Kap.Dashboard.print

Syntax

print ();

Description

The print method prints dashboard.

Example

To execute the example, the HTML page must contain an instance of the Kap.Dashboard class named dashBoard (see Dashboard constructor).

In the BODY tag add a button that prints the dashboard:

<button id="printBut">Print</button>

 

In the body of the onModuleInit function add event handler that processes clicking the added button:

            document.getElementById("printButton").onclick = function () {
                dashBoard.print();
            };

After executing the example the Print button is placed in the page. Clicking this button opens a dialog box where the user can select dashboard preview and print options.

See also:

Kap.Dashboard