-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help with making a GUI form builder #357
Comments
Could you provide an example on Stackblitz? |
@daniele-pecora here is a crudely put together Stackblitz: https://stackblitz.com/edit/ngx-schema-form-gui-editor The only two fields that are clickable are indicated with "CLICK ME." The only two property changes that will be applied back are |
Question
Answer
every time a child property changes the validator gets called. Question Answer |
Thanks for the response. For question 1 I'm using the custom bindings, in this case 'click', to detect when a field is selected to "be edited." Binding on the root property doesn't tell me which field in particular is being selected? Am I correct? Also if you have any other thoughts or even libraries that could help us make a GUI form builder that would be helpful. Thanks. |
@daniele-pecora I have a somewhat working GUI form editor using custom bindings, but I'm hitting a performance issue now. I have a fairly large form and I allow removing/changing requiredness of a field. The best way I could figure out how to update the I was doing some analysis of the performance using the browser developer tools and found most of the time was spent on The directions I can see:
Any advice and help clarifying how "somehow" I would do any of the above would be appreciated. |
I would provide a custom |
Thanks. Works well. If I wanted to keep the validation and performance, then I would probably need to look into optimizing z-schema or replacing it? |
@aahventures |
Hi! Thanks for your great work. I'm trying to create a GUI form builder similar in idea to https://github.com/json-schema-form/json-schema-builder, but with a different interface.
I've hacked a proof of concept together using custom bindings and temporarily a text area to edit the form property schema.
I'm having some problems and therefore questions:
this.fieldBindings['/*']
?Object.assign(formProperty.schema, newSchema)
andformProperty.schema = newSchema
which both produces weird results, i.e. both end up duplicating the form field. There is nothing similar toformProperty.setValue()
likeformProperty.setSchema()
.Any tips would be helpful also. Please point me in the right direction (if I'm going in the wrong one) or to any library/feature like this that already exists. Thanks.
The text was updated successfully, but these errors were encountered: