Skip to content

Commit

Permalink
refactor: add example for inner close button
Browse files Browse the repository at this point in the history
  • Loading branch information
inga committed Aug 26, 2024
1 parent e4fdeec commit 1d1c1f1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,24 @@
[showCloseButton]="true"
>
<div>
here comes some content. This is a dialog with the a fallback Close
here comes some content. This is a dialog with the fallback Close
Button. (when the user don't have a close button)
</div>
</sk-dialog>
</div>

<div>
<button (click)="isDialogWithInnerFallbackButtonOpen = true">
open Dialog with fallback outer button right
</button>

<sk-dialog
[(open)]="isDialogWithInnerFallbackButtonOpen"
(close)="isDialogWithInnerFallbackButtonOpen = false"
[showCloseButton]="true"
>
<div>
here comes some content. This is a dialog with the inner fallback Close
Button. (when the user don't have a close button)
</div>
</sk-dialog>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export class DialogSampleComponent {
isDialogWithOuterButtonLeftOpen = false;
isDialogWithInnerButtonLeftOpen = false;
isDialogWithFallbackButtonOpen = false;
isDialogWithInnerFallbackButtonOpen = false;
isDialogWithShadowOpen = false;
isFullscreenDialogOpen = false;
isDialogWithOverflowOpen = false;
Expand Down

0 comments on commit 1d1c1f1

Please sign in to comment.