Kap.JsBlock.print

Syntax

print ();

Description

The print method prints a block.

Example

To execute the example the page must contain a dashboard designed named kapBox, and the currentBlock variable must be defined in the page. This variable must contain selected dashboard block (see Kap.KapBox). The BODY tag must contain a DIV element with the "but" identifier. Add a button clicking which will open a dialog box for selecting block print options:

            var printButton = new PP.Ui.Button({
                ParentNode: "but",
                Content: "Print block",
                Click: function () {
                    currentBlock.print();
                }
            });

After executing the example the Print Block button is placed in the page. Clicking this button opens a dialog box for choosing print options for the selected block.

See also:

Kap.JsBlock