Since Webviewer 11.9.0, it is not possible to disable "default-top-header"

Hi,

I’m using the webviewer on a page with the following options ;

await WebViewer(
      {
        path: environment.aprysePath,
        css: environment.apryseCss,
        disabledElements: [
          'annotationPopup',
          'contextMenuPopup',
          'textPopup',
          'inlineCommentPopup',
          'toolStylePopup',
          'linkAnnotationPopup',
          'audioPlaybackPopup',
          'calibratePopupButton',
          'stylePopup',
          'annotationStylePopup',
          'snippingToolPopup',
          'annotationClearSignatureButton',
          'default-top-header',
          'inlineCommentPopup',
          'linkButton',
          'linkAnnotationPopup',
          'page-nav-floating-header',
          'textStrikeoutToolButton',
          'textHighlightToolButton',
          'textSquigglyToolButton',
          'textUnderlineToolButton',
          'tools-header',
        ],
        ....
      }

But since I’ve upgraded to verson 11.9.0, ‘default-top-header’ is not disabled any more, even if it is part to the disabledElements array.

Is there a better way to disable the default-top-header ??

Thank you in advanced

1 Like

Hello, I’m AiRon, an automated tech support bot :robot:
While you wait for one of our customer support representatives, I can help you with your question.


It seems that the default-top-header might not be disabled using the disabledElements array in the version you are using. This could be due to changes in how elements are managed or named in the newer version of WebViewer.

Some things you can try:

  • Ensure that the element name default-top-header is correct. Sometimes element names can change between versions.

  • Consider using CSS to hide the default-top-header if disabling it through the API does not work. You can target the specific CSS class or ID associated with the header and set its display to none.

  • Review the documentation for any changes or updates in the API related to UI customization that might affect how elements are disabled.



Here are some resources that might help you:


Hopefully, this helps you solve your problem while you wait for a human to get back to you.

2 Likes

Hi there,

An alternative way to disable a particular element would be to use the disableElements API:

i.e. you can use this after WebViewer instantiates:
UI.disableElement('default-top-header')

best regards,
Kevin

2 Likes