Class DocumentEditorContainerEvents
Configures document editor container events.
Inherited Members
Namespace: Syncfusion.Blazor.DocumentEditor
Assembly: Syncfusion.Blazor.DocumentEditor.dll
Syntax
public class DocumentEditorContainerEvents : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender
Constructors
DocumentEditorContainerEvents()
Declaration
public DocumentEditorContainerEvents()
Properties
Created
Triggers when the component is created.
Declaration
[Parameter]
[JsonIgnore]
public EventCallback<object> Created { get; set; }
Property Value
| Type | Description |
|---|---|
| EventCallback<object> | An event callback function. |
Destroyed
Triggers when the component is destroyed.
Declaration
[Parameter]
[JsonIgnore]
public EventCallback<object> Destroyed { get; set; }
Property Value
| Type | Description |
|---|---|
| EventCallback<object> | An event callback function. |
OnWebMcpExecute
Gets or sets a callback that is invoked before a WebMCP tool is executed.
Declaration
[Parameter]
[JsonIgnore]
public EventCallback<DocumentEditorWebMcpToolExecuteEventArgs> OnWebMcpExecute { get; set; }
Property Value
| Type | Description |
|---|---|
| EventCallback<DocumentEditorWebMcpToolExecuteEventArgs> | An EventCallback<TValue> of type DocumentEditorWebMcpToolExecuteEventArgs that allows the application to inspect, cancel, or override WebMCP tool execution. The default value is an empty callback. |
Remarks
This event is raised after a tool has been resolved but before the corresponding built-in handler is executed. Handlers can use the supplied DocumentEditorWebMcpToolExecuteEventArgs instance to:
- Inspect the requested tool through Name and its input arguments through Arguments.
- Cancel execution by setting Cancel to true.
- Provide a custom response by setting Result.
If Cancel is true, tool execution is aborted and a cancellation response is returned to the requesting agent. Setting Result overrides the normal execution flow and returns the supplied response to the requesting agent instead of the built-in tool output.
This event is not raised during Static Server-Side Rendering (SSR) or prerendering because WebMCP tool registration requires an interactive browser context.
Parent
Represent document edtitor container element.
Declaration
[CascadingParameter]
protected SfDocumentEditorContainer? Parent { get; set; }
Property Value
| Type |
|---|
| SfDocumentEditorContainer |
Methods
OnInitializedAsync()
Method invoked when the component is ready to start.
Declaration
protected override Task OnInitializedAsync()
Returns
| Type | Description |
|---|---|
| Task | A Task representing the asynchronous operation. |