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
- optimize context prop by requesting only necessary properties from BaseComponentContext
- update documentation accordingly
- move the state properties into the core component
- Check that you installed the `@pnp/spfx-controls-react` dependency. Check out the [getting started](../../#getting-started) page for more information about installing the dependency.
|context|IPeoplePickerContext|yes|Contextofthecomponent, based on the SPFx context ([*BaseComponentContext*](https://learn.microsoft.com/javascript/api/sp-component-base/basecomponentcontext?view=sp-typescript-latest)). | |
@@ -82,8 +87,8 @@ The People picker control can be configured with the following properties:
82
87
| allowUnvalidated | boolean | no | When true, allow email addresses that have not been validated to be entered, effectively allowing any user. | false |
83
88
| suggestionsLimit | number | no | Maximum number of suggestions to show in the full suggestion list. | 5 |
84
89
| resolveDelay | number | no | Add delay to resolve and search users | 200 |
85
-
| placeholder | string | no | Short text hint to display in empty picker |
86
-
| styles | Partial<IBasePickerStyles> | no | Styles to apply on control |
90
+
| placeholder | string | no | Short text hint to display in empty picker | |
91
+
| styles | Partial<IBasePickerStyles> | no | Styles to apply on control | |
87
92
| searchTextLimit | number | no | Specifies the minimum character count needed to begin retrieving search results. | 2 |
88
93
89
94
Enum `PrincipalType`
@@ -97,13 +102,21 @@ The `PrincipalType` enum can be used to specify the types of information you wan
97
102
| SecurityGroup | 4 |
98
103
| SharePointGroup | 8 |
99
104
105
+
Interface `IPeoplePickerContext`
100
106
101
-
## MSGraph Permissions required
107
+
Provides mandatory properties to search users on the tenant
102
108
103
-
This control requires the following scopes if groupId is of type String:
109
+
| Value | Type | Description |
110
+
| ---- | ---- | ---- |
111
+
| absoluteUrl | string | Current `SPWeb` absolute URL. |
112
+
| msGraphClientFactory | MSGraphClientFactory | Instance of MSGraphClientFactory used for querying Microsoft Graph REST API. |
113
+
| spHttpClient | SPHttpClient | Instance of SPHttpClient used for querying SharePoint REST API. |
0 commit comments