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="Ribbon.List.Actions.AddAButton"
- Location="CommandUI.Ribbon"
- RegistrationId="100"
- RegistrationType="List"
- Title="Add a Ribbon Button">
- <CommandUIExtension>
- <CommandUIDefinitions>
- <CommandUIDefinition
- Location="Ribbon.List.Actions.Controls._children">
- <Button Id="Ribbon.List.Actions.NewRibbonButton"
- Command="NewRibbonButtonCommand"
- Sequence="5"
- Image16by16="/_layouts/WPImages/excel.png"
- Image32by32="/_layouts/WPImages/excel.png"
- LabelText="Hello World"
- TemplateAlias="o1" />
- </CommandUIDefinition>
- </CommandUIDefinitions>
- <CommandUIHandlers>
- <CommandUIHandler
- Command="NewRibbonButtonCommand"
- CommandAction="javascript:alert('Hello, world');" />
- </CommandUIHandlers>
- </CommandUIExtension>
- </CustomAction>
- <CustomAction Id="export.ScriptLink.jQuery"
- Location="ScriptLink"
- ScriptSrc="js/exportToExcel.js"
- Sequence="10010">
- </CustomAction>
- </Elements>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement