ObjectGears Help

           
Forum   ObjectGears (Version: 1.6.0.0)

Data type JSWebParts

This object serves for work with webparts in the page. You can set webpart properties (according to the webpart type), visibility etc.

Object properties 

Name Description
int Count Number of webparts in the page.
void ShowAll() Method displayes all the webparts in the page.
void HideAll() Method hides all the webparts in the page.
WebPartBase this[int index] Method returns webpart according to the index. The index is count from 0 to Count - 1.
WebPartBase this[string code] Method returns webpart according to the webpart code.

Examples

Hiding webpart with code detail:

OGWebParts['wp_sales'].Visible = false;

Setting up property info for webpart detail:

OGWebParts['wp_sales'].SetData( 'info', article);

 Hiding all webparts:

OGWebParts.HideAll();

This website is using cookies files to provide services and analyse visits. You agree with that by using this website.     Further information