Class ToggleDisplayEvent

Displays a client side confirmation dialog a client event

Inheritance
System.Object
ToggleDisplayEvent
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.ClientScript.Events
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7
Syntax
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 true [toggle enabled].

System.String toggleGroupName

Name of the toggle group.

System.Boolean toggleNodeVisible

if set to true [toggle node visible].

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

true if [toggle enabled]; otherwise, false.

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

true if [toggle node visible]; otherwise, false.

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
Overrides

Extension Methods