How to dispand sidebars in the initial view of the pdf

Hello there, I am using version 7.2.1

I want to make the sidebars invisible initially when the pdf opens. That means when the pdf opens the sidebars will not be shown. It will be shown if the sidebars are expanded by the user by clicking the expand buttons.
How can I achieve that!

Hey there!

You can use the closeElements API to close those panels:

instance.closeElements(['leftPanel', 'notesPanel'])

Thanks!
Logan

1 Like