I want to bind to the value and also fire the method CalculateStandardDimensions after a change. I have tried a few different combinations of syntax but I'm still missing something to make this work. Leaving the input isn't executing the method.
How do I bind the value and call a method when the value is changed?
<input class="form-control form-control-sm" type="number" step="any" @bind-value:event="onchange=CalculateStandardDimensions()" @bind-value="Cyclone.CycloneSize" />
I have this in the code section.
private void CalculateStandardDimensions() { // Do Stuff Here }
https://stackoverflow.com/questions/65803149/blazor-onchange-event January 20, 2021 at 12:35PM
没有评论:
发表评论