Skip to content

Commit

Permalink
Update labelField docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
timleslie committed Feb 8, 2021
1 parent 1d54c4b commit 442f0f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages-next/types/src/config/lists.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ export type ListAdminUIConfig<
> = {
/**
* The field to use as a label in the Admin UI. If you want to base the label off more than a single field, use a virtual field and reference that field here.
* @default 'name' if it exists, otherwise 'id'
* @default 'label', if it exists, falling back to 'name', then 'title', and finally 'id', which is guaranteed to exist.
*/
labelField?: keyof Fields; // path of the field to use as the label for items in the list, defaults to 'label', 'name', 'title' or 'id'
labelField?: keyof Fields;

/** The path that the list should be at in the Admin UI */
// Not currently used. Should be passed into `keystone.createList()`.
Expand Down

0 comments on commit 442f0f9

Please sign in to comment.