Class
TelerikChip

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Syntax:

cs-api-definition
public class TelerikChip : BaseComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

Inheritance: objectComponentBaseBaseComponentTelerikChip

Implements: IComponentIDisposableIHandleAfterRenderIHandleEvent

Inherited Members BaseComponent.ShouldRender()BaseComponent.OnInitializedAsync()BaseComponent.InitLocalizer()BaseComponent.ThrowIfParameterIsNull(object, string)BaseComponent.HaveOptionsChanged(IDictionary<string, object>, IDictionary<string, object>)BaseComponent.GetClassString(params string[])BaseComponent.InvokeAsync<T>(string, params object[])BaseComponent.InvokeAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidAsync(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidComponentMethodAsync(string, params object[])BaseComponent.InvokeComponentVoidMethodAsync(string, object)BaseComponent.InvokeDisposeAsync()BaseComponent.StateHasChanged()BaseComponent.RootComponentBaseComponent.ClassComponentBase.OnParametersSet()ComponentBase.OnParametersSetAsync()ComponentBase.OnAfterRender(bool)ComponentBase.InvokeAsync(Action)ComponentBase.InvokeAsync(Func<Task>)ComponentBase.SetParametersAsync(ParameterView)

Constructors

TelerikChip()

Declaration

cs-api-definition
public TelerikChip()

Properties

AriaLabel

Describes the aria-label attribute for the component.

Declaration

cs-api-definition
[Parameter]
public string AriaLabel { get; set; }

Property Value

string

ChildContent

Specifies arbitrary content for the chip. Overrides default rendering.

Declaration

cs-api-definition
[Parameter]
public RenderFragment ChildContent { get; set; }

Property Value

RenderFragment

Disabled

Specifies the disabled state of the chip. Default value is false.

Declaration

cs-api-definition
[Parameter]
public bool Disabled { get; set; }

Property Value

bool

FillMode

Specifies the fill mode of the chip. Default value is Solid.

Declaration

cs-api-definition
[Parameter]
public string FillMode { get; set; }

Property Value

string

Icon

Specifies the icon rendered before the chip's text. You can use either a predefined Telerik Icon or a custom one. Refer to Icons - Documentation for more information on how icons work.

Declaration

cs-api-definition
[Parameter]
public object Icon { get; set; }

Property Value

object

Id

Defines the id of the component.

Declaration

cs-api-definition
[Parameter]
public string Id { get; set; }

Property Value

string

OnClick

Declaration

cs-api-definition
[Parameter]
public EventCallback<ChipClickEventArgs> OnClick { get; set; }

Property Value

EventCallback<ChipClickEventArgs>

OnRemove

Declaration

cs-api-definition
[Parameter]
public EventCallback<ChipRemoveEventArgs> OnRemove { get; set; }

Property Value

EventCallback<ChipRemoveEventArgs>

Removable

Specifies whether the chip is removable. Default value is false.

Declaration

cs-api-definition
[Parameter]
public bool Removable { get; set; }

Property Value

bool

RemoveIcon

Specifies an icon rendered as the remove symbol of the chip. You can use either a predefined Telerik Icon or a custom one.

Declaration

cs-api-definition
[Parameter]
public object RemoveIcon { get; set; }

Property Value

object

Rounded

Specifies the roundness of the chip. Default value is Medium.

Declaration

cs-api-definition
[Parameter]
public string Rounded { get; set; }

Property Value

string

Selectable

Specifies whether the chip can be selected. Default value is true.

Declaration

cs-api-definition
[Parameter]
public bool Selectable { get; set; }

Property Value

bool

Selected

Specifies the selected state of the chip. Default value is false.

Declaration

cs-api-definition
[Parameter]
public bool Selected { get; set; }

Property Value

bool

SelectedChanged

Triggered when the Selected parameter is updated.

Declaration

cs-api-definition
[Parameter]
public EventCallback<bool> SelectedChanged { get; set; }

Property Value

EventCallback<bool>

Size

Specifies the roundness of the chip. Default value is Medium.

Declaration

cs-api-definition
[Parameter]
public string Size { get; set; }

Property Value

string

TabIndex

Specifies the TabIndex of the chip component.

Declaration

cs-api-definition
[Parameter]
public int TabIndex { get; set; }

Property Value

int

Text

Specifies the text for the chip.

Declaration

cs-api-definition
[Parameter]
public string Text { get; set; }

Property Value

string

ThemeColor

Specifies the theme color of the chip. Default value is Base.

Declaration

cs-api-definition
[Parameter]
public string ThemeColor { get; set; }

Property Value

string

Methods

BuildRenderTree(RenderTreeBuilder)

Declaration

cs-api-definition
protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder

RenderTreeBuilder

Overrides ComponentBase.BuildRenderTree(RenderTreeBuilder)

Dispose()

Declaration

cs-api-definition
public override void Dispose()

Overrides BaseComponent.Dispose()

Implements IDisposable.Dispose()

OnAfterRenderAsync(bool)

Declaration

cs-api-definition
protected override Task OnAfterRenderAsync(bool firstRender)

Parameters

firstRender

bool

Returns

Task

Overrides BaseComponent.OnAfterRenderAsync(bool)

OnInitialized()

Declaration

cs-api-definition
protected override void OnInitialized()

Overrides ComponentBase.OnInitialized()