src/examples
folder.baseUrl
schemaUrl
logo
forms.json
needs to be placed in src/assets/config
. This file defines the schema for various forms used, along with the fields for each. The form rendering is based on the formly.dev library, and the forms.json is a small wrapper on top of the formly schema.forms
is an array with key/value pairs. They key is the code / slug of the form which is used to access the form. Eg: if the key for a form is employee-signup
that form can be accessed via /forms/employee-signup
. Each form definition will have the below fields -form.api
/Employer
form.type
entity
. For the latter use property:<property name>
(eg: property:work_experience)form.formclass
form.title
form.redirectTo
form.fieldsets
fieldsets.definition
fieldsets.fields
"fields": ["*"]
fields.name
fields.custom
boolean
Name of custome field (not defined in defination of that schema)fields.required
boolean
fields.class
fields.disabled
boolean
Disable the field (readonly)fields.children
object
Reference field of defination (same properties as fieldsets
)fields.validation
layouts.json
is used to define how the public and private profile pages look like. For each entity in Sunbird backend, a layout file should be defined with the fields and the order in which they should display.layouts
is an array with key/value pairs. They key is the code / slug of the layout page which is used to access the form. Eg: if the key for a layout is employee-profile
that page can be accessed via /profile/employee-profile
. Each layout definition will have the below fields -layout.api
layout.title
layout.blocks
layout
.blocks.definition
schemaUrl
blocks.title
blocks.add
boolean
Enable Add Buttonblocks.addform
<name of form from forms>
Form opens on Add Button clickblocks.edit
boolean
Enable Edit Buttonblocks.editform
<name of form from forms>
Form opens on Edit Button clickblocks.multiple
boolean
Enable Multiple valuesblocks.fields
fieldsets
fields.includes
[*]
for all fieldsfields.excludes
npm start
or ng serve --proxy-config proxy.conf.json
. For additional configuration please check proxy.conf.json
file.