Open GenyaB opened 7 years ago
@GenyaB the schema and form are compiled into an Intermediate Representation which is then used for the display, updating the schema or form then regenerates the IR which causes the form to regenerate display. I have been wanting to find time to create a tab add-on that allows defining a schema/form to dsiplay as the content of the tab, but keep running out of time.
@Anthropic Ah I see, I've been playing around as well but no luck. Let me know if you come up with a working solution.
I am using $scope.$broadcast('schemaFormRedraw'); after dynamically adding elements to my angular-schema-form, however, when I do this, it refreshes the form and reverts back to the first tab every time.
I've had a look at the render() and internalRender() functions inside the schema-form.js and have a feeling it's something in those two functions.
Here is how I am adding the elements:
//declaring the form and schema on enter
@json-schema-form/angular-schema-form-lead