SP.WebParts.WebPartDefinitionCollection.getByControlId Method (sp.js)

Returns the Web Part definition object in the collection with a Web Part identifier equal to the controlId parameter.

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

SP.WebParts.WebPartDefinitionCollection.getByControlId(controlId)

Parameters

  • controlId
    The Web Part control identifier of the Web Part definition to retrieve.

Return value

Returns a SP.WebParts.WebPartDefinition.