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

Defines the fluent API for configuring AIPromptView

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class AIPromptViewBuilder

Inheritance: objectAIPromptViewBuilder

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

AIPromptViewBuilder method.

C#
public AIPromptViewBuilder(AIPromptView container)
Parameters:containerAIPromptView

Properties

Gets the settings being configured.

C#
protected AIPromptView Container { get; }

Methods

The icon name of the Toolbar button rendered for the view.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 AIPromptViewBuilder ButtonIcon(Action<AIPromptViewButtonIconSettingsBuilder> configurator)
Parameters:configuratorAction<AIPromptViewButtonIconSettingsBuilder>

The AIPromptViewButtonIconSettingsBuilder for the buttonicon setting.

Returns:

AIPromptViewBuilder

Returns the current instance of AIPromptViewBuilder .

The icon name of the Toolbar button rendered for the view.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 AIPromptViewBuilder ButtonIcon(string buttonIcon)
Parameters:buttonIconstring

The buttonicon.

Returns:

AIPromptViewBuilder

Returns the current instance of AIPromptViewBuilder .

The text of the Toolbar button rendered for the view.

C#
public AIPromptViewBuilder ButtonText(string value)
Parameters:valuestring

The value for ButtonText

Returns:

AIPromptViewBuilder

Returns the current AIPromptViewBuilder instance.

The template of the view footer. It can be a string, a function or a Kendo Template.

C#
public AIPromptViewBuilder FooterTemplate(string value)
Parameters:valuestring

The value for FooterTemplate

Returns:

AIPromptViewBuilder

Returns the current AIPromptViewBuilder instance.

The template of the view footer. It can be a string, a function or a Kendo Template.

C#
public AIPromptViewBuilder FooterTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the footertemplate.

Returns:

AIPromptViewBuilder

Returns the current AIPromptViewBuilder instance.

The template of the view footer. It can be a string, a function or a Kendo Template.

C#
public AIPromptViewBuilder FooterTemplateHandler(string templateHandler)
Parameters:templateHandlerstring

The handler that returs the template for FooterTemplate

Returns:

AIPromptViewBuilder

Returns the current AIPromptViewBuilder instance.

The template of the view footer. It can be a string, a function or a Kendo Template.

C#
public AIPromptViewBuilder FooterTemplateId(string templateId)
Parameters:templateIdstring

The ID of the template element for FooterTemplate

Returns:

AIPromptViewBuilder

Returns the current AIPromptViewBuilder instance.

The template of the view footer. It can be a string, a function or a Kendo Template.

C#
public AIPromptViewBuilder FooterTemplateView(IHtmlContent templateView)
Parameters:templateViewIHtmlContent

The view that contains the template for FooterTemplate

Returns:

AIPromptViewBuilder

Returns the current AIPromptViewBuilder instance.

A function that is executed when the view is rendered. It is used to initialize the components of the view with a custom content template.

C#
public AIPromptViewBuilder InitializeComponents(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

AIPromptViewBuilder

Returns the current AIPromptViewBuilder instance.

A function that is executed when the view is rendered. It is used to initialize the components of the view with a custom content template.

C#
public AIPromptViewBuilder InitializeComponents(string handler)
Parameters:handlerstring

The name of the JavaScript function that will be evaluated.

Returns:

AIPromptViewBuilder

Returns the current AIPromptViewBuilder instance.

The name of the view. It is used to identify the view. It should be unique.

C#
public AIPromptViewBuilder Name(string value)
Parameters:valuestring

The value for Name

Returns:

AIPromptViewBuilder

Returns the current AIPromptViewBuilder instance.

The commands to display in the prompt view.

C#
public AIPromptViewBuilder PromptCommands(Action<AIPromptViewPromptCommandFactory> configurator)
Parameters:configuratorAction<AIPromptViewPromptCommandFactory>

The AIPromptViewPromptCommandFactory for the promptcommands setting.

Returns:

AIPromptViewBuilder

Returns the current instance of AIPromptViewBuilder .

Sets the PromptSuggestions collection

C#
public AIPromptViewBuilder PromptSuggestions(ICollection<string> value)
Parameters:valueICollection<string>

The collection

Returns:

AIPromptViewBuilder

Returns the current AIPromptViewBuilder instance.

Adds a suggestion to the PromptSuggestions collection.

C#
public AIPromptViewBuilder PromptSuggestions(string value)
Parameters:valuestring

The suggestion

Returns:

AIPromptViewBuilder

Returns the current AIPromptViewBuilder instance.

Defines the type of the view.

C#
public AIPromptViewBuilder Type(ViewType value)
Parameters:valueViewType

The value for Type

Returns:

AIPromptViewBuilder

Returns the current AIPromptViewBuilder instance.

The template of the view content. It can be a string, a function or a Kendo Template.

C#
public AIPromptViewBuilder ViewTemplate(string value)
Parameters:valuestring

The value for ViewTemplate

Returns:

AIPromptViewBuilder

Returns the current AIPromptViewBuilder instance.

The template of the view content. It can be a string, a function or a Kendo Template.

C#
public AIPromptViewBuilder ViewTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the viewtemplate.

Returns:

AIPromptViewBuilder

Returns the current AIPromptViewBuilder instance.

The template of the view content. It can be a string, a function or a Kendo Template.

C#
public AIPromptViewBuilder ViewTemplateHandler(string templateHandler)
Parameters:templateHandlerstring

The handler that returs the template for ViewTemplate

Returns:

AIPromptViewBuilder

Returns the current AIPromptViewBuilder instance.

The template of the view content. It can be a string, a function or a Kendo Template.

C#
public AIPromptViewBuilder ViewTemplateId(string templateId)
Parameters:templateIdstring

The ID of the template element for ViewTemplate

Returns:

AIPromptViewBuilder

Returns the current AIPromptViewBuilder instance.

The template of the view content. It can be a string, a function or a Kendo Template.

C#
public AIPromptViewBuilder ViewTemplateView(IHtmlContent templateView)
Parameters:templateViewIHtmlContent

The view that contains the template for ViewTemplate

Returns:

AIPromptViewBuilder

Returns the current AIPromptViewBuilder instance.