JSViewer disable export

Posted by: rgreen on 23 July 2021, 10:46 am EST

    • Post Options:
    • Link

    Posted 23 July 2021, 10:46 am EST

    Hi,

    I was wondering if there was a way to disable just the export button the JS Viewer sidebar.

    I have created my own export button and functionality that is added to the toolbar. I know you can disable the entire sidebar, but I would like to keep the search button.

  • Posted 23 July 2021, 11:54 am EST

    Hello,

    You can set the “availableExports” property of JSViwer to null array.

    availableExports:

    Thanks,

    Mohit

  • Posted 23 July 2021, 12:05 pm EST - Updated 30 September 2022, 4:36 pm EST

    Hi Mohit,

    Doing that actually added more options to the export.

    When I had options before, it only showed PDF.

    availableExports: [‘Xml’, ‘Pdf’, ‘Image’]

  • Posted 23 July 2021, 12:43 pm EST

    Please try with following code:

    availableExports:[“”]

  • Posted 23 July 2021, 12:46 pm EST

    Hi Mohit,

    That worked, thank you!

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels