Suppose I want to use an EditForm, but I want the value binding to trigger every time the user types into the control instead of just on blur. Suppose, for the sake of an ex
Try this:
More...
Your approach is not recommended. You should subclass your components using Razor.
The following is a sample that should work. It can redirects you how to get a solution.
A solution to wrap an InputText:
@functions{
[Parameter] string Label { get; set; }
[Parameter] string Value { get; set; }
[Parameter] EventCallback ValueChanged { get; set; }
[Parameter] Expression> ValueExpression { get; set; }
}
Name of the category: @category.Name
You may also inherit from InputBase directly like so:
@inherits InputBase
Hope this helps...