From 85ad565636ed18571df61434f10036acf6b296d5 Mon Sep 17 00:00:00 2001 From: Corey Franco <42871786+Core121@users.noreply.github.com> Date: Fri, 5 Jan 2024 08:27:34 -0500 Subject: [PATCH] Updated doc to include openNewTab property and specify supported versions for ngxPrintservice --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7fc98a4..15e5d53 100644 --- a/README.md +++ b/README.md @@ -187,7 +187,16 @@ Here some simple styles were added to every `h1` & `h2` tags within the `div` wh ngxPrint>print ``` -## Using NgxPrint as a service + +- To print in a new tab rather than a new window set the property `openNewTab` to true. By default `openNewTab` is false and ngxPrint will open a new print window. + +```html + +``` + +## Using NgxPrint as a service (v1.5+) Inject the NgxPrintService in the constructor of your component or service: ```typescript @@ -214,6 +223,7 @@ The print options object allows you to specify how the print job should be handl printTitle: string = null; useExistingCss: boolean = false; bodyClass: string = ''; + openNewTab: boolean = false; previewOnly: boolean = false; closeWindow: boolean = true; printDelay: number = 0;