toolbaritem element
The toolbaritem element specifies the toolbar item created to execute the add-in, or to make the panel visible if it is a panel add-in. This element is optional.
For a complete list of the existing toolbar items, see COMMANDBAR names.
Note
A JavaScript add-in cannot create a new toolbar.
Attributes
The toolbaritem element has the following attributes:
label
label="label" [required]
The label attribute specifies the text that is displayed in the toolbar for this item. Text, an icon, or both may appear on the toolbar.
parent
parent="menu name" [required]
The parent attribute specifies the toolbar to which this item is attached, and toolbar name is the internal name of the toolbar, in the format "COMMANDBAR_Name" (for example, COMMANDBAR _File).
before
before="menu item" [optional]
The before attribute specifies the toolbar item before which the add-in toolbar item is inserted, and toolbar item is the internal name of the menu, in the format "COMMANDBAR_Name" (for example, COMMANDBAR_File_Save).
imagesrc
imagesrc="image filename" [optional]
The imagesrc attribute specifies the name of the icon file used to represent this command on the referenced menu. Icons should be 16x16 pixels in either PNG or JPG format.
tooltip
tooltip="text" [optional]
The tooltip attribute specifies the tooltip text that is displayed when the user moves the pointer over the menu item.
See Also
Concepts
COMMANDBAR names
menuitem element
MENU names
Other Resources
Copyright © 2011 by Microsoft Corporation. All rights reserved.