1.0.3 • Published 1 year ago

universal-print-js-id-block v1.0.3

Weekly downloads
-
License
OOO TWIN
Repository
-
Last release
1 year ago

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>
1.0.3

1 year ago

1.0.2

1 year ago