Kendo UI PromptOutputAction TagHelper OutputActionTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("output-action", ParentTag = "output-actions", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("icon", new string[] { })]
public class OutputActionTagHelper : TagHelperCollectionItemBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperChildBaseTagHelperCollectionItemBaseOutputActionTagHelper
Derived Classes:
Implements:
Inherited Members
Example:
The following configuration is applicable for the AIPrompt and InlineAIPrompt TagHelpers. The following example demonstrates how to configure the output actions for the AIPrompt component.
@addTagHelper *, Kendo.Mvc
<kendo-aiprompt name="aiprompt">
<output-actions>
<aiprompt-output-action command="copy" />
<aiprompt-output-action command="retry" />
<aiprompt-output-action type="ItemType.Spacer" />
<aiprompt-output-action command="rating" />
</output-actions>
</kendo-aiprompt>
Child Tags
Constructors
public OutputActionTagHelper()
Properties
The command identifier for the action. This is used to identify the action when the outputAction event is triggered.
public string Command { get; set; }
Sets a value controlling how the color is applied.
public FillMode? FillMode { get; set; }
The icon name for the action button. Uses Kendo UI icon names.
public string Icon { get; set; }
Sets a value controlling the theme color.
public ThemeColor? ThemeColor { 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 Prompt output settings.