Form properties - VladRG/NgFormGenerator GitHub Wiki
NgFormGenerator uses recursion in order to generate the entire form based on your JSON or FormModel object. The entry point for the form is a component which takes a VgFormModel as an input.
<div class="container">
<div class="row">
<div class="col-md-10 offset-md-1">
<vg-form [model]='formModel'></vg-form>
</div>
</div>
</div>
Property | Description |
---|---|
name |
Translates into the name tag in html. This property needs to be unique in the DOM and is required
|
method | The HTTP method (GET/POST) that this form has. Defaults to GET
|
url | The URL that this form will call on submit. If the URL is null, If the url property is empty, submitting the form will call the submit function in the FormModel |
submit | A callback function in case you do not wish to use an URL. The FormModel object is passed as a parameter. In this case, the url property must be empty or the callback will not get called. |
entry | A ContainerBaseModel object use to generate the first container in the form. |