Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
- <CustomAction
- Id="HelloWorldButton"
- Location="CommandUI.Ribbon">
- <CommandUIExtension>
- <CommandUIDefinitions>
- <CommandUIDefinition
- Location="Ribbon.Image.Image.Groups._children">
- <Group
- Id="Ribbon.Image.Image.HelloWorldButton"
- Sequence="80"
- Description="Hello World!"
- Title="Hello World!"
- Template="Ribbon.Templates.Flexible2">
- <Controls
- Id="Ribbon.Image.Image.HelloWorldButton.Controls">
- <Button
- Id="Ribbon.Image.Image.HelloWorldButton.Controls.HelloWorldButton1"
- Alt="Hello World Ribbon Button"
- Sequence="80"
- Image16by16="http://www.gizmochina.com/wp-content/themes/techblog/images/google-16x16.png"
- Image32by32="http://cache.filehippo.com/img/ex/2171__ChromeNew_icon.png"
- Command="Command_HelloWorld"
- LabelText="Hello World"
- TemplateAlias="o2"/>
- </Controls>
- </Group>
- </CommandUIDefinition>
- </CommandUIDefinitions>
- <CommandUIHandlers>
- <CommandUIHandler
- Command="Command_HelloWorld"
- CommandAction="javascript:$emu.RibbonButton('Hello');" />
- </CommandUIHandlers>
- </CommandUIExtension>
- </CustomAction>
- </Elements>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement