Class ChartWebMcpSettings
Settings container that hosts a logical tool group for one SfChart
instance. The host nests ChartWebMcpTools and one or more
ChartWebMcpTool children inside this container to customize the
agent-facing tool list without forking the catalog.
Inheritance
Inherited Members
Namespace: Syncfusion.Blazor.Charts
Assembly: Syncfusion.Blazor.Charts.dll
Syntax
public class ChartWebMcpSettings : SfDataBoundComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Constructors
ChartWebMcpSettings()
Declaration
public ChartWebMcpSettings()
Properties
ChildContent
Gets or sets the child content (typically one or more ChartWebMcpTools wrappers).
Declaration
[Parameter]
public RenderFragment? ChildContent { get; set; }
Property Value
| Type |
|---|
| RenderFragment |
Name
Logical name for this tool group. When set, it is the browser registration prefix
({Name}_{toolName}). When empty, the parent chart's ID is used,
then SfChart-{DataId}.
Declaration
[Parameter]
public string Name { get; set; }
Property Value
| Type |
|---|
| string |
Remarks
Two charts that share the same ID or the same Name register
the same browser tool names. The second registration replaces the first.
Give each chart a unique ID or Name when more than one
chart has EnableWebMcp enabled. Enabled="false" on a child
ChartWebMcpTool removes that tool from the registered set.
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
| Type | Name | Description |
|---|---|---|
| RenderTreeBuilder | __builder |
Overrides
OnInitializedAsync()
Method invoked when the component is ready to start, having received its initial parameters from its parent in the render tree.
Declaration
protected override Task OnInitializedAsync()
Returns
| Type | Description |
|---|---|
| Task | A Task representing any asynchronous operation. |