Vue html to print. This is a Vue mixin for paper printing HTML elements. Import and install the vue-html-to-paper component. Use the callback function to be notified when printing has been completed (whether or not it was successful). The only required parameter is content, which is a ref pointing to the HTML element you want to print. Only use HTML interpolation on trusted content and never on user-provided content. Register the component. You can use vue-to-print by combining the Composition API (useVueToPrint). Callback While the this plugin supports async await, the callback function is also available. How to use it: 1. Vue. A Vuejs3 Package that allows you to open a print window of the contents given - nvanderwaal/vue-html-to-print. The callback method is not required. Contribute to gkandemi/vue-html-print development by creating an account on GitHub. There are no changes to the way you use the plugin nor the way you install it. use(VueHtmlToPaper); 3. In your app Vue 2 is now low priority support, but feel free to send PR to v1 branch, and I'll be happy to publish them. use(VueHtmlToPaper, options); // or using the defaults with no stylesheet Vue. Dynamically rendering arbitrary HTML on your website can be very dangerous because it can easily lead to XSS attacks. import Vue from 'vue'; import VueHtmlToPaper from 'vue-html-to-paper'; 2. jkwnhllkksjmdhqgllyztsclpfmcxipngsuottaapjpcnxjzd