The Basics
Configuring actions in Umbraco UI Builder.
Defining an Action
// Example
public class MyAction : Action<ActionResult>
{
public override string Icon => "icon-settings";
public override string Alias => "myaction";
public override string Name => "My Action";
public override bool ConfirmAction => true;
public override ActionResult Execute(string collectionAlias, object[] entityIds)
{
// Perform operation here...
}
}Configuration Options
Option
Description
Required
Controlling the Action Result
Capturing Settings for an Action
Adding an Action to a Collection
Using the AddAction<TMenuActionType>() Method
AddAction<TMenuActionType>() MethodMethod Syntax
Example
Using the AddAction(Type actionType) Method
AddAction(Type actionType) MethodMethod Syntax
Example
Using the AddAction(IAction action) Method
AddAction(IAction action) MethodMethod Syntax
Example
Last updated
Was this helpful?