Excel Ribbon - change size of Ribbon buttons in custom tab

Excel Ribbon - change size of Ribbon buttons in custom tab
3

Upvotes

Upvote

 Aug 24 2022
2 Comments (2 New)
New

Currently the default size is large for all Ribbon buttons in custom tab. It'd be great if the size can be preset to small or large size and programmatically changed similar to desktop Excel Add-in in normal or large, eg:

<button id="Dashboard" label="Dashboard" size="normal">

Comments
Senior Member

We request this functionality for contextual ribbons defined programmatically.

Senior Member

This is the ribbon we have in our classic, COM-based add-in:

 

Screen Shot 2022-09-20 at 09.21.35.png

We are trying to port our add-in to the new Office JS API and want to replicate the user experience as best as we can.

 

I remember this being a limitation when we first looked at the API a few years ago but I am surprised to see the ribbon API still doesn't have full support for the different options used by Excel and other office apps internally.