SP.WebParts.WebPartDefinition.webPart property (sp.js)

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).

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

var value =SP.WebParts.WebPartDefinition.get_webPart()

Return value

Returns a SP.WebParts.WebPart.

Remarks

The SP.WebParts.WebPart object (sp.js) contains additional properties relating to the Web Part represented by this WebPartDefinition object. Each WebPartDefinition object must have exactly one WebPart object associated with it. There can be multiple WebPartDefinition objects with the same value for their webPart property. Provides operations for moving, deleting, and changing the state of the Web Part.