Kendo UI AIPromptView TagHelper AIPromptViewTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("aiprompt-view", ParentTag = "aiprompt-views", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("prompt-commands", new string[] { "button-icon" })]
[SuppressTagRendering]
public class AIPromptViewTagHelper : TagHelperCollectionItemBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperChildBaseTagHelperCollectionItemBaseAIPromptViewTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-aiprompt name="aiprompt">
<aiprompt-views>
<aiprompt-view type="ViewType.Prompt" name="view1" button-icon="gear"></aiprompt-view>
</aiprompt-views>
</kendo-aiprompt>
Child Tags
Constructors
Initializes a new instance of the AIPromptViewTagHelper class.
public AIPromptViewTagHelper()
Properties
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.
[HtmlAttributeName("button-icon")]
public string ButtonIcon { get; set; }
The text of the Toolbar button rendered for the view.
public string ButtonText { get; set; }
The template of the view footer. It can be a string, a function or a Kendo Template.
public string FooterTemplate { get; set; }
The template of the view footer. It can be a string, a function or a Kendo Template. This option expects the name of a JavaScript function that will be called to return the template.
public string FooterTemplateHandler { get; set; }
The template of the view footer. It can be a string, a function or a Kendo Template. This option expects the ID of the script element that contains the template.
public string FooterTemplateId { get; set; }
The template of the view footer. It can be a string, a function or a Kendo Template. This option expects the IHtmlContent instance containing the created HTML.
public IHtmlContent FooterTemplateView { get; set; }
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 string InitializeComponents { get; set; }
The name of the view. It is used to identify the view. It should be unique.
public string Name { get; set; }
An array of prompt suggestions as strings to display in the prompt view. The suggestions can be clicked to populate the prompt input.
public ICollection<string> PromptSuggestions { get; set; }
The template of the view content. It can be a string, a function or a Kendo Template.
public string ViewTemplate { get; set; }
The template of the view content. It can be a string, a function or a Kendo Template. This option expects the name of a JavaScript function that will be called to return the template.
public string ViewTemplateHandler { get; set; }
The template of the view content. It can be a string, a function or a Kendo Template. This option expects the ID of the script element that contains the template.
public string ViewTemplateId { get; set; }
The template of the view content. It can be a string, a function or a Kendo Template. This option expects the IHtmlContent instance containing the created HTML.
public IHtmlContent ViewTemplateView { get; set; }
Methods
Adds the current TagHelper instance to its parent TagHelper.
protected override void AddSelfToParent(TagHelperContext context)
The TagHelper context.
Overrides:
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the defined settings.