Class DiagramContextMenu
Diagram provides some in-built context menu items and allows you to define custom menu items using the contextMenu property.
Inherited Members
System.Object.ToString()
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: Syncfusion.JavaScript.DataVisualization.Models
Assembly: Syncfusion.EJ.dll
Syntax
public class DiagramContextMenu : EJTagHelper
Constructors
DiagramContextMenu()
Declaration
public DiagramContextMenu()
Properties
Items
Gets or sets list of items should be display on the context menu
Declaration
[JsonProperty("items")]
public List<ContextMenuItem> Items { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<ContextMenuItem> | List |
Examples
DiagramContextMenu ContextMenu = new DiagramContextMenu();
ContextMenu.Items.Add(new ContextMenuItem() { Name = "File", Text = "File" });
ContextMenu.Items.Add(new ContextMenuItem() { Name = "Open", Text = "Open" });
ContextMenu.Items.Add(new ContextMenuItem() { Name = "Close", Text = "Close" });
ShowCustomMenuItemsOnly
Gets or sets wether the custom context menu should be visible or not
Declaration
[JsonProperty("showCustomMenuItemsOnly")]
public bool ShowCustomMenuItemsOnly { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | false |
Examples
DiagramContextMenu ContextMenu = new DiagramContextMenu();
ContextMenu.ShowCustomMenuItemsOnly = true;