Created
July 22, 2016 09:23
-
-
Save anonymous/0848204165d715da7c30acf136e23394 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 'RibbonCustomAction1' 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