Kendo UI SplitButtonItem TagHelper SplitButtonItemTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("item", ParentTag = "splitbutton-items", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("icon", new string[] { })]
[SuppressTagRendering]
public class SplitButtonItemTagHelper : TagHelperCollectionItemBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperChildBaseTagHelperCollectionItemBaseSplitButtonItemTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-splitbutton name="splitbutton" text="Actions">
<splitbutton-items>
<item text="Item 1" click="handler" />
</splitbutton-items>
</kendo-splitbutton>
<script>
function handler(e) {
//handler code
}
</script>
Child Tags
Constructors
Initializes a new instance of the SplitButtonItemTagHelper class.
public SplitButtonItemTagHelper()
Properties
Adds a custom data callback to be added to the context of menu item - useful to attach context dynamically.
public string Data { get; set; }
Adds custom attributes to the LI element of the menu button.
public IDictionary<string, object> HtmlAttributes { get; set; }
Specifies the icon of the item.Set this option to an icon descriptor such as { name: "gear", variant: "outline" }. The variant can be outline, solid, or duotone; it applies to SVG rendering and is ignored for font icons.
[HtmlAttributeName("icon")]
public string Icon { get; set; }
Specifies the custom CSS class that is added to the sprite icon element of the item.
public string SpriteCssClass { get; set; }
Methods
Adds the current TagHelper instance to its parent TagHelper.
protected override void AddSelfToParent(TagHelperContext context)
The TagHelper context.
Overrides:
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the defined settings.