DEV Community

loading...

Prints a specific area/element of your html page for any frontend framework

Trinmar Boado
An ICT Advocate, Trainer and Consultant. He is giving talks and facilitating Hands-on Trainings to schools and other IT
・1 min read

Welcome to ink-html!


Prints a specific area/element of your html page for any frontend framework

  • [x] Form Input Values
  • [x] CSS @media print
  • [x] Popup Options

Installation

npm install ink-html

or

yarn add ink-html

CDN

  <script src="https://unpkg.com/ink-html/dist/index.js"></script>

Usage

import print from 'ink-html'
// const print = inkHtml // for CDN

// js
print(window.querySelector('#printable'))
// Vue.js
print(this.$refs.printable.$el)

Join and support our Community

Web and Mobile Developers PH

[ Facebook Page | Group ]

Join and support our Community
Web and Mobile Developers PH
[ Facebook Page | Group ]

Discussion (0)