SP.WebParts.WebPart.hidden property (sp.js)
Gets or sets a value that specifies whether a Web Part is displayed on a Web Part Page.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
var value =SP.WebParts.WebPart.get_hidden()
SP.WebParts.WebPart.set_hidden(value)
Return value
Returns a Booleantrue if a Web Part is displayed on a Web Part Page; otherwise, returns false.
Remarks
If true, the Web Part must be hidden. Web Parts that are hidden must not be displayed on the page to the end user, but should still participate normally in the rendering of the page. The default value is false.