Kendo UI ActionSheetItem TagHelper ActionSheetItemTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("item", ParentTag = "items", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("icon", new string[] { })]
[SuppressTagRendering]
public class ActionSheetItemTagHelper : TagHelperCollectionItemBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperChildBaseTagHelperCollectionItemBaseActionSheetItemTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-actionsheet name="actionsheet">
<items>
<item text="Item 1" click="onItemClick"></item>
</items>
</kendo-actionsheet>
<script>
function onItemClick(){
//handler logic here
}
</script>
Child Tags
Constructors
Initializes a new instance of the ActionSheetItemTagHelper class.
public ActionSheetItemTagHelper()
Properties
Specifies the description of the item.
public string Description { get; set; }
Specifies the group of the item. Items can be segregated in two groups - top and bottom.
public ActionSheetItemGroup? Group { get; set; }
Specifies the icon's name 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; }
The icon color. Available options are inherit, default, primary, secondary, tertiary, info, success, warning, error, inverted or any hexadecimal value.
public string IconColor { 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.