ToolCall
Kendo UI ToolCall component
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
public class ToolCall : WidgetBase, IWidget, IHtmlAttributesContainer, IScriptableComponent
Inheritance: objectWidgetBaseToolCall
Implements:
Inherited Members
Constructors
Initializes a new instance of the ToolCall class.
public ToolCall(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
The view context
initializerIJavaScriptInitializerThe JavaScriptInitializer
urlGeneratorIUrlGeneratorThe URL generator.
Properties
The handler for the ApprovalTemplate
public string ApprovalTemplateHandler { get; set; }
A text message displayed inside the approval card when state is "awaitingApproval".
public string ApprovalText { get; set; }
The handler for the ErrorTemplate
public string ErrorTemplateHandler { get; set; }
An error message displayed when state is "error".
public string ErrorText { get; set; }
Enables toggling the visibility of the step body by clicking the header or using the keyboard.
public bool? Expandable { get; set; }
Controls whether the step body is visible when the widget initializes.
public bool? Expanded { get; set; }
The primary text label displayed in the step header.
public string Label { get; set; }
Contains the localizable text strings used by the widget.
public ToolCallMessagesSettings Messages { get; set; }
A plain JavaScript object rendered as formatted JSON in the step body under the parameters label.
public object Parameters { get; set; }
The handler for the ParametersTemplate
public string ParametersTemplateHandler { get; set; }
A plain JavaScript object rendered as formatted JSON in the step body under the result label.
public object Result { get; set; }
The handler for the ResultTemplate
public string ResultTemplateHandler { get; set; }
A secondary text label displayed after the separator in the step header.
public string SecondaryLabel { get; set; }
The current state of the tool call.
public ToolCallState? State { get; set; }
Overrides the default SVG icon used inside the state badge. When null, a built-in icon is chosen based on the current state.
public string StatusSVGIcon { get; set; }
Methods
public override IDictionary<string, object> Serialize()
Overrides:
Writes the HTML.
protected override void WriteHtml(HtmlTextWriter writer)
The HtmlTextWriter.
Overrides:
Writes the initialization script.
public override void WriteInitializationScript(TextWriter writer)
The TextWriter.
Overrides: