Kendo UI badge TagHelper ToggleButtonBadgeSettingsTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("badge", ParentTag = "kendo-togglebutton", TagStructure = TagStructure.WithoutEndTag)]
[SuppressTagRendering]
public class ToggleButtonBadgeSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperChildBaseToggleButtonBadgeSettingsTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-togglebutton name="toggleButton">
<badge align="BadgeAlign.TopEnd" />
</kendo-togglebutton>
Constructors
Initializes a new instance of the ToggleButtonBadgeSettingsTagHelper class.
public ToggleButtonBadgeSettingsTagHelper()
Properties
Sets the alignment of the badge widget that will be displayed in the component.
public BadgeAlign? Align { get; set; }
Specifies whether or not to render additional cutout border around the badge widget that will be displayed in the component.
public bool? CutoutBorder { get; set; }
Determines whether the textual content should be rendered as an HTML string or it should be encoded.
public bool? Encoded { get; set; }
Sets the fill mode of the badge widget that will be displayed in the component.
public BadgeFill? Fill { get; set; }
Sets the position of the badge widget that will be displayed in the component.
public BadgePosition? Position { get; set; }
Sets the border radius of the badge widget that will be displayed in the component.
public Rounded? Rounded { get; set; }
Sets the size of the badge widget that will be displayed in the component.
public ComponentSize? Size { get; set; }
Sets the text for the badge widget that will be displayed in the component.
public string Text { get; set; }
Sets the theme color of the badge widget that will be displayed in the component.
public BadgeColor? ThemeColor { 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.