OfficeDev / office-js

A repo and NPM package for Office.js, corresponding to a copy of what gets published to the official "evergreen" Office.js CDN, at https://appsforoffice.microsoft.com/lib/1/hosted/office.js.
https://learn.microsoft.com/javascript/api/overview
Other
657 stars 93 forks source link

How to use Office.js Ribbon API for Customizing a Ribbon Through Size Definitions and Scaling Policies #2468

Closed gopinathshiva closed 1 year ago

gopinathshiva commented 2 years ago

In my project, I'm currently loading ribbons in Excel add-in using Office.js Ribbon API

Office.ribbon.requestCreateControls(Ribbon_JSON_HERE);

I would like to know how to achieve customizing a ribbon's size definition and scaling policies via Ribbon API. I found a doc which can do this in manifest.xml way - https://docs.microsoft.com/en-us/windows/win32/windowsribbon/windowsribbon-templates . I need this ability to do this using Ribbon API.

Any help on this is really appreciated.

davidchesnut commented 2 years ago

Hi @gopinathshiva,

I apologize for the late response on your issue. @AbidRahman-MSFT can you help with this issue? If this isn't possible it would be great to add this as a feature request at https://aka.ms/m365dev-suggestions.

Thanks, David

AbidRahman-MSFT commented 2 years ago

Hey @gopinathshiva - we currently do not support sizing and scaling policies via the Ribbon API. As David suggested, please log a feature request at https://aka.ms/m365dev-suggestions.

Thanks, Abid

gopinathshiva commented 2 years ago

Thanks for the info. Logged the ticket - https://techcommunity.microsoft.com/t5/microsoft-365-developer-platform/using-office-js-ribbon-api-for-customizing-a-ribbon-through-size/idi-p/3269731#M852