Class ActionMenuItem
A menu item that represents some JS that needs to execute when the menu item is clicked.
Namespace: Umbraco.Web.Models.Trees
Assembly: Umbraco.Web.dll
Syntax
public abstract class ActionMenuItem : MenuItem
Remarks
These types of menu items are rare but they do exist. Things like refresh node simply execute JS and don't launch a dialog. Each action menu item describes what angular service that it's method exists in and what the method name is. An action menu item must describe the angular service name for which it's method exists. It may also define what the method name is that will be called in this service but if one is not specified then we will assume the method name is the same as the Type name of the current action menu class.
Constructors
View SourceActionMenuItem(String, String)
Declaration
protected ActionMenuItem(string alias, string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | alias | |
System.String | name |
ActionMenuItem(String, ILocalizedTextService)
Declaration
protected ActionMenuItem(string alias, ILocalizedTextService textService)
Parameters
Type | Name | Description |
---|---|---|
System.String | alias | |
ILocalizedTextService | textService |
Properties
View SourceAngularServiceMethodName
The angular service method name to call for this menu item
Declaration
public virtual string AngularServiceMethodName { get; }
Property Value
Type | Description |
---|---|
System.String |
AngularServiceName
The angular service name containing the AngularServiceMethodName
Declaration
public abstract string AngularServiceName { get; }
Property Value
Type | Description |
---|---|
System.String |