$customPrint
generates custom HTML to print instead of the widget HTML and invokes printing
let $customPrint: function
Example
Section titled “Example”var html = datagrid1.$customPrint({ mode:"portrait", size:{ width: 11.7, height: 16.5 }}, true);
Details
Section titled “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 DataGrid uses 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.