Edit page

RenderFields

Render fields in view mode or edit mode. Commonly used for editing a content(See source code of actions/Edit.tsx).

Properties

Prop nameTypeDefaultRequiredDescription
typestringtrue

field type

validationanyfalse

validation result returned from server. used in edit mode

dataanytrue

field data

editFieldsanyfalse

array of field identifier to be edited

languagestringfalse

edit langauge

mode"edit" | "view"false

render mode

beforeFieldanyfalse

before rendering one field

afterFieldanyfalse

after rendering one field