Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Detect whether bookmarks panel is open

Engaged ,
Dec 13, 2018 Dec 13, 2018

I have JavaScript that runs best with the bookmarks panel open. I know app.execMenuItem("ShowHideBookmarks"); toggles the bookmarks panel but I've not been able to find a way to detect whether it's already open.

Is there one?

Thank you

TOPICS
Acrobat SDK and JavaScript , Windows
745
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Dec 13, 2018 Dec 13, 2018

Yes, you can use: this.pane

It will return "B" when the bookmarks panel is open, and something else if it's not. For example, "T" if the pages thumbnails panel is open, or "N" if no panels are open.

Translate
Community Expert ,
Dec 13, 2018 Dec 13, 2018

Yes, you can use: this.pane

It will return "B" when the bookmarks panel is open, and something else if it's not. For example, "T" if the pages thumbnails panel is open, or "N" if no panels are open.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Dec 18, 2018 Dec 18, 2018

Thanks try, worked great. Where would that info be? Somewhere in the dev kit, maybe? I didn't see it in the api reference.

Thanks again

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 18, 2018 Dec 18, 2018
LATEST

It's an undocumented feature, actually, so use it with care.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines