silverstripe-framework/admin/javascript/src/components/form-builder
scott1702 e550363c67 - Add GridfieldActionsComponent
- Add ability to set desired relative width on gridfield cells
2016-04-06 08:36:37 +12:00
..
tests - Add GridfieldActionsComponent 2016-04-06 08:36:37 +12:00
index.js Simplified form schema structure and mocks 2016-04-06 08:35:53 +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.