ToolCallBuilder
Methods
SvgIcon(System.String)
The name of the SVG icon displayed in the step header.
Parameters
value - System.String
The value that configures the svgicon.
Label(System.String)
The primary text label displayed in the step header.
Parameters
value - System.String
The value that configures the label.
SecondaryLabel(System.String)
A secondary text label displayed after the separator in the step header.
Parameters
value - System.String
The value that configures the secondarylabel.
Expandable(System.Boolean)
Enables toggling the visibility of the step body by clicking the header or using the keyboard.
Parameters
value - System.Boolean
The value that configures the expandable.
Expanded(System.Boolean)
Controls whether the step body is visible when the widget initializes.
Parameters
value - System.Boolean
The value that configures the expanded.
Parameters(System.Object)
A plain JavaScript object rendered as formatted JSON in the step body under the parameters label.
Parameters
value - System.Object
The value that configures the parameters.
Result(System.Object)
A plain JavaScript object rendered as formatted JSON in the step body under the result label.
Parameters
value - System.Object
The value that configures the result.
ApprovalText(System.String)
A text message displayed inside the approval card when state is "awaitingApproval".
Parameters
value - System.String
The value that configures the approvaltext.
ErrorText(System.String)
An error message displayed when state is "error".
Parameters
value - System.String
The value that configures the errortext.
StatusSVGIcon(System.String)
Overrides the default SVG icon used inside the state badge. When null, a built-in icon is chosen based on the current state.
Parameters
value - System.String
The value that configures the statussvgicon.
ParametersTemplateHandler(System.String)
A function used to render the parameters section body. Receives the widget options object as the first argument and must return an HTML string.
Parameters
value - System.String
The value that configures the parameterstemplate.
ParametersTemplate(Kendo.Mvc.UI.Fluent.TemplateBuilder)
A function used to render the parameters section body. Receives the widget options object as the first argument and must return an HTML string.
Parameters
template - TemplateBuilder<TModel>
A Template component that configures the parameterstemplate.
ApprovalTemplateHandler(System.String)
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.
Parameters
value - System.String
The value that configures the approvaltemplate.
ApprovalTemplate(Kendo.Mvc.UI.Fluent.TemplateBuilder)
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.
Parameters
template - TemplateBuilder<TModel>
A Template component that configures the approvaltemplate.
ResultTemplateHandler(System.String)
A function used to render the result section body. Receives the widget options object as the first argument and must return an HTML string.
Parameters
value - System.String
The value that configures the resulttemplate.
ResultTemplate(Kendo.Mvc.UI.Fluent.TemplateBuilder)
A function used to render the result section body. Receives the widget options object as the first argument and must return an HTML string.
Parameters
template - TemplateBuilder<TModel>
A Template component that configures the resulttemplate.
ErrorTemplateHandler(System.String)
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.
Parameters
value - System.String
The value that configures the errortemplate.
ErrorTemplate(Kendo.Mvc.UI.Fluent.TemplateBuilder)
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.
Parameters
template - TemplateBuilder<TModel>
A Template component that configures the errortemplate.
Messages(System.Action)
Contains the localizable text strings used by the widget.
Parameters
configurator - System.Action<ToolCallMessagesSettingsBuilder>
The action that configures the messages.
State(Kendo.Mvc.UI.ToolCallState)
The current state of the tool call.
Parameters
value - ToolCallState
The value that configures the state.
Events(System.Action)
Configures the client-side events.
Parameters
configurator - System.Action<ToolCallEventBuilder>
The client events action.
Example
@(Html.Kendo().ToolCall()
.Name("ToolCall")
.Events(events => events
.ExpandedChange("onExpandedChange")
)
)
ToComponent()
Returns the internal view component.
Name(System.String)
Sets the name of the component.
Parameters
componentName - System.String
The name of the component.
Example
@(Html.Kendo().Grid<OrderViewModel>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(p => p.OrderID).Filterable(false);
columns.Bound(p => p.Freight);
})
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.Read(read => read.Action("Orders_Read", "Grid"))
)
)
Deferred(System.Boolean)
Suppress initialization script rendering. Note that this options should be used in conjunction with
Parameters
deferred - System.Boolean
ModelMetadata(System.Web.Mvc.ModelMetadata)
Uses the Metadata of the Model.
Parameters
modelMetadata - System.Web.Mvc.ModelMetadata
The metadata set for the Model
HtmlAttributes(System.Object)
Sets the HTML attributes.
Parameters
attributes - System.Object
The HTML attributes.
HtmlAttributes(System.Collections.Generic.IDictionary)
Parameters
attributes - System.Collections.Generic.IDictionary<String,Object>
AsModule(System.Boolean)
Specifies whether the initialization script of the component will be rendered as a JavaScript module.
Parameters
value - System.Boolean
Render()
Renders the component.
Example
@(@Page Inherits="System.Web.Mvc.ViewPage<IEnumerable<Product>>" )
@( Html.Kendo().Grid(Model)
.Name("grid")
.DetailTemplate(product => {
)
Product Details:
<div>Product Name: @( product.ProductName )</div>
<div>Units In Stock: @( product.UnitsInStock )</div>
@(
})
.Render();
)
ScriptAttributes(System.Object,System.Boolean)
Sets the JavaScript attributes to the initialization script.
Parameters
attributes - System.Object
The JavaScript attributes.
overrideAttributes - System.Boolean
Argument which determines whether attributes should be overriden.
ScriptAttributes(System.Collections.Generic.IDictionary,System.Boolean)
Sets the JavaScript attributes to the initialization script.
Parameters
attributes - System.Collections.Generic.IDictionary<String,Object>
The JavaScript attributes.
overrideAttributes - System.Boolean
Argument which determines whether attributes should be overriden.