SetSide2OpenState method: PanelController class

Syntax

SetSide2OpenState(Open)

Description

Use the SetSide2OpenState method to set the state of the Side Page 2 panel to open when the Open parameter is true; otherwise, when Open is false, the panel state is set to closed.

Note:

The state of a panel is closed by default.

Important:

Whether a panel is open is a transient condition that depends on the panel's mode and prior state settings (such as, ForceOpen or PersistentOpen). Therefore, invocation of this method might be ignored.

Parameters

Parameter Description

Open

Specifies a Boolean value indicating whether the panel is open.

Returns

None

Example

import PT_PAGE_UTILS:*;
Local PT_PAGE_UTILS:PanelController &oPC = create PT_PAGE_UTILS:PanelController();
/* Multiple operations to be performed – auto-update disabled */
&oPC.Initialize( False); 
&oPC.SetSide2ModeCollapsible(); /* Change mode to collapsible */
/* Set force mode so that the panel can be forced open in fixed or collapsed */
/* primary mode as well as secondary overlay mode. */
&oPC.UseForceOpenModeSide2( True);
/* Set panel open (even in secondary overlay mode) */
&oPC.SetSide2OpenState( True); 
&oPC.UpdatePanel(); /* Perform all updates to Side2/Side2 panels */