Chip
Kendo UI Chip component
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
public class Chip : WidgetBase, IHtmlAttributesContainer
Inheritance: objectWidgetBaseChip
Implements:
Inherited Members
Constructors
Initializes a new instance of the Chip class.
Properties
If set, value will be appended to the icon's element class attribute. It also appends "k-chip avatar" and "k-avatar" classes to the icon's element.
public string AvatarClass { get; set; }
Sets a value controlling how the color is applied.
public ChipFillMode? FillMode { get; set; }
Defines custom attributes of the Chip's element.
public IDictionary<string, object> HtmlAttributes { get; set; }
If set, value will be appended to the icon's element class attribute.
public string IconClass { get; set; }
Defines the name for an existing icon in a Kendo UI theme or SVG content. The icon is rendered inside the chip 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 ChipIconSettings IconSettings { get; }
The label text of the chip. Default is empty string.
public string Label { get; set; }
Specifies if the Chip will be removable or not. If the property is set to true, the Chip renders a remove icon.
public bool? Removable { get; set; }
public string RemoveIcon { get; set; }
If set, value will be appended to the remove icon's element class attribute.
public string RemoveIconClass { get; set; }
Defines the name for an existing icon in a Kendo UI theme or SVG content for the remove button when removable=true. The icon is rendered inside the chip 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 ChipRemoveIconSettings RemoveIconSettings { get; }
Sets whether the Chip can be selected.
public bool? Selectable { get; set; }
Sets the size of the component.
public ComponentSize? Size { get; set; }
Sets the color of the component according to the applied theme.
public ChipThemeColor? 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: