Replies: 1 comment
-
On 1: Actually right now you can already do this by following this guide: https://ihp.digitallyinduced.com/Guide/form.html#adding-custom-attributes-to-the-input-element Longterm I see that 2 is the way forward 👍 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, all input fields share the same FormField.
If we'd like for example to have
<input type="number" min="0" ... />
then we need to opt-out to writing HSX, but it requires a lot of manual work. Roughly like this:Unless I'm getting things wrong, I think we have a few options:
attributes :: [Attributes]
so one could add any attribute they would want. A disadvantage would be that one could addmin
to a non-number field.FormField
to smaller pieces, as that's already a requirement of Add multiple Attribute To FormField #1004Beta Was this translation helpful? Give feedback.
All reactions