Class CommandItemSelectEventArgs
Represents the event arguments for command item selected in the SfBlockEditor component.
Inherited Members
Namespace: Syncfusion.Blazor.BlockEditor
Assembly: Syncfusion.Blazor.dll
Syntax
public class CommandItemSelectEventArgs
Constructors
CommandItemSelectEventArgs()
Declaration
public CommandItemSelectEventArgs()
Properties
Cancel
Gets or sets a value indicating whether the select action should be canceled in the SfBlockEditor.
Declaration
public bool Cancel { get; set; }
Property Value
| Type | Description |
|---|---|
| bool | A boolean value; |
Remarks
Set this to true to suppress the default behavior when a command item is selected.
Command
Gets or sets the command item that was selected in the SfBlockEditor.
Declaration
public CommandItemModel Command { get; set; }
Property Value
| Type | Description |
|---|---|
| CommandItemModel | A CommandItemModel instance representing the selected command. |
Remarks
This provides access to the selected command's metadata, such as label, icon, and action.
IsInteracted
Gets or sets a value indicating whether the command was selected by user interaction in the SfBlockEditor.
Declaration
public bool IsInteracted { get; set; }
Property Value
| Type | Description |
|---|---|
| bool | A boolean value; |
Remarks
Useful for differentiating between user-initiated selects and programmatic triggers.