Is it possible to get the actual 'onHold' data of a slider kind input in Blazor? Below you can see the code I created. As you may know, this way every time I press the button, I get back the current state of the slider, but I am willing to update the '@printnumber' as I am moving the slider, in real-time.
<p>Number:</p>
<input type="range" min="3" max="50" step="1" @bind="actualNumber" />
<p>@printNumber</p>
<button class="btn btn-primary" @onclick="Calc" >Click me</button>
@code
{
private int actualNumber;
private int printNumber;
public void Calc()
{
printNumber = actualNumber;
}
}
I have been looking for a solution but didn't find any right scenario to solve this issue.