Advertisement
Guest User

Untitled

a guest
Dec 19th, 2014
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2.  
  3. <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  4.  
  5. <CustomAction
  6.  
  7. Id="Ribbon.List.Actions.AddAButton"
  8.  
  9. Location="CommandUI.Ribbon"
  10.  
  11. RegistrationId="100"
  12.  
  13. RegistrationType="List"
  14.  
  15. Title="Add a Ribbon Button">
  16.  
  17. <CommandUIExtension>
  18.  
  19. <CommandUIDefinitions>
  20.  
  21. <CommandUIDefinition
  22.  
  23. Location="Ribbon.List.Actions.Controls._children">
  24.  
  25. <Button Id="Ribbon.List.Actions.NewRibbonButton"
  26.  
  27. Command="NewRibbonButtonCommand"
  28.  
  29. Sequence="5"
  30.  
  31. Image16by16="/_layouts/WPImages/excel.png"
  32.  
  33. Image32by32="/_layouts/WPImages/excel.png"
  34.  
  35. LabelText="Hello World"
  36.  
  37. TemplateAlias="o1" />
  38.  
  39. </CommandUIDefinition>
  40.  
  41. </CommandUIDefinitions>
  42.  
  43. <CommandUIHandlers>
  44.  
  45. <CommandUIHandler
  46.  
  47. Command="NewRibbonButtonCommand"
  48.  
  49. CommandAction="javascript:alert('Hello, world');" />
  50.  
  51. </CommandUIHandlers>
  52.  
  53. </CommandUIExtension>
  54.  
  55. </CustomAction>
  56.  
  57. <CustomAction Id="export.ScriptLink.jQuery"
  58.  
  59. Location="ScriptLink"
  60.  
  61. ScriptSrc="js/exportToExcel.js"
  62.  
  63. Sequence="10010">
  64.  
  65. </CustomAction>
  66.  
  67.  
  68.  
  69.  
  70.  
  71. </Elements>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement