SP.WebParts.WebPart.isClosed property (sp.js)

Gets a value that specifies whether a Web Part is currently closed on a Web Part Page.

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

var value =SP.WebParts.WebPart.get_isClosed()

Return value

Returns a Booleantrue if Web Part is currently closed on a Web Part Page; otherwise, returns false.

Remarks

If true, the Web Part is closed. Web Parts that are closed must not be displayed on the page, and must not participate normally in the rendering of the page. The default value is false.

The openWebPart method opens the Web Part. If the current user does not have permissions to modify the Web Part, the server must ignore the call to this method.

The closeWebPart method closes the Web Part. 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.