Table of Contents

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

bool

Remarks

Set to true by default

Icon

Gets or sets The action icon.
public KnownIcon Icon { get; set; }

Property Value

KnownIcon

IconColor

Gets or sets The action Icon color>.
public KnownColor IconColor { get; set; }

Property Value

KnownColor

Id

Gets or sets The action id.
public string Id { get; set; }

Property Value

string

Name

Gets or sets The action name.
public string Name { get; set; }

Property Value

string

Title

Gets or sets The action title.
public string Title { get; set; }

Property Value

string

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>})
To top