Allows a button and a content area to support client side min/max functionality
Namespace: DotNetNuke.UI.UtilitiesAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
C# |
---|
public static void EnableMinMax( Control objButton, Control objContent, int intModuleId, bool blnDefaultMin, string strMinIconLoc, string strMaxIconLoc, DNNClientAPI..::..MinMaxPersistanceType ePersistanceType ) |
Visual Basic |
---|
Public Shared Sub EnableMinMax ( objButton As Control, objContent As Control, intModuleId As Integer, blnDefaultMin As Boolean, strMinIconLoc As String, strMaxIconLoc As String, ePersistanceType As DNNClientAPI..::..MinMaxPersistanceType ) |
Parameters
- objButton
- Type: System.Web.UI..::..Control
Control that when clicked causes content area to be hidden/shown
- objContent
- Type: System.Web.UI..::..Control
Content area that is hidden/shown
- intModuleId
- Type: System..::..Int32
Module id of button/content, used only for persistance type of Cookie
- blnDefaultMin
- Type: System..::..Boolean
If content area is to be defaulted to minimized pass in true
- strMinIconLoc
- Type: System..::..String
Location of minimized icon
- strMaxIconLoc
- Type: System..::..String
Location of maximized icon
- ePersistanceType
- Type: DotNetNuke.UI.Utilities..::..DNNClientAPI..::..MinMaxPersistanceType
How to store current state of min/max. Cookie, Page, None
Remarks
This method's purpose is to provide a higher level of abstraction between the ClientAPI and the module developer.