New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Defines the fluent API for configuring the Kendo UI ToolCall

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class ToolCallBuilder : WidgetBuilderBase<ToolCall, ToolCallBuilder>, IHtmlContent

Inheritance: objectHelperResultWidgetBuilderBase<ToolCall, ToolCallBuilder>ToolCallBuilder

Implements: IHtmlContent

Inherited Members WidgetBuilderBase<ToolCall, ToolCallBuilder>.ToComponent()WidgetBuilderBase<ToolCall, ToolCallBuilder>.Expression(string)WidgetBuilderBase<ToolCall, ToolCallBuilder>.Explorer(ModelExplorer)WidgetBuilderBase<ToolCall, ToolCallBuilder>.Name(string)WidgetBuilderBase<ToolCall, ToolCallBuilder>.Deferred(bool)WidgetBuilderBase<ToolCall, ToolCallBuilder>.HtmlAttributes(object)WidgetBuilderBase<ToolCall, ToolCallBuilder>.HtmlAttributes(IDictionary<string, object>)WidgetBuilderBase<ToolCall, ToolCallBuilder>.ScriptAttributes(object, bool)WidgetBuilderBase<ToolCall, ToolCallBuilder>.ScriptAttributes(IDictionary<string, object>, bool)WidgetBuilderBase<ToolCall, ToolCallBuilder>.Render()WidgetBuilderBase<ToolCall, ToolCallBuilder>.ToHtmlString()WidgetBuilderBase<ToolCall, ToolCallBuilder>.WriteTo(TextWriter, HtmlEncoder)WidgetBuilderBase<ToolCall, ToolCallBuilder>.ToClientTemplate()WidgetBuilderBase<ToolCall, ToolCallBuilder>.AsModule(bool)WidgetBuilderBase<ToolCall, ToolCallBuilder>.ComponentWidgetBuilderBase<ToolCall, ToolCallBuilder>.ContainerHelperResult.WriteTo(TextWriter, HtmlEncoder)HelperResult.WriteActionobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

Initializes a new instance of the ToolCallBuilder class.

C#
public ToolCallBuilder(ToolCall component)
Parameters:componentToolCall

Methods

A function used to render the entire approval section when state is "awaitingApproval". Receives the widget options object as the first argument and must return an HTML string. When set, the built-in approve and reject buttons are not rendered.

C#
public ToolCallBuilder ApprovalTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the approvaltemplate.

Returns:

ToolCallBuilder

Returns the current ToolCallBuilder instance.

A function used to render the entire approval section when state is "awaitingApproval". Receives the widget options object as the first argument and must return an HTML string. When set, the built-in approve and reject buttons are not rendered.

C#
public ToolCallBuilder ApprovalTemplateHandler(string templateHandler)
Parameters:templateHandlerstring

The handler that returs the template for ApprovalTemplate

Returns:

ToolCallBuilder

Returns the current ToolCallBuilder instance.

A text message displayed inside the approval card when state is "awaitingApproval".

C#
public ToolCallBuilder ApprovalText(string value)
Parameters:valuestring

The value for ApprovalText

Returns:

ToolCallBuilder

Returns the current ToolCallBuilder instance.

A function used to render the entire error section when state is "error". Receives the widget options object as the first argument and must return an HTML string. When set, the built-in error message box is not rendered.

C#
public ToolCallBuilder ErrorTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the errortemplate.

Returns:

ToolCallBuilder

Returns the current ToolCallBuilder instance.

A function used to render the entire error section when state is "error". Receives the widget options object as the first argument and must return an HTML string. When set, the built-in error message box is not rendered.

C#
public ToolCallBuilder ErrorTemplateHandler(string templateHandler)
Parameters:templateHandlerstring

The handler that returs the template for ErrorTemplate

Returns:

ToolCallBuilder

Returns the current ToolCallBuilder instance.

An error message displayed when state is "error".

C#
public ToolCallBuilder ErrorText(string value)
Parameters:valuestring

The value for ErrorText

Returns:

ToolCallBuilder

Returns the current ToolCallBuilder instance.

Configures the client-side events.

C#
public ToolCallBuilder Events(Action<ToolCallEventBuilder> configurator)
Parameters:configuratorAction<ToolCallEventBuilder>

The client events action.

Returns:

ToolCallBuilder

Returns the current ToolCallBuilder instance.

Example:
C#
@(Html.Kendo().ToolCall()
.Name("ToolCall")
.Events(events =&gt; events
.ExpandedChange("onExpandedChange")
)
)

Enables toggling the visibility of the step body by clicking the header or using the keyboard.

C#
public ToolCallBuilder Expandable()
Returns:

ToolCallBuilder

Returns the current ToolCallBuilder instance.

Enables toggling the visibility of the step body by clicking the header or using the keyboard.

C#
public ToolCallBuilder Expandable(bool value)
Parameters:valuebool

The value for Expandable

Returns:

ToolCallBuilder

Returns the current ToolCallBuilder instance.

Controls whether the step body is visible when the widget initializes.

C#
public ToolCallBuilder Expanded()
Returns:

ToolCallBuilder

Returns the current ToolCallBuilder instance.

Controls whether the step body is visible when the widget initializes.

C#
public ToolCallBuilder Expanded(bool value)
Parameters:valuebool

The value for Expanded

Returns:

ToolCallBuilder

Returns the current ToolCallBuilder instance.

The primary text label displayed in the step header.

C#
public ToolCallBuilder Label(string value)
Parameters:valuestring

The value for Label

Returns:

ToolCallBuilder

Returns the current ToolCallBuilder instance.

Contains the localizable text strings used by the widget.

C#
public ToolCallBuilder Messages(Action<ToolCallMessagesSettingsBuilder> configurator)
Parameters:configuratorAction<ToolCallMessagesSettingsBuilder>

The ToolCallMessagesSettingsBuilder for the messages setting.

Returns:

ToolCallBuilder

Returns the current instance of ToolCallBuilder .

A plain JavaScript object rendered as formatted JSON in the step body under the parameters label.

C#
public ToolCallBuilder Parameters(object value)
Parameters:valueobject

The value for Parameters

Returns:

ToolCallBuilder

Returns the current ToolCallBuilder instance.

A function used to render the parameters section body. Receives the widget options object as the first argument and must return an HTML string.

C#
public ToolCallBuilder ParametersTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the parameterstemplate.

Returns:

ToolCallBuilder

Returns the current ToolCallBuilder instance.

A function used to render the parameters section body. Receives the widget options object as the first argument and must return an HTML string.

C#
public ToolCallBuilder ParametersTemplateHandler(string templateHandler)
Parameters:templateHandlerstring

The handler that returs the template for ParametersTemplate

Returns:

ToolCallBuilder

Returns the current ToolCallBuilder instance.

A plain JavaScript object rendered as formatted JSON in the step body under the result label.

C#
public ToolCallBuilder Result(object value)
Parameters:valueobject

The value for Result

Returns:

ToolCallBuilder

Returns the current ToolCallBuilder instance.

A function used to render the result section body. Receives the widget options object as the first argument and must return an HTML string.

C#
public ToolCallBuilder ResultTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the resulttemplate.

Returns:

ToolCallBuilder

Returns the current ToolCallBuilder instance.

A function used to render the result section body. Receives the widget options object as the first argument and must return an HTML string.

C#
public ToolCallBuilder ResultTemplateHandler(string templateHandler)
Parameters:templateHandlerstring

The handler that returs the template for ResultTemplate

Returns:

ToolCallBuilder

Returns the current ToolCallBuilder instance.

A secondary text label displayed after the separator in the step header.

C#
public ToolCallBuilder SecondaryLabel(string value)
Parameters:valuestring

The value for SecondaryLabel

Returns:

ToolCallBuilder

Returns the current ToolCallBuilder instance.

The current state of the tool call.

C#
public ToolCallBuilder State(ToolCallState value)
Parameters:valueToolCallState

The value for State

Returns:

ToolCallBuilder

Returns the current ToolCallBuilder instance.

Overrides the default SVG icon used inside the state badge. When null, a built-in icon is chosen based on the current state.Set this option to an icon descriptor such as { name: "gear", variant: "outline" }. The variant can be outline, solid, or duotone; it applies to SVG rendering and is ignored for font icons.

C#
public ToolCallBuilder StatusSVGIcon(Action<ToolCallStatusSVGIconSettingsBuilder> configurator)
Parameters:configuratorAction<ToolCallStatusSVGIconSettingsBuilder>

The ToolCallStatusSVGIconSettingsBuilder for the statussvgicon setting.

Returns:

ToolCallBuilder

Returns the current instance of ToolCallBuilder .

Overrides the default SVG icon used inside the state badge. When null, a built-in icon is chosen based on the current state.Set this option to an icon descriptor such as { name: "gear", variant: "outline" }. The variant can be outline, solid, or duotone; it applies to SVG rendering and is ignored for font icons.

C#
public ToolCallBuilder StatusSVGIcon(string statusSVGIcon)
Parameters:statusSVGIconstring

The statussvgicon.

Returns:

ToolCallBuilder

Returns the current instance of ToolCallBuilder .

The name of the SVG icon displayed in the step header.Set this option to an icon descriptor such as { name: "gear", variant: "outline" }. The variant can be outline, solid, or duotone; it applies to SVG rendering and is ignored for font icons.

C#
public ToolCallBuilder SvgIcon(Action<ToolCallSvgIconSettingsBuilder> configurator)
Parameters:configuratorAction<ToolCallSvgIconSettingsBuilder>

The ToolCallSvgIconSettingsBuilder for the svgicon setting.

Returns:

ToolCallBuilder

Returns the current instance of ToolCallBuilder .

The name of the SVG icon displayed in the step header.Set this option to an icon descriptor such as { name: "gear", variant: "outline" }. The variant can be outline, solid, or duotone; it applies to SVG rendering and is ignored for font icons.

C#
public ToolCallBuilder SvgIcon(string svgIcon)
Parameters:svgIconstring

The svgicon.

Returns:

ToolCallBuilder

Returns the current instance of ToolCallBuilder .