I am using a Field component in my app using the following code:
<Field
entityName={Registration.NAME}
propertyName="gender"
form={this.props.form}
formItemOpts={{ style: { marginBottom: "12px" } }}
getFieldDecoratorOpts={{
rules: [{ required: true }]
}}
/>
That gives me a simple textbox.
How do I convert that code so that I have a dropdown component with the following options:
M = Male
F = Female
(i.e. Store “M” or “F” depending on Option selected.
I know that I can use:
optionsContainer={this.genderDc}
However I do not want to have to read a collection from the entities in the back-end. I want a simple hard-coded options list