Ribbon API – allow default action for a drop-down button

Ribbon API – allow default action for a drop-down button
0

Upvotes

Upvote

 Jun 11 2024
1 Comments (1 New)
New

In our legacy COM-based add-in add-in, the buttons defined programmatically in our ribbon can have a "default" action that, being clicked in the "main" button area, does not open the drop-down menu but simply triggers the default action defined for that menu:

 

pkabirrvelixo_0-1718120981716.png

 

However, in the Office.js API, the dropdown always opens without an ability to define the default action. 

pkabirrvelixo_1-1718121086104.png

 

1. This results in extra clicks when the default action makes sense in 95% of the cases.

2. This results in a UI discrepancy between our legacy COM add-in and the new add-in, which makes support more difficult.

Comments
Iron Contributor

To clarify, we use the dynamic ribbon API (what's called "contextual tabs")