Skip to content

Commit fe87d37

Browse files
committed
add contentTypeId to listpicker
1 parent c1b1598 commit fe87d37

File tree

8 files changed

+131
-30314
lines changed

8 files changed

+131
-30314
lines changed

docs/documentation/docs/controls/ListPicker.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import { ListPicker } from "@pnp/spfx-controls-react/lib/ListPicker";
3030
label="Select your list(s)"
3131
placeHolder="Select your list(s)"
3232
baseTemplate={100}
33+
contentTypeId="0x0101"
3334
includeHidden={false}
3435
multiSelect={false}
3536
onSelectionChanged={this.onListPickerChange} />
@@ -56,14 +57,14 @@ The `ListPicker` control can be configured with the following properties:
5657
| filter | string | no | Filter list from OData query (takes precendents over Hidden and BaseTemplate Filters). |
5758
| includeHidden | boolean | no | Whether or not to include hidden lists. Default is `true`. |
5859
| 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. |
6061
| multiSelect | boolean | no | Optional mode indicates if multi-choice selections is allowed. Default to `false`. |
6162
| label | string | no | Label to use for the control. |
6263
| placeHolder | string | no | Placeholder label to show in the dropdown. **Deprecated. Use `placeholder` instead.** |
6364
| placeholder | string | no | Placeholder label to show in the dropdown. |
6465
| onSelectionChanged | (newValue: string OR string[]): void | no | Callback function when the selected option changes. |
6566
| webAbsoulteUrl | string | no | Absolute Web Url of target site (user requires permissions) |
66-
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.|
6768
Enum `LibsOrderBy`
6869

6970
| Value |

0 commit comments

Comments
 (0)