Everything began from nothing.

Showing posts with label notification. Show all posts
Showing posts with label notification. Show all posts

Tuesday, 17 January 2017

Create an OTB SharePoint notification

Hello,

Today i will show you how we can create a sharePoint notification  using the SP.UI.Notify.addNotification with javaScript :

   var nid = SP.UI.Notify.addNotification("<img src='/_layouts/15/images/loadingcirclests16.gif?rev=23' style='vertical-align:bottom; display:inline-block; margin-" + (document.documentElement.dir == "rtl" ? "left" : "right") + ":2px;' />&nbsp;<span style='vertical-align:top;'>your custom message.</span>", false);

this is the result: