$customPrint

generates custom HTML to print instead of the widget HTML and invokes printing

function $customPrint;

Example

var html = $$("$datatable1").$customPrint({
    mode:"portrait", 
    size:{ width: 11.7, height: 16.5 }
}, true);

Details

The method takes the following parameters:

  • options - (object) print options to be applied. The full list is given in the related article
  • htmlOnly - (boolean) if true, returns custom HTML and doesn't invoke printing. False by default

Now Datatable, Dataview, X-List, Spreadsheet and PDFViewer components use this method. We don't recommended to call it directly, but you can provide custom logic for printing your custom components with its help, if needed.

Back to top