0.1.0 • Published 2 years ago

ngx-m-print v0.1.0

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

Simple library for print in angular

Install npm i ngx-m-print

Import into main module

import {NgxMPrintModule} from 'ngx-m-print';
 
@NgModule({
 
imports: [NgxMPrintModule]
 
})
export class AppModule {
}

Add directive to template

<div lib-ngx-m-print [printElement]="true"> 
  <!--Element you WANT to print-->
</div>

<div lib-ngx-m-print [printElement]="false"> 
  <!--Element you DON'T WANT to print-->
</div>
 
<button print>Print</button>

Print button should have 'print' directive.

Button with print directive can co-exist with lib-ngx-m-print. So you can hide the button from print preview like this.

<button lib-ngx-m-print [printElement]="false" print>Print table</button>

This is a component acting and used as a directive (similar to button in Material button)

Printed element looks the same as in your app.

Queries?

If you have any queries or complaints, please write it to my email. harichshore@gmail.com

0.1.0

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago