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
You have just released the following in Developer Preview ?
Could you provide an update on this feature request please ?
Niraj Prasad commented
Is it still pending or done? can you please confirm
Sameer Shaikh commented
Dynamic ribbon using office js
It would be great to have this feature supporting also ribbon items (e.g. I don't want to show 'Log in' button when user is already logged in, instead I would expect 'Log out'). Moreover, certain group of commands could be shown based on the cell selection, etc.
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.