Description
Background and Motivation
I am one of the developers of the Radzen.Blazor component library and would like to use HtmlFieldPrefix
and ExpressionFormatter
in some of the components that we maintain.
Proposed API
I propose making HtmlFieldPrefix
and ExpressionFormatter
public classes in order to use them in custom Blazor components that don't inherit from InputBase
. The reason for not inheriting from InputBase
is that it requires a ValueExpression
to be set and throws exception otherwise. It would be a breaking change for our users.
Usage Examples
We would use HtmlPrefix
and ExpressionFormatter
similar to InputBase
for custom components in the Radzen.Blazor component library. Other vendors could use the API as well.
Alternative Designs
The alternative is to copy the implementation of ExpressionFormatter
to our source code. However I don't see a workaround for a cascading parameter of type HtmlFieldPrefix
which would probably lead to a different behavior than InputBase
.
Risks
Not sure if making those classes public would lead to any risk.