The Telerik ChipList component allows users to view and select from a set of predefined values represented as TelerikChip 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
public TelerikChipList()
Properties
[Accessibility] Specifies aria-label attribute of the ChipList.
[Parameter]
public string AriaLabel { get; set; }
[Accessibility] Specifies aria-labelledby attribute of the ChipList.
[Parameter]
public string AriaLabelledBy { get; set; }
Data
IEnumerable<TItem>
Defines the collection used to render the individual Chip components.
[Parameter]
public IEnumerable<TItem> Data { get; set; }
Specifies which field of the model determines if the chip is disabled or not. Default field name is "Disabled".
[Parameter]
public string DisabledField { get; set; }
Specifies the fill mode of the chip components.
[Parameter]
public string FillMode { get; set; }
Specifies which field of the model should be used for the fill mode of the Chip. Default field name is "FillMode".
[Parameter]
public string FillModeField { get; set; }
Specifies the gap (padding) between the chip components. Default value is Medium.
[Parameter]
public ChipListGap? Gap { get; set; }
Specifies which field of the model should be used for the icon of the Chip. Default field name is "Icon".
[Parameter]
public string IconField { get; set; }
Specifies which model field provides the SVG variant for each icon identified by IconField. The default field name is "IconVariant". Null, empty, or unsupported item values use the icon's default SVG content, and font or custom CSS icons are unaffected.
[Parameter]
public string IconVariantField { get; set; }
ItemTemplate
RenderFragment<TItem>
Specifies a custom template to be used for rendering individual items. Children: allows arbitrary content for each item.
[Parameter]
public RenderFragment<TItem> ItemTemplate { get; set; }
The event that is triggered when a chip's removed.
[Parameter]
public EventCallback<ChipListRemoveEventArgs> OnRemove { get; set; }
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.
[Parameter]
public bool Removable { get; set; }
Specifies which field of the model determines if the chip is removable or not. Default field name is "Removable".
[Parameter]
public string RemovableField { get; set; }
Specifies an icon rendered as the remove symbol of the chip. You can use either a predefined Telerik Icon or a custom one.
[Parameter]
public object RemoveIcon { get; set; }
Specifies the SVG variant for RemoveIcon. When the value is null, empty, or unsupported, the remove icon's default SVG content is rendered. Font and custom CSS icons are unaffected.
[Parameter]
public string RemoveIconVariant { get; set; }
Specifies the roundness of the chip components.
[Parameter]
public string Rounded { get; set; }
SelectedItems
IEnumerable<TItem>
Defines the collection for the selected items of the ChipList.
[Parameter]
public IEnumerable<TItem> SelectedItems { get; set; }
The event that is triggered when the selected items are changed.
[Parameter]
public EventCallback<IEnumerable<TItem>> SelectedItemsChanged { get; set; }
Defines the selection mode of the ChipList. Default value is Single.
[Parameter]
public ChipListSelectionMode SelectionMode { get; set; }
Specifies the size of the chip components.
[Parameter]
public string Size { get; set; }
Specifies which field of the model is used for the content of the chip. Default field name is "Text".
[Parameter]
public string TextField { get; set; }
Specifies which field of the model should be used for the theme color of the Chip. Default field name is "ThemeColor".
[Parameter]
public string ThemeColorField { get; set; }
Methods
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Overrides: