Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Blazor Textfield Oninput User Typing Delay

$
0
0

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.

Blazor.Templates::3.0.0-preview8.19405.7

Code:

@page "/"<input type="text" @bind="Data" @oninput="OnInputHandler"/><p>@Data</p>@code {        public string Data { get; set; }       public void OnInputHandler(UIChangeEventArgs e)    {        Data = e.Value.ToString();    }    }

Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>