vue-simple-print

0.1.2 • Public • Published

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>

Package Sidebar

Install

npm i vue-simple-print

Weekly Downloads

16

Version

0.1.2

License

none

Unpacked Size

1.44 MB

Total Files

18

Last publish

Collaborators

  • josueaqp92