Kendo UI ai TagHelper GridAiSettingsTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("ai", ParentTag = "kendo-grid", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("service", new string[] { "ai-assistant", "ai-assistant-window" })]
[SuppressTagRendering]
public class GridAiSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperChildBaseGridAiSettingsTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-grid name="grid">
<ai>
<ai-assistant show-output-rating="true"></ai-assistant>
</ai>
</kendo-grid>
Child Tags
Constructors
Initializes a new instance of the GridAiSettingsTagHelper class.
public GridAiSettingsTagHelper()
Properties
Defines the configuration options for the AI AssistantWindow in the Grid. If set to false, the AI AssistantWindow is disabled.
[HtmlAttributeNotBound]
public Dictionary<string, object> AIPromptSettings { get; set; }
Configures if the AI Assistant Window should remain visible after the response.
public bool? AutoClose { get; set; }
Configures if the AI Assistant output should be cleared after closing.
public bool? KeepOutputHistory { get; set; }
The URL or the configuration of the AI service to use for generating outputs.
[HtmlAttributeName("service")]
public string ServiceValue { get; set; }
Defines the configuration options for the AI AssistantWindow in the Grid. If set to false, the AI AssistantWindow is disabled.
[HtmlAttributeNotBound]
public Dictionary<string, object> WindowSettings { get; set; }
Methods
Adds the current TagHelper instance to its parent TagHelper.
protected override void AddSelfToParent(TagHelperContext context)
The TagHelper context.
Overrides:
ProcessAsync method.
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serialize method.