Support dynamic content in Add-in commands ribbon dropdown menu
It would be very useful if add-ins dropdown menu could contain dynamically generated items. Now the displayed content in the ribbon dropdown need to be hardcoded even for sub-menus which limit the capabilities of add-ins commands.
See question on stackoverflow
Benoit, thank you for your input, it is greatly appreciated. This is definitely something we’d like to get to soon, but unfortunately there are a few other higher priority items. We’ll keep you posted with status updates.
Office Extensibility Team
Jake Armstrong commented
This is essential to our future O365 development
awaiting updates so we can plan better
Has this been implemented yet? I has been over a year.
With dynamically generated dropdown it would be beneficial to have stated buttons (push button); Currently command buttons are limited to run actions only and if there is no visual indication user don't know if action succeeded or not.
If push buttons will be difficult to implement and dynamic menu you would consider, there will be work around to indicate "state" of the command button by dynamically display "turn on" and "turn off" menu items, which replicate state.
In general making the entry points dynamic, both ribbon buttons and right-click menus would be very useful.