Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

vue-simple-print

josueaqp92820.1.2

This is a simple directive to print html section with vue.

vue, print, directive, print-directive, vue-print, print-html, print-section, v-print, printable

readme

VueSimplePrint

This is a simple directive to print html section with vue.

DEMO

Try the Demo

Installation

npm install vue-simple-print --save

Usage

Import the module into your main.js file.

import VueSimplePrintPlugin from 'vue-simple-print';

Vue.use(VueSimplePrintPlugin);

And you can use the directive in your app

<template>
<div>
    <button
    v-simple-print="'contentToPrint'"
    >Print Content</button>
    <div id="contentToPrint">
        your content...
    </div>
</div>
</template>