November Happy Hour will be moved to Thursday December 5th.

Class GadgetAction

Defines an action on a gadget controller

Inheritance
System.Object
GadgetAction
Inherited Members
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.Shell.Gadgets
Assembly: EPiServer.Shell.dll
Version: 9.12.2
Syntax
public class GadgetAction

Constructors

GadgetAction(String)

Initializes a new instance of the GadgetAction class.

Declaration
public GadgetAction(string actionName)
Parameters
Type Name Description
System.String actionName

Action method name

GadgetAction(String, String)

Initializes a new instance of the GadgetAction class.

Declaration
public GadgetAction(string actionName, string cssClass)
Parameters
Type Name Description
System.String actionName

Action method name

System.String cssClass

Css class to be used in the gadget

Properties

ActionName

The name of the action method

Declaration
public string ActionName { get; }
Property Value
Type Description
System.String

CssClass

Css class to be used

Declaration
public string CssClass { get; }
Property Value
Type Description
System.String

Text

If displayed in the context menu it is used as the text

Declaration
public string Text { get; set; }
Property Value
Type Description
System.String

Methods

ToString()

Returns the name of the action

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()

Extension Methods