AIPromptViewBuilder
Defines the fluent API for configuring AIPromptView
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class AIPromptViewBuilder
Inheritance: objectAIPromptViewBuilder
Inherited Members
Constructors
AIPromptViewBuilder method.
Properties
Gets the settings being configured.
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.
public AIPromptViewBuilder ButtonIcon(Action<AIPromptViewButtonIconSettingsBuilder> configurator)
The AIPromptViewButtonIconSettingsBuilder for the buttonicon setting.
Returns: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.
public AIPromptViewBuilder ButtonIcon(string buttonIcon)
The buttonicon.
Returns:Returns the current instance of AIPromptViewBuilder .
The text of the Toolbar button rendered for the view.
public AIPromptViewBuilder ButtonText(string value)
The value for ButtonText
Returns:Returns the current AIPromptViewBuilder instance.
The template of the view footer. It can be a string, a function or a Kendo Template.
public AIPromptViewBuilder FooterTemplate(string value)
The value for FooterTemplate
Returns:Returns the current AIPromptViewBuilder instance.
The template of the view footer. It can be a string, a function or a Kendo Template.
public AIPromptViewBuilder FooterTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the footertemplate.
Returns:Returns the current AIPromptViewBuilder instance.
The template of the view footer. It can be a string, a function or a Kendo Template.
public AIPromptViewBuilder FooterTemplateHandler(string templateHandler)
The handler that returs the template for FooterTemplate
Returns:Returns the current AIPromptViewBuilder instance.
The template of the view footer. It can be a string, a function or a Kendo Template.
public AIPromptViewBuilder FooterTemplateId(string templateId)
The ID of the template element for FooterTemplate
Returns:Returns the current AIPromptViewBuilder instance.
The template of the view footer. It can be a string, a function or a Kendo Template.
public AIPromptViewBuilder FooterTemplateView(IHtmlContent templateView)
The view that contains the template for FooterTemplate
Returns: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.
public AIPromptViewBuilder InitializeComponents(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns: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.
public AIPromptViewBuilder InitializeComponents(string handler)
The name of the JavaScript function that will be evaluated.
Returns:Returns the current AIPromptViewBuilder instance.
The name of the view. It is used to identify the view. It should be unique.
public AIPromptViewBuilder Name(string value)
The value for Name
Returns:Returns the current AIPromptViewBuilder instance.
The commands to display in the prompt view.
public AIPromptViewBuilder PromptCommands(Action<AIPromptViewPromptCommandFactory> configurator)
The AIPromptViewPromptCommandFactory for the promptcommands setting.
Returns:Returns the current instance of AIPromptViewBuilder .
Sets the PromptSuggestions collection
public AIPromptViewBuilder PromptSuggestions(ICollection<string> value)
The collection
Returns:Returns the current AIPromptViewBuilder instance.
Adds a suggestion to the PromptSuggestions collection.
public AIPromptViewBuilder PromptSuggestions(string value)
The suggestion
Returns:Returns the current AIPromptViewBuilder instance.
Defines the type of the view.
public AIPromptViewBuilder Type(ViewType value)
The value for Type
Returns:Returns the current AIPromptViewBuilder instance.
The template of the view content. It can be a string, a function or a Kendo Template.
public AIPromptViewBuilder ViewTemplate(string value)
The value for ViewTemplate
Returns:Returns the current AIPromptViewBuilder instance.
The template of the view content. It can be a string, a function or a Kendo Template.
public AIPromptViewBuilder ViewTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the viewtemplate.
Returns:Returns the current AIPromptViewBuilder instance.
The template of the view content. It can be a string, a function or a Kendo Template.
public AIPromptViewBuilder ViewTemplateHandler(string templateHandler)
The handler that returs the template for ViewTemplate
Returns:Returns the current AIPromptViewBuilder instance.
The template of the view content. It can be a string, a function or a Kendo Template.
public AIPromptViewBuilder ViewTemplateId(string templateId)
The ID of the template element for ViewTemplate
Returns:Returns the current AIPromptViewBuilder instance.
The template of the view content. It can be a string, a function or a Kendo Template.
public AIPromptViewBuilder ViewTemplateView(IHtmlContent templateView)
The view that contains the template for ViewTemplate
Returns:Returns the current AIPromptViewBuilder instance.