Page 1 of 1
Position of JavaScript menu added
Posted: Fri Oct 04, 2024 4:14 am
by titeuf
For example, when I add JavaScript menu, Combine Even Odd pages., I can find the menu under Document (문서) only in Classic Mode.
In Ribbon UI, I can't find it.
I would be happy if I am able to find added menus using JavaScript easily in Ribbon UI.
Thanks in Advance.
2024-10-04 13 06 21.png
Re: Position of JavaScript menu added
Posted: Fri Oct 04, 2024 7:21 am
by Willy Van Nuffel
Did you try the proposed solution(s) ?
viewtopic.php?p=181400
Regards.
Re: Position of JavaScript menu added
Posted: Fri Oct 04, 2024 8:08 am
by Stefan - PDF-XChange
Hello Willy Van Nuffel,
Thanks for sharing the link to the other topic.
@titeuf - Dan has posted an updated file with his proposed solution in the other topic - so it should be relatively easy to try it out!
Kind regards,
Stefan
Re: Position of JavaScript menu added
Posted: Sat Oct 05, 2024 1:12 am
by titeuf
OK. I tried the solution and it works very fine. Thanks.
Re: Position of JavaScript menu added
Posted: Sat Oct 05, 2024 5:08 am
by Vasyl - PDF-XChange
In addition, to all JavaScript users: since 388 build we improved/extended the app.addMenuItem(), app.addSubMenu() and app.addToolButton() features. Here is
sample script that shows how to add custom Tabs/Groups/Menus/Buttons to the Ribbon/Classic UI. The result of this script is:
JSAddRibbonMenu.png
The feature is also related to the following topics:
viewtopic.php?t=37429
viewtopic.php?t=40887
viewtopic.php?t=42808
HTH.