DxTagBox<TData, TValue>.TagsChanged Event

Fires after the Tags collection changed.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v21.1.dll

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