SP.WebParts.WebPartDefinition.closeWebPart Method (sp.js)

Closes the Web Part.

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

SP.WebParts.WebPartDefinition.closeWebPart()
          

Remarks

If the Web Part is already closed, this method does nothing. If the current user does not have permissions to modify the Web Part, the server must ignore the call to this method.

The SP.WebParts.WebPartDefinition.openWebPart Method (sp.js) opens the Web Part. If the Web Part is already open, this method does nothing. If the current user does not have permissions to modify the Web Part, the server must ignore the call to this method.