Kendo UI ButtonGroupItem TagHelper ButtonGroupItemTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("item", ParentTag = "buttongroup-items", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("badge", new string[] { "icon" })]
[SuppressTagRendering]
public class ButtonGroupItemTagHelper : TagHelperCollectionItemBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperChildBaseTagHelperCollectionItemBaseButtonGroupItemTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-buttongroup name="buttongroup">
<buttongroup-items>
<item text="Button with Badge">
<badge text="1" />
</item>
</buttongroup-items>
</kendo-buttongroup>
Child Tags
Constructors
Initializes a new instance of the ButtonGroupItemTagHelper class.
public ButtonGroupItemTagHelper()
Properties
If set to true a default overlay badge will be displayed. If set to a string, an ovelay with content set to the specified string will be displayed. Can be set to a JavaScript object which represents the configuration of the Badge widget.
[HtmlAttributeName("badge")]
public string BadgeValue { get; set; }
Specifies if text field of the ButtonGroup item should be encoded.
public bool? Encoded { get; set; }
Defines the name of an existing icon in a Kendo theme that is rendered after the text of the item.
public string EndIcon { get; set; }
Specifies the HTML attributes of a ButtonGroup item.
public IDictionary<string, object> HtmlAttributes { get; set; }
Defines the name of an existing icon in a Kendo theme.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; }
Allows the usage of custom icons. Defines CSS classes which are to be applied to a span element inside the ButtonGroup item.
public string IconClass { get; set; }
If set, the ButtonGroup will render an image with the specified URL in the button.
public string ImageUrl { 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:
Serialize method.