(docs/confirmation) Updated the docs of the confirmation dialog

This commit is contained in:
sercan 2021-08-04 10:10:07 +03:00
parent f6bf0fb5d3
commit 7c402670a1
2 changed files with 16 additions and 2 deletions

View File

@ -24,7 +24,7 @@
<div class="max-w-3xl">
<div class="max-w-3xl prose prose-sm">
<p>
One of the repetitive and tedious jobs in Angular is to create confirmation dialogs. Since dialogs require their own component
One of the repetitive and tedious jobs in Angular is to create confirmation dialogs. Since dialogs require their own components
you have to either create a separate component every time you need a confirmation dialog or you have to create your own
confirmation dialog system that can be configured.
</p>

View File

@ -208,7 +208,21 @@
<h2>MatDialogRef</h2>
<p>
Since <code>FuseConfirmationService</code> uses <em>MatDialog</em> behind the scenes, it returns
a reference to the created dialog. Using that reference, you can access to the user input:
a reference to the created dialog. You can use all available methods from that reference such as
<code>updateSize</code> and <code>updatePosition</code> to further customize the dialog.
</p>
<p>
See
<a
href="https://material.angular.io/components/dialog/api#MatDialogRef"
target="_blank"
rel="noreferrer">
https://material.angular.io/components/dialog/api#MatDialogRef
</a>
for the complete list of available methods.
</p>
<p>
Using the reference, you can also access to the user input:
</p>
<!-- @formatter:off -->
<textarea