Skip to content

Commit c1f0cf2

Browse files
author
Pete Nelson
committed
added clarification on attribute for content items
1 parent ead8456 commit c1f0cf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/content-picker/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function MyComponent( props ) {
3737
| `isOrderable` | `bool` | `false` | When true, will allow the user to order items. Must be used in conjunction with `maxContentItems > 1` |
3838
| `uniqueContentItems` | `bool` | `true` | Prevent duplicate items from being picked. |
3939
| `excludeCurrentPost` | `bool` | `true` | Don't allow user to pick the current post. Only applicable on the editor screen. |
40-
| `content` | `array` | `[]` | Array of items to pre-populate picker with. Must be in the format of: `[{id: 1, type: 'post', uuid: '...',}, {id: 1, uuid: '...', type: 'page'},... ]`. You cannot provide terms and posts to the same picker. `uuid` was added as of version 1.5.0. It is only used as the React component list key in the admin. If it is not included, `id` will be used which will cause errors if you select the same post twice. |
40+
| `content` | `array` | `[]` | Array of items to pre-populate picker with. Must be in the format of: `[{id: 1, type: 'post', uuid: '...',}, {id: 1, uuid: '...', type: 'page'},... ]`. You cannot provide terms and posts to the same picker. `uuid` was added as of version 1.5.0. It is only used as the React component list key in the admin. If it is not included, `id` will be used which will cause errors if you select the same post twice. For posts, `type` needs to be the post type of the item. |
4141
| `perPage` | `number` | `50` | Number of items to show during search
4242
| `fetchInitialResults` | `bool` | `false` | Fetch initial results to present when focusing the search input |
4343
| `options.inputDelay` | `number` | `undefined` | Debounce delay passed to the internal search input, defaults to 350ms |

0 commit comments

Comments
 (0)