doc: relation widget add multiple options (#2112)
This commit is contained in:
parent
556a858697
commit
93ba704ade
@ -54,8 +54,7 @@ export default class RelationControl extends React.Component {
|
||||
return (
|
||||
this.props.value !== nextProps.value ||
|
||||
this.props.hasActiveStyle !== nextProps.hasActiveStyle ||
|
||||
this.props.queryHits !== nextProps.queryHits ||
|
||||
this.props.metadata !== nextProps.metadata
|
||||
this.props.queryHits !== nextProps.queryHits
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -14,6 +14,7 @@ The relation widget allows you to reference items from another collection. It pr
|
||||
- `displayFields`: list of one or more names of fields in the referenced collection that will render in the autocomplete menu of the control. Defaults to `valueField`.
|
||||
- `searchFields`: (**required**) list of one or more names of fields in the referenced collection to search for the typed value
|
||||
- `valueField`: (**required**) name of the field from the referenced collection whose value will be stored for the relation
|
||||
- `multiple` : accepts a boolean, defaults to `false`
|
||||
- **Example** (assuming a separate "authors" collection with "name" and "twitterHandle" fields):
|
||||
```yaml
|
||||
- label: "Post Author"
|
||||
|
Loading…
x
Reference in New Issue
Block a user