Skip to content

Instantly share code, notes, and snippets.

Created July 22, 2016 09:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/0848204165d715da7c30acf136e23394 to your computer and use it in GitHub Desktop.
Save anonymous/0848204165d715da7c30acf136e23394 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<CustomAction Id="6b235f4e-b887-414f-94f9-e59cdc0d4637.RibbonCustomAction1"
RegistrationType="List"
RegistrationId="101"
Location="CommandUI.Ribbon"
Sequence="10001"
Title="Invoke &apos;RibbonCustomAction1&apos; action">
<CommandUIExtension>
<!--
Update the UI definitions below with the controls and the command actions
that you want to enable for the custom action.
-->
<CommandUIDefinitions>
<CommandUIDefinition Location="Ribbon.Documents.Manage.Controls._children">
<Button Id="Ribbon.Documents.Manage.RibbonCustomAction1Button"
Alt="Request Ribbon CustomAction"
Sequence="100"
Command="Invoke_RibbonCustomAction1ButtonRequest"
LabelText="Request Ribbon CustomAction"
TemplateAlias="o1"
Image32by32="_layouts/15/images/placeholder32x32.png"
Image16by16="_layouts/15/images/placeholder16x16.png" />
</CommandUIDefinition>
</CommandUIDefinitions>
<CommandUIHandlers>
<CommandUIHandler Command="Invoke_RibbonCustomAction1ButtonRequest" CommandAction="javascript:alert('Hello');" />
</CommandUIHandlers>
</CommandUIExtension >
</CustomAction>
</Elements>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment