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

Defines the fluent API for configuring the AIPromptView settings.

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

Initialize the AIPromptViewBuilder

C#
public AIPromptViewBuilder(AIPromptView settings)
Parameters:settingsAIPromptView

The AIPromptView

Methods

The icon name of the Toolbar button rendered for the view.

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

The value that configures the buttonicon.

Returns:

AIPromptViewBuilder

The text of the Toolbar button rendered for the view.

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

The value that configures the buttontext.

Returns:

AIPromptViewBuilder

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

Returns:

AIPromptViewBuilder

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

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

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

The value that configures the footertemplate.

Returns:

AIPromptViewBuilder

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

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

The value that configures the footertemplate.

Returns:

AIPromptViewBuilder

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

C#
public AIPromptViewBuilder FooterTemplateView(MvcHtmlString value)
Parameters:valueMvcHtmlString

The value that configures the footertemplate.

Returns:

AIPromptViewBuilder

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 value that configures the initializecomponents action.

Returns:

AIPromptViewBuilder

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 value that configures the initializecomponents action.

Returns:

AIPromptViewBuilder

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

Returns:

AIPromptViewBuilder

The commands to display in the prompt view.

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

The action that configures the promptcommands.

Returns:

AIPromptViewBuilder

Sets the PromptSuggestions collection

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

The collection

Returns:

AIPromptViewBuilder

Adds a suggestion to the PromptSuggestions collection.

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

The suggestion

Returns:

AIPromptViewBuilder

Defines the type of the view.

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

The value that configures the type.

Returns:

AIPromptViewBuilder

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

Returns:

AIPromptViewBuilder

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

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

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

The value that configures the viewtemplate.

Returns:

AIPromptViewBuilder

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

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

The value that configures the viewtemplate.

Returns:

AIPromptViewBuilder

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

C#
public AIPromptViewBuilder ViewTemplateView(MvcHtmlString value)
Parameters:valueMvcHtmlString

The value that configures the viewtemplate.

Returns:

AIPromptViewBuilder