SP.WebParts.WebPartDefinition object (sp.js)
Represents a Web Part on a Web Part Page.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
var object = new SP.WebParts.WebPartDefinition()
Remarks
Provides operations for moving, deleting, and changing the state of the Web Part.
Members
The WebPartDefinition object has the following members.
Constructor
The WebPartDefinition object has the following constructor.
Constructor |
Description |
---|---|
Initializes a new instance of the SP.WebParts.WebPartDefinition object (sp.js) object. |
Methods
The WebPartDefinition object has the following methods.
Method |
Description |
---|---|
Closes the Web Part. |
|
Deletes the Web Part from the page. |
|
This member is reserved for internal use and is not intended to be used directly from your code. |
|
Moves the Web Part to a different location on a Web Part Page. |
|
Opens the Web Part. |
|
Saves changes to the Web Part made using other properties and methods on the SP.WebParts.WebPartDefinition object (sp.js). |
Properties
The WebPartDefinition object has the following properties.
Property |
Description |
---|---|
Gets a value that specifies the Web Part identifier of the Web Part. |
|
The SP.WebParts.WebPart object (sp.js) represents a Web Part on a Web Part page associated with this SP.WebParts.WebPartDefinition object (sp.js). |