show/Hide Ribbon command in Officejs

Viewed 313

Wanted to show/hide custom ribbon button using officejs in typescript.

Tried getting element of custom ribbon button using jquery but not able to get the same since id getting random every time excel run.

$("#id__1157").id.hide()

Expected Result: Wanted to show/hide custom ribbon button in Excel using officejs in typescript

1 Answers

The ability to how/hide a custom ribbon button is not yet available in the Office JavaScript library. But we are working on it and hope to have it soon.

UPDATE May, 2021: Custom contextual tabs is now available on Excel. For details, see Create custom contextual tabs

Related