Class
TelerikChipList<TItem>

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Type Parameters:

TItem

Syntax:

cs-api-definition
public class TelerikChipList<TItem> : BaseComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

Inheritance: objectComponentBaseBaseComponentTelerikChipList<TItem>

Implements: IComponentIDisposableIHandleAfterRenderIHandleEvent

Inherited Members BaseComponent.ShouldRender()BaseComponent.OnInitializedAsync()BaseComponent.Dispose()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.OnInitialized()ComponentBase.OnParametersSet()ComponentBase.OnParametersSetAsync()ComponentBase.OnAfterRender(bool)ComponentBase.InvokeAsync(Action)ComponentBase.InvokeAsync(Func<Task>)ComponentBase.SetParametersAsync(ParameterView)

Constructors

TelerikChipList()

Declaration

cs-api-definition
public TelerikChipList()

Properties

AriaLabel

Specifies aria-label attribute of the ChipList.

Declaration

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

Property Value

string

AriaLabelledBy

Specifies aria-labelledby attribute of the ChipList.

Declaration

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

Property Value

string

Data

Defines the collection used to render the individual Chip components.

Declaration

cs-api-definition
[Parameter]
public IEnumerable<TItem> Data { get; set; }

Property Value

IEnumerable<TItem>

DisabledField

Specifies which field of the model determines if the chip is disabled or not. Default field name is "Disabled".

Declaration

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

Property Value

string

FillMode

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

Declaration

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

Property Value

string

Gap

Specifies the gap (padding) between the chip components. Default value is Medium.

Declaration

cs-api-definition
[Parameter]
public ChipListGap Gap { get; set; }

Property Value

ChipListGap

IconField

Specifies which field of the model should be used for the icon of the Chip. Default field name is "Icon".

Declaration

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

Property Value

string

ItemTemplate

Declaration

cs-api-definition
[Parameter]
public RenderFragment<TItem> ItemTemplate { get; set; }

Property Value

RenderFragment<TItem>

OnRemove

The event that is triggered when a chip's removed.

Declaration

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

Property Value

EventCallback<ChipListRemoveEventArgs>

Removable

Specifies whether the chip components will be removable. Default value is false. Applied to all child Chip components. RemovableField overrides this option and allows for conditionally removable Chips.

Declaration

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

Property Value

bool

RemovableField

Specifies which field of the model determines if the chip is removable or not. Default field name is "Removable".

Declaration

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

Property Value

string

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 components. Default value is Medium.

Declaration

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

Property Value

string

SelectedItems

Defines the collection for the selected items of the ChipList.

Declaration

cs-api-definition
[Parameter]
public IEnumerable<TItem> SelectedItems { get; set; }

Property Value

IEnumerable<TItem>

SelectedItemsChanged

The event that is triggered when the selected items are changed.

Declaration

cs-api-definition
[Parameter]
public EventCallback<IEnumerable<TItem>> SelectedItemsChanged { get; set; }

Property Value

EventCallback<IEnumerable<TItem>>

SelectionMode

Defines the selection mode of the ChipList. Default value is Single.

Declaration

cs-api-definition
[Parameter]
public ChipListSelectionMode SelectionMode { get; set; }

Property Value

ChipListSelectionMode

Size

Specifies the size of the chip components. Default value is Medium.

Declaration

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

Property Value

string

TextField

Specifies which field of the model is used for the content of the chip. Default field name is "Text".

Declaration

cs-api-definition
[Parameter]
public string TextField { 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)

OnAfterRenderAsync(bool)

Declaration

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

Parameters

firstRender

bool

Returns

Task

Overrides BaseComponent.OnAfterRenderAsync(bool)