You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is possible to set the global renderer (https://hyperform.js.org/examples.html#file=global_message).
I wanted to ask if it is possible to set a renderer for a single hyperform instance via the constructor. Otherwise this would be a feature request :)
The text was updated successfully, but these errors were encountered:
Thanks for the suggestion! No, it's not possible currently, but I toyed with that thought myself. Out of interest, how would your use case look like? (I.e., what would a specific form renderer need, that a global one can't provide?)
I am currently implementing a form like in the example and I thought about the fact that in the future there could be an other form on the same page. In that situation, both should render their errors in their own error container. You could put some logic into the render function to do this - imho you could make this simpler by allowing to declaring the renderer per instance.
In my case I could do something like this, to create render functions for the different form instances:
It is possible to set the global renderer (https://hyperform.js.org/examples.html#file=global_message).
I wanted to ask if it is possible to set a renderer for a single hyperform instance via the constructor. Otherwise this would be a feature request :)
The text was updated successfully, but these errors were encountered: