Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ISPComponents

SharePoint Components

Hierarchy

  • ISPComponents

Index

Properties

CalloutManager

CalloutManager: ICalloutManager

How to create a callout

Helper.SP.CalloutManager.init().then(() => {
  // Create the callout
  let callout = Helper.SP.CalloutManager.createNewIfNecessary({
    ID: "UniqueId",
    launchPoint: document.querySelector("input[value='Run']"),
    title: "My Custom Callout",
    content: "<p>This is the content of the callout. An element can be applied instead of a string."
  });
});

ModalDialog

ModalDialog: IModalDialog

How to create a modal dialog

Helper.SP.ModalDialog.showWaitScreenWithNoClose("Loading the Data").then(dlg => {
  // Do Stuff and then close the dialog
  dlg.close();
});

Notify

Notify: INotify

How to create a notification

Helper.SP.Notify.addNotifition("This is a notification.", false);

SOD

SOD: ISOD

How to wait for a library to be loaded

Helper.SP.SOD.executeOrDelayUntilScriptLoaded(() => {
  // Do Stuff
}, "gd-sprest");

Status

Status: IStatus

How to create a status

Helper.SP.Status.addStatus("Success", "This is a custom status.");

Generated using TypeDoc