![]() There are four print document types available: 'pdf', 'html', 'image' and 'json'. When writing your javascript code, remember that the library occupies a global variable of printJS. If you will use the modal feature, also include Print.css on the page. When installing via npm or yarn, import the library into your project:įirst we need to include the Print.js library on the page. You can download the latest version of Print.js from the GitHub releases. JSON, HTML and Image print can receive a raw HTML header: We can customize the table header text sending an object array We can style the data grid by passing some custom css: This would probably come from an AJAX call to a server API: ![]() We have the following data set in our javascript code.
0 Comments
Leave a Reply. |