DxTagBox<TData, TValue>.TagsChanged Event
Fires after the Tags collection changed.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.2.dll
NuGet Package: DevExpress.Blazor
Declaration
[Parameter]
public EventCallback<IEnumerable<string>> TagsChanged { get; set; }
Parameters
Type | Description |
---|---|
IEnumerable<String> | The new tags collection. |
Remarks
<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;
}
}
See Also