Multi-Tab Document Viewing - Enable or Disable Tab Actions

In version 10.4.0, I am viewing multiple documents as Multi-Tab. Firstly, I want to prevent documents from being closed by clicking on the close button. Secondly, I want to modify the functionality of opening a new tab or disable the new tab opening button and create a new tab with an empty document using a custom button that I add myself. I would appreciate your assistance.

1 Like


Thank you for contacting WebViewer support.

Unfortunately, we currently don’t have a way of preventing the documents from being closed by clicking on the close button. If you want, you can answer some questions and I can open a request for this feature for the product team to review the feasibility of this.

  • Do you want to hide the close button? Or just disable it?
  • How would be another way of closing a document?
  • Please describe any other relevant details about your use case.

About the second requirement, where are you thinking of adding this custom button? Can it be on top of the tabs? If so, you can add your button on your index.html file, for example

 <body style='padding: 0; margin: 0'>
    <div id='viewer'>
      <button id='sample-button'>Add tab</button>
    <script src='./index.js'></script>

and you can use this button to call the API addTab. This would not handle the whole desired behaviour because we also don’t have a way to disable the add tab button. If you also want me to open a request for this, please let me know and describe better how would be the whole flow. If you have prototypes it would be great. If you want more privacy, please open a new ticket using this link.

Dandara Navarro

1 Like