Chip
Kendo UI Chip component
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
public class Chip : WidgetBase, IWidget, IHtmlAttributesContainer, IScriptableComponent
Inheritance: objectWidgetBaseChip
Implements:
Inherited Members
Constructors
Initializes a new instance of the Chip class.
public Chip(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
The view context
initializerIJavaScriptInitializerThe JavaScriptInitializer
urlGeneratorIUrlGeneratorThe URL generator.
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 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.
public string Icon { get; set; }
If set, value will be appended to the icon's element class attribute.
public string IconClass { get; set; }
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; }
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.
public string RemoveIcon { get; set; }
If set, value will be appended to the remove icon's element class attribute.
public string RemoveIconClass { get; set; }
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
public override IDictionary<string, object> Serialize()
Overrides:
Writes the HTML.
protected override void WriteHtml(HtmlTextWriter writer)
The HtmlTextWriter.
Overrides:
Writes the initialization script.
public override void WriteInitializationScript(TextWriter writer)
The TextWriter.
Overrides: