Questions tagged [mat-dialog]

145 questions
0
votes
1 answer

Angular dialog : How to insert the dialog in another template

I have a dialog and I want the dialog (not the button) top open inside another component. What is the best method? If I insert the html tag is always display, not only when we click. Is there a template target method I could use? …
snowlight
  • 23
  • 3
0
votes
2 answers

Angular Dialog: How to make the button open or close depending on state

I am using the Dialog component and I need the main button to close the dialog when the dialog is opened. I am using the dialog with no backdrop overlay because I need the user to interact with the page while the dialog is opened. The close button…
snowlight
  • 23
  • 3
0
votes
2 answers

How to provide service to MatDialog

I am creating component for matDialog. this.matDialog.open(SegmentDialogComponent, { data: segment }}) .afterClosed() .pipe( take(1), filter((i: any) => i) ).subscribe((i: CLASS) => this.update.emit(i) ); How I can provide service…
0
votes
1 answer

Angular mat dialog weird behavior: shrinking the main app upwards permanently when openned

I am using a dynamic MatDialog for confirmations and it opens displaying the message properly when the button clicked, except for the fact that every time any of the buttons that trigger the dialog is clicked, the cdk-overly-container appears in the…
0
votes
3 answers

Mat Dialog boxes close button is not working on IOS devices

Im using Angular 13 for my application. And I used angular-material Mat-Dialog box as a pop up modal. This is the HTML code of the submit and close buttons.
0
votes
0 answers

Scroll to element in mat-dialog using fragment link

I'm implementing a list of posts in a dialog, where a post can quote another post. I would like to be able to scroll to the quoted post when clicking a link which looks like this: 123 However, when I click the link, it…
0
votes
1 answer

How to place text under the icon angular mat tool bar

I want to place icon text under the icon in angular mat tab