Search Results for

    Show / Hide Table of Contents
    View Source

    Class ActionMenuItem

    A menu item that represents some JS that needs to execute when the menu item is clicked.

    Inheritance
    System.Object
    MenuItem
    Namespace: Umbraco.Cms.Core.Models.Trees
    Assembly: Umbraco.Core.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 Source

    ActionMenuItem(String, String)

    Declaration
    protected ActionMenuItem(string alias, string name)
    Parameters
    Type Name Description
    System.String alias
    System.String name
    View Source

    ActionMenuItem(String, ILocalizedTextService)

    Declaration
    protected ActionMenuItem(string alias, ILocalizedTextService textService)
    Parameters
    Type Name Description
    System.String alias
    ILocalizedTextService textService

    Properties

    View Source

    AngularServiceMethodName

    The angular service method name to call for this menu item

    Declaration
    public virtual string AngularServiceMethodName { get; }
    Property Value
    Type Description
    System.String
    View Source

    AngularServiceName

    The angular service name containing the AngularServiceMethodName

    Declaration
    public abstract string AngularServiceName { get; }
    Property Value
    Type Description
    System.String
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • ActionMenuItem(String, String)
      • ActionMenuItem(String, ILocalizedTextService)
    • Properties
      • AngularServiceMethodName
      • AngularServiceName
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX