MCPcopy Create free account
hub / github.com/sshwsfc/xadmin / fieldBuilder

Function fieldBuilder

packages/xadmin-form/src/builder.js:29–34  ·  view source on GitHub ↗
(field, option, ...props)

Source from the content-addressed store, hash-verified

27}
28
29const fieldBuilder = (field, option, ...props) => {
30 const FieldComponent = field.component
31 const FieldGroup = field.group || (option && option.group ? option.group : C('Form.FieldGroup'))
32
33 return (<Field key={field.key} name={field.name} label={field.label}
34 normalize={field.normalize} parse={field.parse} format={field.format}
35 component={FieldWrapComponent} field={field} option={option} group={FieldGroup} fieldComponent={FieldComponent}
36 {...props} />)
37}

Callers 1

defaultUIRenderFunction · 0.85

Calls 1

CFunction · 0.90

Tested by

no test coverage detected