Clean header
This commit is contained in:
parent
f340b487de
commit
e8c347251b
@ -70,6 +70,7 @@ export class PdfViewerComponent implements OnInit, AfterViewInit, OnDestroy {
|
||||
this.wvInstance = instance;
|
||||
this._viewerSyncService.registerViewer(this.fileType, this.wvInstance);
|
||||
this._configureTextPopup();
|
||||
this._configureHeader();
|
||||
instance.docViewer.on('documentLoaded', this.wvDocumentLoadedHandler)
|
||||
instance.loadDocument(pdfBlob, {filename: this.fileStatus ? this.fileStatus.filename : 'file.pdf'});
|
||||
this.fileReady.emit();
|
||||
@ -112,6 +113,11 @@ export class PdfViewerComponent implements OnInit, AfterViewInit, OnDestroy {
|
||||
});
|
||||
}
|
||||
|
||||
private _configureHeader() {
|
||||
this.wvInstance.disableElements(['ribbons']);
|
||||
this.wvInstance.setToolbarGroup('toolbarGroup-View');
|
||||
}
|
||||
|
||||
ngOnDestroy(): void {
|
||||
this._viewerSyncService.deregisterInstance(this.fileType);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user