Advertisement
Guest User

Untitled

a guest
Oct 24th, 2014
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  3. <CustomAction
  4. Id="HelloWorldButton"
  5. Location="CommandUI.Ribbon">
  6. <CommandUIExtension>
  7. <CommandUIDefinitions>
  8. <CommandUIDefinition
  9. Location="Ribbon.Image.Image.Groups._children">
  10. <Group
  11. Id="Ribbon.Image.Image.HelloWorldButton"
  12. Sequence="80"
  13. Description="Hello World!"
  14. Title="Hello World!"
  15. Template="Ribbon.Templates.Flexible2">
  16. <Controls
  17. Id="Ribbon.Image.Image.HelloWorldButton.Controls">
  18. <Button
  19. Id="Ribbon.Image.Image.HelloWorldButton.Controls.HelloWorldButton1"
  20. Alt="Hello World Ribbon Button"
  21. Sequence="80"
  22. Image16by16="http://www.gizmochina.com/wp-content/themes/techblog/images/google-16x16.png"
  23. Image32by32="http://cache.filehippo.com/img/ex/2171__ChromeNew_icon.png"
  24. Command="Command_HelloWorld"
  25. LabelText="Hello World"
  26. TemplateAlias="o2"/>
  27. </Controls>
  28. </Group>
  29. </CommandUIDefinition>
  30. </CommandUIDefinitions>
  31. <CommandUIHandlers>
  32. <CommandUIHandler
  33. Command="Command_HelloWorld"
  34. CommandAction="javascript:$emu.RibbonButton('Hello');" />
  35. </CommandUIHandlers>
  36. </CommandUIExtension>
  37. </CustomAction>
  38. </Elements>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement