mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2024-10-30 09:18:46 +00:00
(docs/confirmation) Updated the docs of the confirmation dialog
This commit is contained in:
parent
f6bf0fb5d3
commit
7c402670a1
|
@ -24,7 +24,7 @@
|
||||||
<div class="max-w-3xl">
|
<div class="max-w-3xl">
|
||||||
<div class="max-w-3xl prose prose-sm">
|
<div class="max-w-3xl prose prose-sm">
|
||||||
<p>
|
<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
|
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.
|
confirmation dialog system that can be configured.
|
||||||
</p>
|
</p>
|
||||||
|
|
|
@ -208,7 +208,21 @@
|
||||||
<h2>MatDialogRef</h2>
|
<h2>MatDialogRef</h2>
|
||||||
<p>
|
<p>
|
||||||
Since <code>FuseConfirmationService</code> uses <em>MatDialog</em> behind the scenes, it returns
|
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>
|
</p>
|
||||||
<!-- @formatter:off -->
|
<!-- @formatter:off -->
|
||||||
<textarea
|
<textarea
|
||||||
|
|
Loading…
Reference in New Issue
Block a user