Simple Print
Simple Javascript utility to print HTML element easier.
Getting started
Demo Here
See1. Use Package with NPM or YARN with ES6 import
# with npm $ npm i simple-print --save # or with yarn $ yarn add simple-print
2. With CDN
<!-- PRODUCTION BUILD --> <!-- OR --> <!-- DEVELOPMENT BUILD -->
How to Use
Simple use
var print = styles: 'https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css' 'assets/css/your.css' { print}
With advanced options and callback
var element = document var opts = name: '_blank' specs: 'fullscreen=yes' 'titlebar=yes' 'scrollbars=yes' styles: 'https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css' var print = opts { // you can assign your new options like this printoptions = styles: 'your-path/other-style.css' print}
Feel free to contribute simple-print 🙂
Copyright © 2019 by Sutan Gading Fadhillah Nasution