doc: relation widget add multiple options (#2112)

This commit is contained in:
Bartholomew 2019-02-28 16:54:54 +01:00 committed by Shawn Erquhart
parent 556a858697
commit 93ba704ade
2 changed files with 2 additions and 2 deletions

View File

@ -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
);
}

View File

@ -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"