UsePersistentOpenModeSide2 method: PanelController class
Syntax
UsePersistentOpenModeSide2(EnablePersistOpen)
Description
Use the UsePersistentOpenModeSide2 method to specify a Boolean value indicating whether the Side Page 2 panel is set to the persistent open state, which means that the system will not automatically close the panel after page transitions or refreshes. The panel must still be explicitly opened, after which, it must also be explicitly closed.
Note:
The default value is false.
Parameters
| Parameter | Description |
|---|---|
|
EnablePersistOpen |
Specifies a Boolean value indicating whether the panel is set to the persistent open state. |
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.SetSide2ModeFixed(); /* Change mode to fixed */
/* 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);
/* Persist the open state over page transitions */
&oPC.UsePersistentOpenModeSide2( True);
/* Set panel open (even in secondary overlay mode) */
&oPC.SetSide2OpenState( True);
&oPC.UpdatePanel(); /* perform all updates to Side1/Side2 panels */