Class ScriptMenuItem

Creates a menu item that invokes a JavaScript method when clicked

Inheritance
System.Object
ScriptMenuItem
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Shell.Navigation
Assembly: EPiServer.Shell.dll
Version: 8.11.0
Syntax
public class ScriptMenuItem : MenuItem

Constructors

ScriptMenuItem(String, String, String)

Initializes a new instance of the ScriptMenuItem class.

Declaration
public ScriptMenuItem(string text, string path, string method)
Parameters
Type Name Description
System.String text

Menu item text.

System.String path

Unique path for the menu item.

System.String method

The JavaScript method to invoke.

Properties

Method

Gets or sets the JavaScript method to invoke on click.

Declaration
public string Method { get; }
Property Value
Type Description
System.String

The method.

Methods

RenderContents(TextWriter)

Renders the menu item contents.

Declaration
protected override void RenderContents(TextWriter writer)
Parameters
Type Name Description
System.IO.TextWriter writer

The writer.

Overrides