ClassTelerikChipList<TItem>
The Telerik ChipList component allows users to view and select from a set of predefined values represented as Chip elements.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Type Parameters:
TItem
Syntax:
public class TelerikChipList<TItem> : BaseComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseBaseComponentTelerikChipList<TItem>
Implements:
Inherited Members
Constructors
TelerikChipList()
Declaration
public TelerikChipList()
Properties
AriaLabel
Specifies aria-label attribute of the ChipList.
AriaLabelledBy
Specifies aria-labelledby attribute of the ChipList.
Data
Defines the collection used to render the individual Chip components.
DisabledField
Specifies which field of the model determines if the chip is disabled or not. Default field name is "Disabled".
IconField
Specifies which field of the model should be used for the icon of the Chip. Default field name is "Icon".
ItemTemplate
Specifies a custom template to be used for rendering individual items. Children: allows arbitrary content for each item.
Declaration
[Parameter]
public RenderFragment<TItem> ItemTemplate { get; set; }
Property Value
RenderFragment<TItem>
OnRemove
The event that is triggered when a chip's removed.
Declaration
[Parameter]
public EventCallback<ChipListRemoveEventArgs> OnRemove { get; set; }
Property Value
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.
RemovableField
Specifies which field of the model determines if the chip is removable or not. Default field name is "Removable".
RemoveIcon
Specifies an icon rendered as the remove symbol of the chip. You can use either a predefined Telerik Icon or a custom one.
SelectedItems
Defines the collection for the selected items of the ChipList.
Declaration
[Parameter]
public IEnumerable<TItem> SelectedItems { get; set; }
Property Value
IEnumerable<TItem>
SelectedItemsChanged
The event that is triggered when the selected items are changed.
Declaration
[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
[Parameter]
public ChipListSelectionMode SelectionMode { get; set; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
Overrides