1.3.1 • Published 2 years ago

@al00x/printer v1.3.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@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:

propertyusagedefault
hidden: booleanWhen set to true, the element itself gets hidden but visible to the print.false
printFn: void functionIf you need a different printing function, provide its function here.() => window.print()
1.3.1

2 years ago

1.3.0

2 years ago

1.2.0

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago