Corrects docs re: 'relation' widget configuration

Fixes #1042
This commit is contained in:
Sumeet Jain 2018-01-24 09:38:10 -06:00 committed by Shawn Erquhart
parent 3c21a6a6db
commit b272553c7b

View File

@ -23,7 +23,7 @@ The relation widget allows you to reference items from another collection. It pr
name: "author" name: "author"
widget: "relation" widget: "relation"
collection: "authors" collection: "authors"
searchFields: "[name, twitterHandle]" searchFields: ["name", "twitterHandle"]
valueField: "name" valueField: "name"
``` ```
The generated UI input will search the authors collection by name and twitterHandle as the user types. On selection, the author name will be saved for the field. The generated UI input will search the authors collection by name and twitterHandle as the user types. On selection, the author name will be saved for the field.