1.0.3 • Published 1 year ago
universal-print-js-id-block v1.0.3
This plugin can print your html block
To print a block that has an id.
Just pass the id to the function Print()
example: Print("print-test")
Example:
import { Print } from "universal-print-js-id-block";
...
// JS|TS function call
const print = () =>{
Print("print-test")
}
// HTML
<button onClick={print}>Print me</button>
<div id="print-test">
<h1> Text for print </h1>
</div>