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

AIPromptBuilder

Properties

WriteAction - Func

Methods

PromptSuggestions(System.String)

Adds a suggestion to the PromptSuggestions collection.

Parameters

value - System.String

The suggestion

PromptSuggestions(System.Collections.Generic.ICollection)

Sets the PromptSuggestions collection

Parameters

value - System.Collections.Generic.ICollection<String>

The collection

ActiveView(System.Object)

Specifies the index of the active view or the name of the view.

Parameters

value - System.Object

The value for ActiveView

PromptOutputs(System.Action)

An array of prompt outputs to display in the prompt view.

Parameters

configurator - System.Action<AIPromptPromptOutputFactory>

The configurator for the promptoutputs setting.

PromptSuggestionItemTemplate(System.String)

The template of the prompt suggestion item. It can be a string, a function or a Kendo Template.

Parameters

value - System.String

The value for PromptSuggestionItemTemplate

PromptSuggestionItemTemplateId(System.String)

The template of the prompt suggestion item. It can be a string, a function or a Kendo Template.

Parameters

templateId - System.String

The ID of the template element for PromptSuggestionItemTemplate

PromptSuggestionItemTemplateView(Microsoft.AspNetCore.Html.IHtmlContent)

The template of the prompt suggestion item. It can be a string, a function or a Kendo Template.

Parameters

templateView - Microsoft.AspNetCore.Html.IHtmlContent

The view that contains the template for PromptSuggestionItemTemplate

PromptSuggestionItemTemplateHandler(System.String)

The template of the prompt suggestion item. It can be a string, a function or a Kendo Template.

Parameters

templateHandler - System.String

The handler that returs the template for PromptSuggestionItemTemplate

PromptSuggestionItemTemplate(Kendo.Mvc.UI.TemplateBuilder)

The template of the prompt suggestion item. It can be a string, a function or a Kendo Template.

Parameters

template - TemplateBuilder<TModel>

A Template component that configures the promptsuggestionitemtemplate.

ToolbarItems(System.Action)

An array of toolbar items to display in the header Toolbar. They will be rendered after the items generated from the configurations of the views.

Parameters

configurator - System.Action<AIPromptToolbarItemFactory>

The configurator for the toolbaritems setting.

ShowOutputRating(System.Boolean)

Specifies if the output rating should be displayed on the output card.

Parameters

value - System.Boolean

The value for ShowOutputRating

Views(System.Action)

An array of view configurations.

Parameters

configurator - System.Action<AIPromptViewFactory>

The configurator for the views setting.

Messages(System.Action)

The text messages displayed in the component. Use this option to customize or localize the messages.

Parameters

configurator - System.Action<AIPromptMessagesSettingsBuilder>

The configurator for the messages setting.

Events(System.Action)

Configures the client-side events.

Parameters

configurator - System.Action<AIPromptEventBuilder>

The client events action.

Example


            @(Html.Kendo().AIPrompt()
                  .Name("AIPrompt")
                  .Events(events => events
                      .CommandExecute("onCommandExecute")
                  )
            )

ToComponent()

Returns the internal view component.

Expression(System.String)

Sets the name of the component.

Parameters

modelExpression - System.String

Explorer(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer)

Sets the name of the component.

Parameters

modelExplorer - Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer

Name(System.String)

Sets the name of the component.

Parameters

componentName - System.String

The name.

Deferred(System.Boolean)

Suppress initialization script rendering. Note that this options should be used in conjunction with

Parameters

deferred - System.Boolean

HtmlAttributes(System.Object)

Sets the HTML attributes.

Parameters

attributes - System.Object

The HTML attributes.

HtmlAttributes(System.Collections.Generic.IDictionary)

Sets the HTML attributes.

Parameters

attributes - System.Collections.Generic.IDictionary<String,Object>

The HTML attributes.

Render()

Renders the component in place.

ToHtmlString()

WriteTo(System.IO.TextWriter,System.Text.Encodings.Web.HtmlEncoder)

Parameters

writer - System.IO.TextWriter
encoder - System.Text.Encodings.Web.HtmlEncoder

ToClientTemplate()

AsChildComponent()

Configures the widget as a child component.

In this article
Not finding the help you need?