Can we disabled menu items from contextual ribbons?

In my project I am generating ribbons dynamically using Office.riboon method. But, Issue is that I am not able to disabled the menu items only controls are enabled and disabled.

So, Is there any way to enabled or disabled the menu items using Office ribbon APIs?

Need to hide menu item that mentioned in below image

Ribbon API for generating contextual ribbons dynamically