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:
Inherited Members
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 Tags
Constructors
The constructor for creating a TabStripItemActionTagHelper instance.
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; }
Methods
Decorates the TabStripItemActionTagHelper's DOM representation.
C#
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
The TagHelper Context.
outputTagHelperOutputThe TagHelper Output.
Returns:Overrides: