Class TelerikChipList<TItem>
Inherited Members
Namespace: Telerik.Blazor.Components
Assembly: Telerik.Blazor.dll
Syntax
public class TelerikChipList<TItem> : BaseComponent, IDisposable, IChipListContainer<TItem>, IChipListContainer
Type Parameters
TItem
|
Constructors
TelerikChipList()
Declaration
public TelerikChipList()
Properties
AriaLabel
Specifies aria-label attribute of the ChipList.
Declaration
public string AriaLabel { get; set; }
Property Value
System.String
|
AriaLabelledBy
Specifies aria-labelledby attribute of the ChipList.
Declaration
public string AriaLabelledBy { get; set; }
Property Value
System.String
|
Data
Defines the collection used to render the individual Chip components.
Declaration
public IEnumerable<TItem> Data { get; set; }
Property Value
System.Collections.Generic.IEnumerable<TItem>
|
DisabledField
Specifies which field of the model determines if the chip is disabled or not. Default field name is "Disabled".
Declaration
public string DisabledField { get; set; }
Property Value
System.String
|
FillMode
Specifies the fill mode of the chip components. Default value is Solid.
Declaration
public string FillMode { get; set; }
Property Value
System.String
|
Gap
Specifies the gap (padding) between the chip components. Default value is Medium.
Declaration
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
public string IconField { get; set; }
Property Value
System.String
|
ItemTemplate
Declaration
public RenderFragment<TItem> ItemTemplate { get; set; }
Property Value
Microsoft.AspNetCore.Components.RenderFragment<TItem>
|
OnRemove
The event that is triggered when a chip's removed.
Declaration
public EventCallback<ChipListRemoveEventArgs> OnRemove { get; set; }
Property Value
Microsoft.AspNetCore.Components.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
public bool Removable { get; set; }
Property Value
System.Boolean
|
RemovableField
Specifies which field of the model determines if the chip is removable or not. Default field name is "Removable".
Declaration
public string RemovableField { get; set; }
Property Value
System.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
public object RemoveIcon { get; set; }
Property Value
System.Object
|
Rounded
Specifies the roundness of the chip components. Default value is Medium.
Declaration
public string Rounded { get; set; }
Property Value
System.String
|
SelectedItems
Defines the collection for the selected items of the ChipList.
Declaration
public IEnumerable<TItem> SelectedItems { get; set; }
Property Value
System.Collections.Generic.IEnumerable<TItem>
|
SelectedItemsChanged
The event that is triggered when the selected items are changed.
Declaration
public EventCallback<IEnumerable<TItem>> SelectedItemsChanged { get; set; }
Property Value
Microsoft.AspNetCore.Components.EventCallback<System.Collections.Generic.IEnumerable<TItem>>
|
SelectionMode
Defines the selection mode of the ChipList. Default value is Single.
Declaration
public ChipListSelectionMode SelectionMode { get; set; }
Property Value
ChipListSelectionMode
|
Size
Specifies the size of the chip components. Default value is Medium.
Declaration
public string Size { get; set; }
Property Value
System.String
|
TextField
Specifies which field of the model is used for the content of the chip. Default field name is "Text".
Declaration
public string TextField { get; set; }
Property Value
System.String
|
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder
__builder
|
OnAfterRenderAsync(Boolean)
Declaration
protected override Task OnAfterRenderAsync(bool firstRender)
Parameters
System.Boolean
firstRender
|
Returns
System.Threading.Tasks.Task
|