From aa10da36b79130027d7e564afd20c527a373fe2b Mon Sep 17 00:00:00 2001 From: Tim Sielemann Date: Wed, 23 Oct 2024 10:15:42 +0200 Subject: [PATCH] feat(angular): add no scroll input to dialog component (#592) Co-authored-by: Tim Sielemann --- .../projects/catalyst/src/lib/dialog/dialog.component.html | 7 ++++++- .../projects/catalyst/src/lib/dialog/dialog.component.ts | 7 +++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/angular/projects/catalyst/src/lib/dialog/dialog.component.html b/angular/projects/catalyst/src/lib/dialog/dialog.component.html index 96b49c46..06bd34d0 100644 --- a/angular/projects/catalyst/src/lib/dialog/dialog.component.html +++ b/angular/projects/catalyst/src/lib/dialog/dialog.component.html @@ -1,5 +1,5 @@ - + +
+ +
+
diff --git a/angular/projects/catalyst/src/lib/dialog/dialog.component.ts b/angular/projects/catalyst/src/lib/dialog/dialog.component.ts index c7b8c62f..a4c32fc7 100644 --- a/angular/projects/catalyst/src/lib/dialog/dialog.component.ts +++ b/angular/projects/catalyst/src/lib/dialog/dialog.component.ts @@ -25,6 +25,13 @@ import { CatDialogHeaderComponent } from './dialog-header.component'; } }) export class CatDialogComponent implements AfterContentInit { + + /** + * Flag to disable scrolling behavior of dialog content. Default is false. If set to true the + * using component is responsible for not overflowing the viewport. + */ + @Input() disableScrolling = false; + /** * Flag to disable/enable overscroll behavior. */