From e9c2e8123fdc6091d7d20e24f96bd14c6ebbbb48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Woli=C5=84ski?= Date: Mon, 18 Dec 2023 10:02:06 +0100 Subject: [PATCH] [AEV-4] - Expose isLoading viewer input --- lib/core/src/lib/viewer/components/viewer.component.html | 1 + lib/core/src/lib/viewer/components/viewer.component.ts | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/lib/core/src/lib/viewer/components/viewer.component.html b/lib/core/src/lib/viewer/components/viewer.component.html index 343485d8ca6..8bfd1f625c1 100644 --- a/lib/core/src/lib/viewer/components/viewer.component.html +++ b/lib/core/src/lib/viewer/components/viewer.component.html @@ -155,6 +155,7 @@ [fileName]="fileName" [blobFile]="blobFile" [readOnly]="readOnly" + [isLoading]="isLoading" (submitFile)="onSubmitFile($event)" [urlFile]="urlFile" (isSaving)="allowNavigate = !$event" diff --git a/lib/core/src/lib/viewer/components/viewer.component.ts b/lib/core/src/lib/viewer/components/viewer.component.ts index b4ce06dfe23..1778ae8eec1 100644 --- a/lib/core/src/lib/viewer/components/viewer.component.ts +++ b/lib/core/src/lib/viewer/components/viewer.component.ts @@ -102,6 +102,10 @@ export class ViewerComponent implements OnDestroy, OnInit, OnChanges { @Input() showToolbar = true; + /** Override loading status */ + @Input() + isLoading?: boolean + /** * If `true` then show the Viewer as a full page over the current content. * Otherwise fit inside the parent div.