Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Angular 9 - Not printing modal window #98

Open
JustAnotherDev22 opened this issue Aug 25, 2020 · 2 comments
Open

Angular 9 - Not printing modal window #98

JustAnotherDev22 opened this issue Aug 25, 2020 · 2 comments

Comments

@JustAnotherDev22
Copy link

Describe the bug
I have a modal window that I would like to print. I've added the code as per the documentation. However, when I click on the button nothing happens.

To Reproduce
Steps to reproduce the behavior.

Here is the relevant code in my application:

parent html:

<app-smtbtms-case-management-edit #editCaseDetailModal (updateSuccess)="updateCaseDetailsResponse($event)"> </app-smtbtms-case-management-edit>

parent ts:

@ViewChild('editCaseDetailModal') editCaseManagementComponent: CaseManagementEditComponent;

child html:

`

`` … Print ...
`

app module:

Added to the import section.

Expected behavior
modal window should print.

Screenshots

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Chrome
  • Version 84.0.4147.135 (Official Build) (64-bit)

Additional context
Let me know if you need additional info. Thx

@JustAnotherDev22
Copy link
Author

Accidentally deleted from child html section:

<button printSectionId="editCaseDetailModal" ngxPrint>Print</button>

@Core121
Copy link
Collaborator

Core121 commented Dec 4, 2023

Are you still having this issue? I would check your console logs and make sure the section id is being found by the child component.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants