Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mathewparet/vue-print

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mathewparet/vue-print

A way to quickly print portion of a website.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

@mathewparet/vue-print

A way to quickly print portion of a website.

Install

npm install @mathewparet/vue-print

Load Globally

import Print from '@mathewparet/vue-print';
Vue.use(Print);

Install in current scope

import Print from '@mathewparet/vue-print';
export default {
    components: {
        Print
    }
}

Usage

<print ref="printData">
    <h1>Hello World</h1>
    <p class="print-hidden">I am hidden during print</p>
</print>

Methods

print()

Call this method to initiate print.

this.$refs.printData.print();

Attributes

NameRequiredTypeDefaultDescription
auto-closeNoBooleantrueIf true the print popup window will close when the print dialogue closes
use-manifestNoBooleantrueIf true the /mix-manifest.json file is called to identify the latest print-css file. If no manifest is found, it falls back to use the print-css file without version
print-cssNoString'/css/print.css'Defnes the default print.css file.

Classes

print-hidden

Use this class for elements that shouldn't be printed.

Events

print-closed

This event is fired when print window is closed.

FAQs

Package last updated on 03 Jan 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc