Class ContextMenuSettings
Inheritance
System.Object
Syncfusion.EJ2.EJTagHelper
ContextMenuSettings
Namespace: Syncfusion.EJ2.BlockEditor
Assembly: Syncfusion.EJ2.dll
Syntax
public class ContextMenuSettings : EJTagHelper
Constructors
ContextMenuSettings()
Declaration
public ContextMenuSettings()
Properties
BeforeClose
Declaration
public string BeforeClose { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | The default value is null |
BeforeOpen
Declaration
public string BeforeOpen { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | The default value is null |
Close
Declaration
public string Close { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | The default value is null |
ContentTemplate
To get or set value for ContentTemplate.
Declaration
public MvcTemplate<object> ContentTemplate { get; set; }
Property Value
| Type |
|---|
| Syncfusion.EJ2.MvcTemplate<System.Object> |
Enable
Specifies whether the context menu is enabled.
If set to false, the context menu will not be displayed.
Declaration
public bool Enable { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean | The default value is true |
ItemClick
Declaration
public string ItemClick { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | The default value is null |
Items
Specifies the list of context menu items.
Declaration
public object Items { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Object | The default value is null |
ItemTemplate
Specifies a custom template for menu items. Accepts either a string template or a function returning a custom template.
Declaration
public object ItemTemplate { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Object | The default value is null |
Open
Declaration
public string Open { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | The default value is null |
ShowItemOnClick
Specifies whether menu items should only be shown when clicked.
If set to true, submenu items appear only when the parent item is clicked.
Declaration
public bool ShowItemOnClick { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean | The default value is false |