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'\]);
});
Hi there,
Your code snippet has backward slashes inside the brackets. Could you please try removing that and see if that works for you?
Alternatively, you can also hide the spinner via CSS. Please see this guide on using CSS with WebViewer:
Best regards,
Kevin
While posting backward slashes was added, but in my actual code backward slashes note there.
instance.UI.disableElements([‘loadingModal’]);
Sorry about that, the correct data-element for 11.7.1 for the loading spinner is ‘progressModal’
Please use instance.UI.disableElements(['progressModal'])
Best regards,
Kevin
Thanks for the response.