Class Action
- Namespace
 - Dynamicweb.Core.UI.Actions
 
- Assembly
 - Dynamicweb.Core.UI.dll
 
The class Action represents user interface action.
  
  public class Action
  - Inheritance
 - 
      
      Action
 
- Inherited Members
 
Properties
Enabled
Gets or sets the value indicating whether the action is enabled.
  
  public bool Enabled { get; set; }
  Property Value
Remarks
Set to 
  
  true by defaultIcon
Gets or sets The action icon.
  
  public KnownIcon Icon { get; set; }
  Property Value
IconColor
Gets or sets The action Icon color>.
  
  public KnownColor IconColor { get; set; }
  Property Value
Id
Gets or sets The action id.
  
  public string Id { get; set; }
  Property Value
Name
Gets or sets The action name.
  
  public string Name { get; set; }
  Property Value
Title
Gets or sets The action title.
  
  public string Title { get; set; }
  Property Value
Methods
ToJson()
Converts the Action to a json object
  
  public virtual string ToJson()
  Returns
- string
 - A json string
 
ToString()
Convert the Action to a javascript statement
  
  public override string ToString()
  Returns
- string
 - A javascript statement in the form : Action.Execute({Name = <actionname>})