You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/documentation/docs/controls/ListPicker.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,7 @@ import { ListPicker } from "@pnp/spfx-controls-react/lib/ListPicker";
30
30
label="Select your list(s)"
31
31
placeHolder="Select your list(s)"
32
32
baseTemplate={100}
33
+
contentTypeId="0x0101"
33
34
includeHidden={false}
34
35
multiSelect={false}
35
36
onSelectionChanged={this.onListPickerChange} />
@@ -56,13 +57,15 @@ The `ListPicker` control can be configured with the following properties:
56
57
| filter | string | no | Filter list from OData query (takes precendents over Hidden and BaseTemplate Filters). |
57
58
| includeHidden | boolean | no | Whether or not to include hidden lists. Default is `true`. |
58
59
| orderBy | LibsOrderBy | no | How to order the lists retrieved from SharePoint. |
59
-
| selectedList | string OR string[]| no | Keys of the selected item(s). If you provide this, you must maintain selection state by observing onSelectionChanged events and passing a new value in when changed. |
60
+
| selectedList | string OR string[]| no | Keys(list Ids) of the selected item(s). If you provide this, you must maintain selection state by observing onSelectionChanged events and passing a new value in when changed. |
60
61
| multiSelect | boolean | no | Optional mode indicates if multi-choice selections is allowed. Default to `false`. |
61
62
| label | string | no | Label to use for the control. |
62
63
| placeHolder | string | no | Placeholder label to show in the dropdown. **Deprecated. Use `placeholder` instead.**|
63
64
| placeholder | string | no | Placeholder label to show in the dropdown. |
64
65
| onSelectionChanged | (newValue: string OR string[]): void | no | Callback function when the selected option changes. |
65
66
| webAbsoulteUrl | string | no | Absolute Web Url of target site (user requires permissions) |
67
+
| contentTypeId | string | no | The Id if a content type which must be present in a list in order for the list to appear in the picker.|
68
+
| refreshToggle | boolean | no | If present can be used to force the control to refresh the list of lists by toggling its value|
0 commit comments