mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
0675f85d32
Otherwise browserify or gulp-sourcemaps doesn't include these in the *.map file, which makes debugging impossible |
||
---|---|---|
.. | ||
tests | ||
index.js | ||
README.md |
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.