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
Hi all! This seems like it should be relatively easy to do, but I've been spinning my wheels for hours. I am trying to set the required prop of a custom widget, but I can't seem to figure out how to do it.
To provide some context, I am trying to generate Forms on the fly by creating several predefined custom widgets. In the future, I will be creating a UI so users can create forms on their own with my library of custom widgets. However, a big feature would be able to set the "required" property of a given widget. :D
I have a system that is basically gathering up all these widgets like so getWidget just returns the widget JSX, and this works fine when I don't supply any props as the parameter. However, I just want to set the required field... is there any easy way to do this?
Prerequisites
What theme are you using?
material-ui
What is your question?
Hi all! This seems like it should be relatively easy to do, but I've been spinning my wheels for hours. I am trying to set the required prop of a custom widget, but I can't seem to figure out how to do it.
To provide some context, I am trying to generate Forms on the fly by creating several predefined custom widgets. In the future, I will be creating a UI so users can create forms on their own with my library of custom widgets. However, a big feature would be able to set the "required" property of a given widget. :D
I have a system that is basically gathering up all these widgets like so getWidget just returns the widget JSX, and this works fine when I don't supply any props as the parameter. However, I just want to set the required field... is there any easy way to do this?
This is my simple widget for retrieving a first name
The text was updated successfully, but these errors were encountered: