New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Kendo UI badge TagHelper ToggleButtonBadgeSettingsTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[HtmlTargetElement("badge", ParentTag = "kendo-togglebutton", TagStructure = TagStructure.WithoutEndTag)]
[SuppressTagRendering]
public class ToggleButtonBadgeSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent

Inheritance: objectTagHelperTagHelperChildBaseToggleButtonBadgeSettingsTagHelper

Implements: ITagHelperITagHelperComponent

Inherited Members TagHelperChildBase.Init(TagHelperContext)TagHelperChildBase.AddSelfToContext(TagHelperContext)TagHelperChildBase.CreateHandler(string)TagHelperChildBase.IdPrefixTagHelper.Process(TagHelperContext, TagHelperOutput)TagHelper.Orderobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Example:

csharp
@addTagHelper *, Kendo.Mvc

<kendo-togglebutton name="toggleButton">
    <badge align="BadgeAlign.TopEnd" />
</kendo-togglebutton>

Constructors

Initializes a new instance of the ToggleButtonBadgeSettingsTagHelper class.

C#
public ToggleButtonBadgeSettingsTagHelper()

Properties

Sets the alignment of the badge widget that will be displayed in the component.

C#
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.

C#
public bool? CutoutBorder { get; set; }

Determines whether the textual content should be rendered as an HTML string or it should be encoded.

C#
public bool? Encoded { get; set; }

Sets the fill mode of the badge widget that will be displayed in the component.

C#
public BadgeFill? Fill { get; set; }

Sets the position of the badge widget that will be displayed in the component.

C#
public BadgePosition? Position { get; set; }

Sets the border radius of the badge widget that will be displayed in the component.

C#
public Rounded? Rounded { get; set; }

Sets the size of the badge widget that will be displayed in the component.

C#
public ComponentSize? Size { get; set; }

Sets the text for the badge widget that will be displayed in the component.

C#
public string Text { get; set; }

Sets the theme color of the badge widget that will be displayed in the component.

C#
public BadgeColor? ThemeColor { get; set; }

Sets whether the badge widget will be visible or not in the component.

C#
public bool? Visible { get; set; }

Methods

Adds the current TagHelper instance to its parent TagHelper.

C#
protected override void AddSelfToParent(TagHelperContext context)
Parameters:contextTagHelperContext

The TagHelper context.

Overrides: TagHelperChildBase.AddSelfToParent(TagHelperContext)

C#
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Parameters:contextTagHelperContextoutputTagHelperOutputReturns:

Task

Overrides: TagHelperChildBase.ProcessAsync(TagHelperContext, TagHelperOutput)

Serializes the defined settings.

C#
public Dictionary<string, object> Serialize()
Returns:

Dictionary<string, object>