Karan Rana
Karan Rana

Reputation: 11

Word add textbox in Ribbon(xml file) in office add in. using office.js

I'm working on an Word 365 Add-in. I have a working Manifest XML that shows an icon with the icon responding to a function click. How would I go about adding a textbox to ribbon for add value.

Upvotes: 1

Views: 307

Answers (1)

Cindy Meister
Cindy Meister

Reputation: 25663

The Office JS APIs for extending the Ribbon or context menus support only buttons and drop-down menus for buttons. Quote from the documentation

A Control element can be either a Button or a Menu. Use Menu to specify a drop-down list of button controls. Currently, only buttons and menus are supported.

For getting input, define a taskpane with the controls required. It's possible to have the task pane displayed automatically when the add-in is loaded.

Upvotes: 1

Related Questions