Class ContextMenu
Inherited Members
Namespace: Syncfusion.EJ2.Navigations
Assembly: Syncfusion.EJ2.dll
Syntax
public class ContextMenu : EJTagHelper
Constructors
ContextMenu()
Declaration
public ContextMenu()
Properties
AnimationSettings
Specifies the animation settings for the sub menu open.
Declaration
[HtmlAttributeName("animationSettings")]
public ContextMenuAnimationSettings AnimationSettings { get; set; }
Property Value
Type | Description |
---|---|
ContextMenuAnimationSettings | The default value is null |
BeforeClose
Triggers before closing the menu.
Declaration
[HtmlAttributeName("beforeClose")]
public string BeforeClose { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
BeforeItemRender
Triggers while rendering each menu item.
Declaration
[HtmlAttributeName("beforeItemRender")]
public string BeforeItemRender { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
BeforeOpen
Triggers before opening the menu item.
Declaration
[HtmlAttributeName("beforeOpen")]
public string BeforeOpen { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
Created
Triggers once the component rendering is completed.
Declaration
[HtmlAttributeName("created")]
public string Created { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
CssClass
Defines class/multiple classes separated by a space in the Menu wrapper.
Declaration
[HtmlAttributeName("cssClass")]
public string CssClass { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
EnableHtmlSanitizer
Defines whether to allow the cross-scripting site or not.
Declaration
[HtmlAttributeName("enableHtmlSanitizer")]
public bool EnableHtmlSanitizer { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
EnablePersistence
Enable or disable persisting component's state between page reloads.
Declaration
[HtmlAttributeName("enablePersistence")]
public bool EnablePersistence { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
EnableRtl
Enable or disable rendering component in right to left direction.
Declaration
[HtmlAttributeName("enableRtl")]
public bool EnableRtl { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
Filter
Specifies the filter selector for elements inside the target in that the context menu will be opened.
Declaration
[HtmlAttributeName("filter")]
public string Filter { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
HoverDelay
If hoverDelay is set by particular number, the menu will open after that period.
Declaration
[HtmlAttributeName("hoverDelay")]
public double HoverDelay { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 0 |
HtmlAttributes
Allows additional HTML attributes such as title, name, etc., and accepts n number of attributes in a key-value pair format.
Declaration
[HtmlAttributeName("htmlAttributes")]
public object HtmlAttributes { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
Items
Specifies menu items with its properties which will be rendered as ContextMenu.
Declaration
[HtmlAttributeName("items")]
public object Items { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null |
Locale
Overrides the global culture and localization value for this component. Default global culture is 'en-US'.
Declaration
[HtmlAttributeName("locale")]
public string Locale { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
OnClose
Triggers while closing the menu.
Declaration
[HtmlAttributeName("onClose")]
public string OnClose { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
OnOpen
Triggers while opening the menu item.
Declaration
[HtmlAttributeName("onOpen")]
public string OnOpen { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
Select
Triggers while selecting menu item.
Declaration
[HtmlAttributeName("select")]
public string Select { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
ShowItemOnClick
Specifies whether to show the sub menu or not on click. When set to true, the sub menu will open only on mouse click.
Declaration
[HtmlAttributeName("showItemOnClick")]
public bool ShowItemOnClick { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
Target
Specifies target element selector in which the ContextMenu should be opened.
Declaration
[HtmlAttributeName("target")]
public string Target { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |