Class ContextMenuItemModel
Specifies the individual items in the SfBlockEditor component.
Inherited Members
Namespace: Syncfusion.Blazor.BlockEditor
Assembly: Syncfusion.Blazor.dll
Syntax
public class ContextMenuItemModel
Constructors
ContextMenuItemModel()
Declaration
public ContextMenuItemModel()
Properties
Disabled
Gets or sets a value indicating whether the context menu item is disabled in the SfBlockEditor.
Declaration
public bool Disabled { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
|
Remarks
Disabled action items will not respond to user interaction.
ID
Gets or sets the unique identifier of the context menu item in SfBlockEditor.
Declaration
public string ID { get; set; }
Property Value
| Type | Description |
|---|---|
| string | A string value that uniquely identifies the context menu item. |
Remarks
This ID can be used to reference the item programmatically.
IconCss
Gets or sets the CSS class for the icon associated with the context menu item in the SfBlockEditor.
Declaration
public string IconCss { get; set; }
Property Value
| Type | Description |
|---|---|
| string | A string containing one or more CSS class names. |
Remarks
This can be used to display an icon next to the context menu item text using font or image icons.
Items
Gets or sets the list of context menu items.
Declaration
public List<ContextMenuItemModel> Items { get; set; }
Property Value
| Type |
|---|
| List<ContextMenuItemModel> |
Separator
Gets or sets whether this item is a separator in the SfBlockEditor.
Declaration
public bool Separator { get; set; }
Property Value
| Type | Description |
|---|---|
| bool | A boolean value that indicates whether item is a separator. The default value is |
Remarks
If set to true, this item is displayed as a separator between menu items.
Shortcut
Gets or sets the shortcut for the context menu item in the SfBlockEditor.
Declaration
public string Shortcut { get; set; }
Property Value
| Type | Description |
|---|---|
| string | A string that specifies the keyboard shortcut for the context menu item. |
Remarks
This allows users to trigger the context menu using a specific key combination.
Text
Gets or sets the display text of the context menu item used in the SfBlockEditor.
Declaration
public string Text { get; set; }
Property Value
| Type | Description |
|---|---|
| string | A string representing the display text of the context menu item. |