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:






Popular posts from this blog

Error when activating feature of list instance