Class ContextMenuSettings
Inheritance
Namespace: Syncfusion.EJ2.BlockEditor
Assembly: Syncfusion.AspNetCore.BlockEditor.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 |
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 |
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 |
ItemSelect
Declaration
public string ItemSelect { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | 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 |
Link
Specifies an array of command item models representing the available commands in the link context menu. This property holds the list of commands that appear in the link context menu. Users can customize or disable link operations by providing custom link items.
Declaration
public object Link { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Object | 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 |
Table
Specifies an array of command item models representing the available commands in the table context menu. This property holds the list of commands that appear in the table context menu. Users can customize or disable table operations by providing custom table items.
Declaration
public object Table { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Object | The default value is null |