mycurelabs / vue-html-to-paper

Vue mixin for paper printing html elements.
MIT License
298 stars 101 forks source link

Add local option to this.$htmlToPaper #36

Closed jofftiquez closed 4 years ago

jofftiquez commented 4 years ago

To override the global options, there must be a local option when invoking the $htmlToPaper prototype. E.g.:

const localOptions = {
  styles: [
   // some custom styles to override the global style
  ]
};
this.$htmlToPaper('elment', options);