Badge
Kendo UI Badge component
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
public class Badge : WidgetBase, IHtmlAttributesContainer
Inheritance: objectWidgetBaseBadge
Implements:
Inherited Members
Constructors
Initializes a new instance of the Badge class.
Properties
Defines the alignment of the badge
public BadgeAlign? Align { get; set; }
Specifies whether or not to render additional "cutout" border around the badge.
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; }
Defines how theme colors are applied to a badge
public BadgeFill? FillMode { get; set; }
The text of the badge. Valid input includes string, number or object with toString method. Default is empty string.
public float? FloatText { get; set; }
Defines the name for an existing icon in a Kendo UI theme or SVG content. The icon is rendered inside the badge by a span.k-icon or span.k-svg-icon element.See web font icons help article for more details on Kendo UI icons.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.
public BadgeIconSettings IconSettings { get; }
Defines the position of the badge
public BadgePosition? Position { get; set; }
The template which renders the content of the badge.
public string Template { get; set; }
The handler that returns the template used for Template
public string TemplateHandler { get; set; }
The id of the script element used for Template
public string TemplateId { get; set; }
The text of the badge. Valid input includes string, number or object with toString method. Default is empty string.
public string Text { get; set; }
Defines the color of the badge
public BadgeColor? ThemeColor { get; set; }
Methods
Serializes the component settings to a dictionary.
public override IDictionary<string, object> Serialize()
A dictionary of settings.
Overrides:
SerializeSettings method.
protected override Dictionary<string, object> SerializeSettings()
Overrides:
Writes the HTML.
Writes the initialization script.
public override void WriteInitializationScript(TextWriter writer)
The TextWriter.
Overrides: