Discussion on Blazor, a framework for building web apps with .NET and WebAssembly https://blazor.net
dotnet-maestro[bot] on darc-master-a926ae60-afdc-46d8-aabc-bb225655c15e
dotnet-maestro[bot] on master
Update dependencies from https:… (compare)
dotnet-maestro[bot] on darc-master-a926ae60-afdc-46d8-aabc-bb225655c15e
Update dependencies from https:… (compare)
dotnet-maestro[bot] on darc-master-a926ae60-afdc-46d8-aabc-bb225655c15e
dotnet-maestro[bot] on darc-master-e3474f54-f92f-4c3f-b116-ed9bdfe9754d
OnParametersSet
vs. in OnParametersSetAsync
?
Hello friends! What would be the canonical Blazor way to handle inputs that should trigger a method every time they are changed? Imagine something like an Excel cell, where anytime the user changes the formula, changes are computed and propagated. So it's not exactly a regular form a submit button, the data has to be updated through methods.
Right now I'm doing this with regular <input>
elements that are bound to custom getters and setters in the component, no EditContext
- but it seems hacky so would love to improve it
onchange
that fires a UpdateX
method on the object -> once the object has done its thing, the value is updated and a flag is set if there's a problem -> the input reads the new value & its CSS class is updated depending on the error flag