Class BasicAction
- Namespace
- JJMasterData.Core.DataDictionary.Models.Actions
- Assembly
- JJMasterData.Core.dll
Action basic info
public abstract class BasicAction
- Inheritance
-
BasicAction
- Derived
- Inherited Members
Constructors
BasicAction()
public BasicAction()
Properties
Color
[JsonProperty("color")]
[Display(Name = "Color")]
public BootstrapColor Color { get; set; }
Property Value
ConfirmationMessage
If completed when performing the action this message will be displayed with the option (Yes/No) No = Cancels the action Sim = Action will be executed
[JsonProperty("confirmationMessage")]
[Display(Name = "Confirmation Message")]
public string ConfirmationMessage { get; set; }
Property Value
CssClass
CSS3 Stylesheet Class
[JsonProperty("cssClass")]
public string CssClass { get; set; }
Property Value
DividerLine
Creates a line separator before this action Default = false
[JsonProperty("dividerLine")]
[Display(Name = "Divider Line")]
public bool DividerLine { get; set; }
Property Value
Remarks
Only valid if IsGroup is true.
EnableExpression
Expression that returns a boolean. Operators such as equal symbol and in can be used.
[JsonProperty("enableExpression")]
[Display(Name = "Enable Expression")]
public string EnableExpression { get; set; }
Property Value
Examples
Remarks
Icon
Link/Button FontAwesome icon.
[JsonProperty("icon")]
public IconType Icon { get; set; }
Property Value
IsDefaultOption
Execute this action as default This action will be triggered in any line location
[JsonProperty("isDefaultOption")]
[Display(Name = "Is Default")]
public bool IsDefaultOption { get; set; }
Property Value
IsGroup
Display this action in a group menu Default = false
[JsonProperty("isGroup")]
[Display(Name = "Is Group")]
public bool IsGroup { get; set; }
Property Value
IsUserCreated
[JsonProperty("isCustomAction")]
public abstract bool IsUserCreated { get; }
Property Value
IsVisible
Verify if the action is static toggled to be hidden.
public bool IsVisible { get; }
Property Value
Location
[JsonProperty(PropertyName = "formToolbarActionLocation")]
public FormToolbarActionLocation? Location { get; set; }
Property Value
Name
Identifier of the component
[JsonProperty("name")]
public string Name { get; set; }
Property Value
Remarks
IMPORTANT
Don't try to create a action with a repeated name. This can cause unforessen consequences.
Exceptions
Order
Order of the action (0, 1, 2...)
[JsonProperty("order")]
public int Order { get; set; }
Property Value
ShowAsButton
[JsonProperty("showAsButton")]
[Display(Name = "Show as Button")]
public bool ShowAsButton { get; set; }
Property Value
ShowTitle
Display grid title
[JsonProperty("showTitle")]
[Display(Name = "Show Title")]
public bool ShowTitle { get; set; }
Property Value
Text
Action description
[JsonProperty("text")]
public string Text { get; set; }
Property Value
Tooltip
Control mouse tooltip
[JsonProperty("tooltip")]
public string Tooltip { get; set; }
Property Value
VisibleExpression
Expression that returns a boolean. Operators such as equal symbol and in can be used.
[JsonProperty("visibleExpression")]
[Display(Name = "Visible Expression")]
public string VisibleExpression { get; set; }
Property Value
Examples
Remarks
Methods
DeepCopy()
public abstract BasicAction DeepCopy()
Returns
SetEnabled(bool)
Set if the action is enabled.
public void SetEnabled(bool value)
Parameters
value
bool
SetOptions(BasicAction)
Copy the actions of another action.
public void SetOptions(BasicAction action)
Parameters
action
BasicAction
SetVisible(bool)
Set action visibility
public void SetVisible(bool value)
Parameters
value
bool