print ();
The print method prints a block.
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: "Block print", 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: