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

Kendo UI aiAssistantSettings TagHelper GridSmartBoxAiAssistantSettingsSettingsTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[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: ITagHelperITagHelperComponent

Inherited Members TagHelperChildBase.Init(TagHelperContext)TagHelperChildBase.AddSelfToContext(TagHelperContext)TagHelperChildBase.CreateHandler(string)TagHelperChildBase.IdPrefixTagHelper.Process(TagHelperContext, TagHelperOutput)TagHelper.Orderobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Example:

csharp
@addTagHelper *, Kendo.Mvc

<kendo-grid name="grid">
    <smart-box>
        <ai-assistant-settings enabled="true" />
    </smart-box>
</kendo-grid>

Constructors

Initializes a new instance of the GridSmartBoxAiAssistantSettingsSettingsTagHelper class.

C#
public GridSmartBoxAiAssistantSettingsSettingsTagHelper()

Properties

Enables or disables the AI Assistant mode in the SmartBox.

C#
public bool? Enabled { get; set; }

The placeholder of the input in AI Assistant mode.

C#
public string Placeholder { get; set; }

An array of prompt suggestions displayed in the AI Assistant mode popup.

C#
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.

C#
[HtmlAttributeName("service")]
public string ServiceValue { get; set; }

Methods

Adds the current instance to the parent TagHelper, if applicable.

C#
protected override void AddSelfToParent(TagHelperContext context)
Parameters:contextTagHelperContext

Overrides: TagHelperChildBase.AddSelfToParent(TagHelperContext)

C#
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Parameters:contextTagHelperContextoutputTagHelperOutputReturns:

Task

Overrides: TagHelperChildBase.ProcessAsync(TagHelperContext, TagHelperOutput)

Serializes the defined settings.

C#
public Dictionary<string, object> Serialize()
Returns:

Dictionary<string, object>