Kendo UI aiAssistantSettings TagHelper GridSmartBoxAiAssistantSettingsSettingsTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("ai-assistant-settings", ParentTag = "smart-box", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("history", new string[] { "service", "speech-to-text-button" })]
[SuppressTagRendering]
public class GridSmartBoxAiAssistantSettingsSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperChildBaseGridSmartBoxAiAssistantSettingsSettingsTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-grid name="grid">
<smart-box>
<ai-assistant-settings enabled="true" />
</smart-box>
</kendo-grid>
Child Tags
Constructors
Initializes a new instance of the GridSmartBoxAiAssistantSettingsSettingsTagHelper class.
public GridSmartBoxAiAssistantSettingsSettingsTagHelper()
Properties
Enables or disables the AI Assistant mode in the SmartBox.
public bool? Enabled { get; set; }
The placeholder of the input in AI Assistant mode.
public string Placeholder { get; set; }
An array of prompt suggestions displayed in the AI Assistant mode popup.
public string[] PromptSuggestions { get; set; }
String value represents the URL to which the SmartBox tool sends the AI request. When you set this property, the SmartBox tool sends and handles an HTTP request to the provided URL. You can handle the smartBoxAIAssistantPromptRequest event to modify the request options before the tool sends it.The object configuration enables the user to set specific headers configuration and send additional data with the AI request.When service is not configured, the SmartBox tool does not send an HTTP request. You should handle the smartBoxAIAssistantPromptRequest event to send and handle a custom HTTP request.
[HtmlAttributeName("service")]
public string ServiceValue { get; set; }
Methods
Adds the current instance to the parent TagHelper, if applicable.
protected override void AddSelfToParent(TagHelperContext context)
Overrides:
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the defined settings.