ButtonBadgeSettings
Kendo UI ButtonBadgeSettings class
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
public class ButtonBadgeSettings
Inheritance: objectButtonBadgeSettings
Inherited Members
Constructors
public ButtonBadgeSettings()
Properties
Specifies alignment of the badge relative to button. Valid position options are: top start, top end, bottom start, bottom end. works in conjunction with badge.position.
public BadgeAlign? Align { get; set; }
Specifies wether or not to render additional "cutout" border around the badge.
public bool? CutoutBorder { get; set; }
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.
public bool? Enabled { 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 a value controlling how the color is applied to the badge. When undefined (the default), the theme controls the fill mode. Can also be set to the following string values: "solid" or "outline".
public BadgeFill? FillMode { 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.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 ButtonBadgeIconSettings IconSettings { get; }
Specifies position of the badge relative to the edge of the button. Valid placemnt options are: inline, edge, inside, outside.Note: position configuration, other than inline, requires the badge to be aligned. See badge.align for more details.
public BadgePosition? Position { get; set; }
Specifies the rounding of the badge. When undefined (the default), the theme controls the default border radius. Valid options are small, medium, large and full.
public Rounded? Rounded { get; set; }
Sets a value controlling the size of the badge. When undefined (the default), the theme controls the size. Can also be set to the following string values: "small"; "medium" or "large".
public BadgeSize? Size { 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; }
Specifies the color of the component. Valid options are inherit, default, primary, secondary, tertiary, info, success, warning, error, inverted.
public BadgeColor? ThemeColor { get; set; }
Methods
Serialize current instance to Dictionary
Serialize current instance to Dictionary
protected virtual Dictionary<string, object> SerializeSettings()