Kendo UI smartBox TagHelper GridSmartBoxSettingsTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("smart-box", ParentTag = "kendo-grid", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("history", new string[] { "suggestion-template", "history-item-template", "search-settings", "semantic-search-settings", "ai-assistant-settings" })]
[SuppressTagRendering]
public class GridSmartBoxSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent, ITemplateComponent
Inheritance: objectTagHelperTagHelperChildBaseGridSmartBoxSettingsTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-grid name="grid">
<smart-box active-mode="SmartBoxActiveMode.Search"></smart-box>
</kendo-grid>
Child Tags
Constructors
Initializes a new instance of the GridSmartBoxSettingsTagHelper class.
public GridSmartBoxSettingsTagHelper()
Properties
Defines the active mode of the SmartBox.
public SmartBoxActiveMode? ActiveMode { get; set; }
Represents the template for a history query in the SmartBox component. This option expects the name of a JavaScript function that will be called to return the template.
public string HistoryItemTemplateHandler { get; set; }
The name of the JavaScript function that will handle the aiAssistantCancelRequest event.
public string OnAiAssistantCancelRequest { get; set; }
The name of the JavaScript function that will handle the aiAssistantPromptRequest event.
public string OnAiAssistantPromptRequest { get; set; }
The name of the JavaScript function that will handle the aiAssistantResponseError event.
public string OnAiAssistantResponseError { get; set; }
The name of the JavaScript function that will handle the aiAssistantResponseSuccess event.
public string OnAiAssistantResponseSuccess { get; set; }
The name of the JavaScript function that will handle the blur event.
public string OnBlur { get; set; }
The name of the JavaScript function that will handle the close event.
public string OnClose { get; set; }
The name of the JavaScript function that will handle the focus event.
public string OnFocus { get; set; }
The name of the JavaScript function that will handle the open event.
public string OnOpen { get; set; }
The name of the JavaScript function that will handle the search event.
public string OnSearch { get; set; }
The name of the JavaScript function that will handle the semanticSearch event.
public string OnSemanticSearch { get; set; }
The unified placeholder text of the SmartBox input independent of the activated mode.
public string Placeholder { get; set; }
Represents the template for a suggestion in the SmartBox component AI Assistant mode. This option expects the name of a JavaScript function that will be called to return the template.
public string SuggestionTemplateHandler { get; set; }
A collection of templates that can be used for the component.
[HtmlAttributeNotBound]
public IDictionary<string, string> Templates { get; }
Implements:
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.