blazor-devexpress-dot-blazor-dot-dxtagbox-2-d87af47e.md
Fires after the Tags collection changed.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
[Parameter]
public EventCallback<IEnumerable<string>> TagsChanged { get; set; }
| Type | Description |
|---|---|
| IEnumerable<String> |
The new tags collection.
|
<DxTagBox Data="@Cities"
AllowCustomTags="true"
Tags="@Tags"
TagsChanged="@TagsChanged"
@bind-Values="@Values">
</DxTagBox>
@code {
IEnumerable<string> Tags = new List<string>() {
"London",
"New York"
};
IEnumerable<string> Cities = new List<string>() {
"London",
"Berlin",
"Paris",
};
IEnumerable<string> Values;
void TagsChanged(IEnumerable<string> newTags) {
Tags = newTags;
}
}
You can use the TagsChanging event to validate/cancel the newly selected tags.
See Also