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

Kendo UI TabStripItem TagHelper TabStripItemActionTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[HtmlTargetElement("tabstrip-item-action", ParentTag = "tabstrip-item-actions", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("icon", new string[] { })]
[OutputElementHint("button")]
public class TabStripItemActionTagHelper : TagHelper, ITagHelper, ITagHelperComponent

Inheritance: objectTagHelperTabStripItemActionTagHelper

Implements: ITagHelperITagHelperComponent

Inherited Members TagHelper.Init(TagHelperContext)TagHelper.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-tabstrip name="tabstrip">
    <items>
        <tabstrip-item>
            <tabstrip-item-actions>
                <tabstrip-item-action action-handler="exampleHandler"></tabstrip-item-action>
            </tabstrip-item-actions>
        </tabstrip-item>
    </items>
</kendo-tabstrip>
<script>
    function exampleHandler(e) {
        // Handler code goes here
    }
</script>

Child Tagsicon

Constructors

The constructor for creating a TabStripItemActionTagHelper instance.

C#
public TabStripItemActionTagHelper(IIconBuilder iconBuilder)
Parameters:iconBuilderIIconBuilder

Properties

A function to be executed when the action button is clicked. The event object is passed as a parameter to the function.

C#
public string ActionHandler { get; set; }

Defines custom attributes to be applied to the action button element.

C#
public IDictionary<string, object> HtmlAttributes { get; set; }

Defines the name for an existing icon in a Kendo UI theme or SVG content that is used for the action button.

C#
public string Icon { get; set; }

If set, this value will be appended to the action button's icon element class attribute. Provides an alternative way to specify an icon using custom CSS classes.

C#
public string IconClass { get; set; }

Methods

Decorates the TabStripItemActionTagHelper's DOM representation.

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

The TagHelper Context.

outputTagHelperOutput

The TagHelper Output.

Returns:

Task

Overrides: TagHelper.ProcessAsync(TagHelperContext, TagHelperOutput)