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

Defines the fluent API for configuring the Kendo ToolCall for ASP.NET MVC.

Definition

Constructors

Initializes a new instance of the ToolCall class.

C#
public ToolCallBuilder(ToolCall component)
Parameters:componentToolCall

The component.

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

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 value)
Parameters:valuestring

The value that configures the approvaltemplate.

Returns:

ToolCallBuilder

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

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

The value that configures the approvaltext.

Returns:

ToolCallBuilder

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

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 value)
Parameters:valuestring

The value that configures the errortemplate.

Returns:

ToolCallBuilder

An error message displayed when state is "error".

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

The value that configures the errortext.

Returns:

ToolCallBuilder

Configures the client-side events.

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

The client events action.

Returns:

ToolCallBuilder

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(bool value)
Parameters:valuebool

The value that configures the expandable.

Returns:

ToolCallBuilder

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

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

The value that configures the expanded.

Returns:

ToolCallBuilder

The primary text label displayed in the step header.

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

The value that configures the label.

Returns:

ToolCallBuilder

Contains the localizable text strings used by the widget.

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

The action that configures the messages.

Returns:

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 that configures the parameters.

Returns:

ToolCallBuilder

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

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 value)
Parameters:valuestring

The value that configures the parameterstemplate.

Returns:

ToolCallBuilder

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 that configures the result.

Returns:

ToolCallBuilder

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

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 value)
Parameters:valuestring

The value that configures the resulttemplate.

Returns:

ToolCallBuilder

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

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

The value that configures the secondarylabel.

Returns:

ToolCallBuilder

The current state of the tool call.

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

The value that configures the state.

Returns:

ToolCallBuilder

Overrides the default SVG icon used inside the state badge. When null, a built-in icon is chosen based on the current state.

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

The value that configures the statussvgicon.

Returns:

ToolCallBuilder

The name of the SVG icon displayed in the step header.

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

The value that configures the svgicon.

Returns:

ToolCallBuilder