FormField
FormField
component automatically creates a correct Form UI component based on entity and property names:
<FormField entityName={Pet.NAME} propertyName='birthDate'/>
For the attributes with relationship type Association it’s possible to provide an instance of DataCollectionStore via optionsContainer
prop to render an options list.
petTypesDc = collection<PetType>(PetType.NAME, {view: '_minimal', sort: 'name'});
...
<FormField entityName={Pet.NAME}
propertyName='type'
optionsContainer={this.petTypesDc}/>
API: FormFieldProps.