WebViewer Version: 11.7.1
How to hide the circular progresbar which is showing while loading document
WebViewer Version: 11.7.1
How to hide the circular progresbar which is showing while loading document
Hi there,
You can hide the default loading spinner by disabling it via:
instance.UI.disableElements(['loadingModal']);
Let me know how this works for you.
Best regards,
Kevin
Hi,
Thanks for the quick reply. I tried with this code. still it is showing.
WebViewer({
path: baseHref + 'lib/webviewer',
licenseKey: this.commonService.aspyreKey,
initialDoc: '',
// enableFilePicker: true,
fullAPI: true,
css: 'assets/css/webviewer-docview.css'
}, this.viewer.nativeElement).then(instance => {
let that = this;
this.viewerInstance = instance;
const { UI, Core } = instance;
const { Annotations, annotationManager, documentViewer, Tools } = Core;
const { Feature } = instance.UI;
UI.setToolbarGroup('toolbarGroup-View');
UI.disableElements(\[
'toolbarGroup-View', // entire View menu
'toolbarGroup-Edit', // entire Edit menu
'toolbarGroup-Annotate', // entire Annotate menu
'toolbarGroup-FillAndSign',
'toolbarGroup-Shapes',
'toolbarGroup-Insert',
'menuOverlay', // context menu
'downloadButton', // single button
'toolbarGroup-Edit',
'toolbarGroup-Forms',
'panToolButton',
'progressBar'
\]);
instance.UI.disableElements(\['loadingModal'\]);
});
While posting backward slashes was added, but in my actual code backward slashes note there.
instance.UI.disableElements([‘loadingModal’]);
Thanks for the response.