Shalvin Interests

Saturday, August 18, 2012

Notification in SharePoint 2010

<CustomAction
  Id="NotificationDemo"
  RegistrationType="List"
  RegistrationId="101"
  Location="CommandUI.Ribbon">
    <CommandUIExtension>
      <CommandUIDefinitions>
        <CommandUIDefinition
         Location="Ribbon.Documents.New.Controls._children">
          <Button
           Id="Ribbon.Documents.New.Controls.NotificationDemo"
           Alt="Notification Button"
           Sequence="30"
           Image32by32="/_layouts/images/PPEOPLE.GIF"
           Command="NotificationDemo"
           LabelText="Notification Demo"
           TemplateAlias="o2"/>
        </CommandUIDefinition>
      </CommandUIDefinitions>
      <CommandUIHandlers>
        <CommandUIHandler
         Command="NotificationDemo"
         CommandAction="javascript:SP.UI.Notify.addNotification('Hello from Shalvin', false);"/>
      </CommandUIHandlers>
    </CommandUIExtension>
  </CustomAction>

No comments:

Post a Comment