New to Telerik UI for ASP.NET Core? Download free 30-day trial

ChipBuilder

Properties

WriteAction - Func

Methods

HtmlAttributes(System.Collections.Generic.IDictionary)

Defines custom attributes of the Chip's element.

Parameters

value - System.Collections.Generic.IDictionary<String,Object>

The value for HtmlAttributes

HtmlAttributes(System.Object)

Defines custom attributes of the Chip's element.

Parameters

value - System.Object

The value for HtmlAttributes

Icon(System.String)

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.

Parameters

value - System.String

The value for Icon

IconClass(System.String)

If set, value will be appended to the icon's element class attribute.

Parameters

value - System.String

The value for IconClass

AvatarClass(System.String)

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.

Parameters

value - System.String

The value for AvatarClass

RemoveIcon(System.String)

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.

Parameters

value - System.String

The value for RemoveIcon

RemoveIconClass(System.String)

If set, value will be appended to the remove icon's element class attribute.

Parameters

value - System.String

The value for RemoveIconClass

Label(System.String)

The label text of the chip. Default is empty string.

Parameters

value - System.String

The value for Label

Removable(System.Boolean)

Specifies if the Chip will be removable or not. If the property is set to true, the Chip renders a remove icon.

Parameters

value - System.Boolean

The value for Removable

Removable()

Specifies if the Chip will be removable or not. If the property is set to true, the Chip renders a remove icon.

Selectable(System.Boolean)

Sets whether the Chip can be selected.

Parameters

value - System.Boolean

The value for Selectable

Selectable()

Sets whether the Chip can be selected.

Selected(System.Boolean)

Toggles the selected state of the Chip.

Parameters

value - System.Boolean

The value for Selected

Selected()

Toggles the selected state of the Chip.

Enabled(System.Boolean)

Toggles the enabled state of the Chip.

Parameters

value - System.Boolean

The value for Enabled

Size(Kendo.Mvc.UI.ComponentSize)

Sets the size of the component.

Parameters

value - ComponentSize

The value for Size

Rounded(Kendo.Mvc.UI.Rounded)

Sets a value controlling the border radius.

Parameters

value - Rounded

The value for Rounded

FillMode(Kendo.Mvc.UI.ChipFillMode)

Sets a value controlling how the color is applied.

Parameters

value - ChipFillMode

The value for FillMode

ThemeColor(Kendo.Mvc.UI.ChipThemeColor)

Sets the color of the component according to the applied theme.

Parameters

value - ChipThemeColor

The value for ThemeColor

Events(System.Action)

Configures the client-side events.

Parameters

configurator - System.Action<ChipEventBuilder>

The client events action.

Example


            @(Html.Kendo().Chip()
                  .Name("Chip")
                  .Events(events => events
                      .Click("onClick")
                  )
            )

ToComponent()

Returns the internal view component.

Expression(System.String)

Sets the name of the component.

Parameters

modelExpression - System.String

Explorer(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer)

Sets the name of the component.

Parameters

modelExplorer - Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer

Name(System.String)

Sets the name of the component.

Parameters

componentName - System.String

The name.

Deferred(System.Boolean)

Suppress initialization script rendering. Note that this options should be used in conjunction with

Parameters

deferred - System.Boolean

ScriptAttributes(System.Object,System.Boolean)

Sets the JavaScript attributes to the initialization script.

Parameters

attributes - System.Object

The JavaScript attributes.

overrideAttributes - System.Boolean

Argument which determines whether attributes should be overriden.

ScriptAttributes(System.Collections.Generic.IDictionary,System.Boolean)

Sets the JavaScript attributes to the initialization script.

Parameters

attributes - System.Collections.Generic.IDictionary<String,Object>

The JavaScript attributes.

overrideAttributes - System.Boolean

Argument which determines whether attributes should be overriden.

Render()

Renders the component in place.

ToHtmlString()

WriteTo(System.IO.TextWriter,System.Text.Encodings.Web.HtmlEncoder)

Parameters

writer - System.IO.TextWriter
encoder - System.Text.Encodings.Web.HtmlEncoder

ToClientTemplate()

AsModule(System.Boolean)

Specifies whether the initialization script of the component will be rendered as a JavaScript module.

Parameters

value - System.Boolean

AsChildComponent()

Configures the widget as a child component.

In this article
Not finding the help you need?