ChipBuilder
Defines the fluent API for configuring the Kendo UI Chip
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class ChipBuilder : WidgetBuilderBase<Chip, ChipBuilder>, IHtmlContent
Inheritance: objectHelperResultWidgetBuilderBase<Chip, ChipBuilder>ChipBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the ChipBuilder class.
Methods
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 ChipBuilder AvatarClass(string value)
The value for AvatarClass
Returns:Returns the current ChipBuilder instance.
Toggles the enabled state of the Chip.
public ChipBuilder Enabled(bool value)
The value for Enabled
Returns:Returns the current ChipBuilder instance.
Configures the client-side events.
public ChipBuilder Events(Action<ChipEventBuilder> configurator)
The client events action.
Returns:Returns the current ChipBuilder instance.
Sets a value controlling how the color is applied.
public ChipBuilder FillMode(ChipFillMode value)
The value for FillMode
Returns:Returns the current ChipBuilder instance.
Defines custom attributes of the Chip's element.
public override ChipBuilder HtmlAttributes(IDictionary<string, object> attributes)
The value for HtmlAttributes
Returns:Returns the current instance of ChipBuilder for method chaining.
Overrides:
Defines custom attributes of the Chip's element.
public override ChipBuilder HtmlAttributes(object attributes)
The value for HtmlAttributes
Returns:Returns the current instance of ChipBuilder for method chaining.
Overrides:
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 ChipBuilder Icon(Action<ChipIconSettingsBuilder> configurator)
The ChipIconSettingsBuilder for the icon setting.
Returns:Returns the current instance of ChipBuilder .
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 ChipBuilder Icon(string icon)
The icon.
Returns:Returns the current instance of ChipBuilder .
If set, value will be appended to the icon's element class attribute.
public ChipBuilder IconClass(string value)
The value for IconClass
Returns:Returns the current ChipBuilder instance.
The label text of the chip. Default is empty string.
public ChipBuilder Label(string value)
The value for Label
Returns:Returns the current ChipBuilder instance.
Specifies if the Chip will be removable or not. If the property is set to true, the Chip renders a remove icon.
Specifies if the Chip will be removable or not. If the property is set to true, the Chip renders a remove icon.
public ChipBuilder Removable(bool value)
The value for Removable
Returns:Returns the current ChipBuilder instance.
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 ChipBuilder RemoveIcon(Action<ChipRemoveIconSettingsBuilder> configurator)
The ChipRemoveIconSettingsBuilder for the removeicon setting.
Returns:Returns the current instance of ChipBuilder .
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 ChipBuilder RemoveIcon(string removeIcon)
The removeicon.
Returns:Returns the current instance of ChipBuilder .
If set, value will be appended to the remove icon's element class attribute.
public ChipBuilder RemoveIconClass(string value)
The value for RemoveIconClass
Returns:Returns the current ChipBuilder instance.
Sets a value controlling the border radius.
public ChipBuilder Rounded(Rounded value)
The value for Rounded
Returns:Returns the current ChipBuilder instance.
Sets whether the Chip can be selected.
Sets whether the Chip can be selected.
public ChipBuilder Selectable(bool value)
The value for Selectable
Returns:Returns the current ChipBuilder instance.
Toggles the selected state of the Chip.
Toggles the selected state of the Chip.
public ChipBuilder Selected(bool value)
The value for Selected
Returns:Returns the current ChipBuilder instance.
Sets the size of the component.
public ChipBuilder Size(ComponentSize value)
The value for Size
Returns:Returns the current ChipBuilder instance.
Sets the color of the component according to the applied theme.
public ChipBuilder ThemeColor(ChipThemeColor value)
The value for ThemeColor
Returns:Returns the current ChipBuilder instance.