Blazor Textfield Oninput User Typing Delay

后端 未结 2 1679
长发绾君心
长发绾君心 2020-12-06 05:24

How can I add a delay to an event (OnInput) in Blazor ?
For example, if a user is typing in the text field and you want to wait until the user has finished typing.

2条回答
  •  时光说笑
    2020-12-06 05:55

    I have created a set of Blazor components. One of which is Debounced inputs with multiple input types and much more features. Blazor.Components.Debounce.Input is available on NuGet.

    You can try it out with the demo app.

    Note: currently it is in Preview. Final version is coming with .NET 5. release

提交回复
热议问题