Action Visibility
Controlling the visibility of actions in Umbraco UI Builder.
Controlling Default Action Visibility
// Example
public class MyAction : Action<ActionResult>
{
...
public override bool IsVisible(ActionVisibilityContext ctx)
{
return ctx.ActionType == ActionType.Bulk
|| ctx.ActionType == ActionType.Row;
}
...
}Overriding Action Visibility
Using the AddAction<TMenuActionType>() Method
AddAction<TMenuActionType>() MethodMethod Syntax
Example
Using the AddAction(Type actionType, Lambda actionConfig = null) Method
AddAction(Type actionType, Lambda actionConfig = null) MethodMethod Syntax
Example
Using the AddAction(IAction action, Lambda actionConfig = null) Method
AddAction(IAction action, Lambda actionConfig = null) MethodMethod Syntax
Example
Action Visibility Context
ActionType
ContainerMenu

EntityMenu

Bulk

Row

Save

UserGroups
Last updated
Was this helpful?