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

Kendo UI PromptOutputAction TagHelper OutputActionTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[HtmlTargetElement("output-action", ParentTag = "output-actions", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("icon", new string[] { })]
public class OutputActionTagHelper : TagHelperCollectionItemBase, ITagHelper, ITagHelperComponent

Inheritance: objectTagHelperTagHelperChildBaseTagHelperCollectionItemBaseOutputActionTagHelper

Derived Classes: AIPromptOutputActionTagHelper

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:

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.

csharp
@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 Tagsicon

Constructors

C#
public OutputActionTagHelper()

Properties

The command identifier for the action. This is used to identify the action when the outputAction event is triggered.

C#
public string Command { get; set; }

Sets a value controlling how the color is applied.

C#
public FillMode? FillMode { get; set; }

The icon name for the action button. Uses Kendo UI icon names.

C#
public string Icon { get; set; }

Sets a value controlling the border radius.

C#
public Rounded? Rounded { get; set; }

The text displayed on the action button.

C#
public string Text { get; set; }

Sets a value controlling the theme color.

C#
public ThemeColor? ThemeColor { get; set; }

Specifies the title attribute (tooltip) for the action button.

C#
public string Title { 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 Prompt output settings.

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

Dictionary<string, object>