I read it on print-js documentation that we can pass style as a string to printJS
function, so that style we pass in gets applied, but I a landing to an error that is not allowing the print to happen:
I am getting this error: ReferenceError: Can't find variable: style
I am passing the style to printJS in vue component like this
printSlip: function(){
printJS('printSlip', 'html', style="display: inline-block; text-align: center; padding: 30px; margin: 15px; text-align: center; padding: 15px; vertical-align: top;");
},