Render fields in view mode or edit mode. Commonly used for editing a content(See source code of actions/Edit.tsx).
Prop name | Type | Default | Required | Description |
---|---|---|---|---|
type | string | — | true | field type |
validation | any | — | false | validation result returned from server. used in edit mode |
data | any | — | true | field data |
editFields | any | — | false | array of field identifier to be edited |
language | string | — | false | edit langauge |
mode | "edit" | "view" | — | false | render mode |
beforeField | any | — | false | before rendering one field |
afterField | any | — | false | after rendering one field |