Kendo UI EditorAISettingsCommand TagHelper EditorAISettingsCommandTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
C#
[HtmlTargetElement("command", ParentTag = "ai-prompt-commands", TagStructure = TagStructure.NormalOrSelfClosing)]
[HtmlTargetElement("command", ParentTag = "inline-ai-prompt-commands", TagStructure = TagStructure.NormalOrSelfClosing)]
[HtmlTargetElement("command", ParentTag = "commands", TagStructure = TagStructure.NormalOrSelfClosing)]
[HtmlTargetElement("command", ParentTag = "items", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("items", new string[] { "icon" })]
[SuppressTagRendering]
public class EditorAISettingsCommandTagHelper : TagHelperCollectionItemBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperChildBaseTagHelperCollectionItemBaseEditorAISettingsCommandTagHelper
Implements:
Inherited Members
Example:
csharp
@addTagHelper *, Kendo.Mvc
<kendo-editor name="editor">
<ai>
<ai-prompt>
<ai-prompt-commands>
<command icon="bold"></command>
</ai-prompt-commands>
</ai-prompt>
</ai>
</kendo-editor>
Child Tags
Constructors
Initializes a new instance of the EditorAISettingsCommandTagHelper class.
C#
public EditorAISettingsCommandTagHelper()
Properties
The prompt for the command. The function accepts the following arguments: context - The text in the editor.
C#
public string Prompt { get; set; }
Methods
Adds the current instance to the parent TagHelper, if applicable.
C#
protected override void AddSelfToParent(TagHelperContext context)
Overrides:
C#
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the defined settings.