SP.WebParts.LimitedWebPartManager.scope property (sp.js)

Gets a value that specifies the current personalization scope of the Web Part Page.

Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013

var value =SP.WebParts.LimitedWebPartManager.get_scope()

Return value

Returns a SP.WebParts.PersonalizationScope instance representing the current personalization scope of the Web Part Page.

Remarks

The value must be User if personalized data is loaded for the Web Parts on the Web Part Page, or Shared if common data for all users is loaded. Represents a file in a site that can be a Web Part Page, an item in a document library, or a file in a folder.