silverstripe-framework/admin/javascript/src/components/form-builder
Ingo Schommer 0675f85d32 Use /index suffix for JS import statements
Otherwise browserify or gulp-sourcemaps doesn't include these
in the *.map file, which makes debugging impossible
2016-04-06 08:49:47 +12:00
..
tests Use /index suffix for JS import statements 2016-04-06 08:49:47 +12:00
index.js Use /index suffix for JS import statements 2016-04-06 08:49:47 +12:00
README.md Simplified form schema structure and mocks 2016-04-06 08:35:53 +12:00

FormBuilderComponent

Used to generate forms, made up of field components and actions, from FormFieldSchema data.

This component will be moved to Framweork or CMS when dependency injection is implemented.

PropTypes

actions

Actions the component can dispatch. This should include but is not limited to:

setSchema

An action to call when the response from fetching schema data is returned. This would normally be a simple action to set the store's schema key to the returned data.

schemaUrl

The schema URL where the form will be scaffolded from e.g. '/admin/pages/schema/1'.

schema

JSON schema representing the form. Used as the blueprint for generating the form.