ms-wordoffice-jsword-addins

Is this possible to add/update ribbon dynamically while runtime in word add-in created with officejs?


I am developing a Word add-in using OfficeJS and Angular. There is a requirement to update the ribbon text dynamically at runtime. Is this possible now?

I want to display the name of the current session, which I will update at runtime. I would like to show this text in the ribbon.


Solution

  • I'm afraid that this cannot be done. The strings that appear on custom ribbon controls and groups are hardcoded in the add-in's manifest and cannot be changed at runtime. (As far as I can recall, this is even true of built-in ribbon controls. Although some ribbon tabs can appear in certain contexts, text on the ribbon does not change dynamically.)