How to hide the file type option in the save as button OFFICE (*.pptx,*.docx,*.xlsx)

WebViewer Version:

Do you have an issue with a specific file(s)?NO
Can you reproduce using one of our samples or online demos?YES
Are you using the WebViewer server?YES
Does the issue only happen on certain browsers?NO
Is your issue related to a front-end framework?YES
Is your issue related to annotations?NO

Please give a brief summary of your issue:
(Think of this as an email subject)
How to hide the file type option in the save as button OFFICE (.pptx,.docx,*.xlsx)

Please describe your issue and provide steps to reproduce it:
(The more descriptive your answer, the faster we are able to help you)
How to hide the file type option in the save as button OFFICE (.pptx,.docx,*.xlsx)

Please provide a link to a minimal sample where the issue is reproducible:
How to hide the file type option in the save as button OFFICE (.pptx,.docx,*.xlsx)

image

1 Like

Hi 1091928997,

You can show or hide DOM elements in WebViewer UI with this API disableElements, see more here https://docs.apryse.com/documentation/web/guides/hiding-elements/

In order to hide that 3rd option in the dropdown:

instance.UI.disableElements(['dropdown-item-OFFICE (*.pptx,*.docx,*.xlsx)'])

Hope this helps!

Regards,
Maggie V.

1 Like