Class ToggleDisplayEvent
Displays a client side confirmation dialog a client event
Inherited Members
Namespace: EPiServer.ClientScript.Events
Assembly: EPiServer.dll
Version: 8.11.0Syntax
public class ToggleDisplayEvent : EventBase
Constructors
ToggleDisplayEvent(EventType, String, Boolean, String, Boolean)
Create a new Toggle display event to Show/Hide Elements
Declaration
public ToggleDisplayEvent(EventType eventType, string toggleNodeId, bool toggleEnabled, string toggleGroupName, bool toggleNodeVisible)
Parameters
Type | Name | Description |
---|---|---|
EventType | eventType | The event to show confirmation dialog for |
System.String | toggleNodeId | The toggle node id. |
System.Boolean | toggleEnabled | if set to |
System.String | toggleGroupName | Name of the toggle group. |
System.Boolean | toggleNodeVisible | if set to |
Properties
ToggleEnabled
Gets or sets a value indicating whether its possible to both show and hide the toggleNode.
Declaration
public bool ToggleEnabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
ToggleGroupName
Gets or sets the name of the group that this toggleNode and event is a member of.
Declaration
public string ToggleGroupName { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name of the toggle group. |
ToggleNodeId
Gets or sets the id of the node to Show/Hide.
Declaration
public string ToggleNodeId { get; set; }
Property Value
Type | Description |
---|---|
System.String | The toggle node id. |
ToggleNodeVisible
Gets or sets a value indicating whether the node to toggle is visible when page is loaded.
Declaration
public bool ToggleNodeVisible { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Methods
AttachEvent(ScriptManager, String)
Attaches the ToggleDisplayEvent and required properties to the supplied script manager
Declaration
public override void AttachEvent(ScriptManager scriptManager, string clientId)
Parameters
Type | Name | Description |
---|---|---|
ScriptManager | scriptManager | |
System.String | clientId |