Skip to content

Al00X/printer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Nov 6, 2023
20dbe89 · Nov 6, 2023

History

29 Commits
Dec 18, 2021
Nov 6, 2023
Dec 19, 2021
Nov 6, 2023
Dec 19, 2021
Dec 18, 2021
Dec 18, 2021
Dec 18, 2021
May 20, 2022
Jun 6, 2023
Dec 19, 2021
Dec 18, 2021
Dec 18, 2021
Nov 6, 2023
Nov 6, 2023
Dec 18, 2021
Dec 18, 2021
Dec 18, 2021
Dec 18, 2021

Repository files navigation

@Al00X/Printer

🖨️ Quickly print anything, anywhere, anytime! with Angular.

✅ Setup:

Install using your prefered package manager:

npm i @al00x/printer

Add the line below to your global styles inside the angular.json:

"styles": [  
	  ...
	  "./node_modules/@al00x/printer/styles.css"
	],

✨ Usage:

You can simply throw alxPrinter directive on any html block and print!

<div alxPrint #printer="alxPrint">
...
</div>

<button (click)="printer.print()">Print</button>

You can also pass a HTMLElement to print() manually.

⚙️ Directive Inputs:

property usage default
hidden: boolean When set to true, the element itself gets hidden but visible to the print. false
printFn: void function If you need a different printing function, provide its function here. () => window.print()

About

A handy Angular package for easy printing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published