Skip to content

Commit b93caa5

Browse files
committed
Updated the PeoplePicker suggestions limit property name
1 parent 4f2bcea commit b93caa5

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

CHANGELOG.JSON

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"changes": {
66
"new": [],
77
"enhancements": [
8-
"`PeoplePicker`: Allow to set resultsMaximumNumber [#143](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/143) [#148](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/148)",
8+
"`PeoplePicker`: Allow to set the maximum number of suggestions `suggestionsLimit` [#143](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/143) [#148](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/148)",
99
"`TaxonomyPicker`: retreiving the terms in the correct custom sort order [#146](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/146)"
1010
],
1111
"fixes": []

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
**Enhancements**
66

7-
- `PeoplePicker`: Allow to set resultsMaximumNumber [#143](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/143) [#148](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/148)
7+
- `PeoplePicker`: Allow to set the maximum number of suggestions `suggestionsLimit` [#143](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/143) [#148](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/148)
88
- `TaxonomyPicker`: retreiving the terms in the correct custom sort order [#146](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/146)
99

1010
### Contributors

docs/documentation/docs/about/release-notes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
**Enhancements**
66

7-
- `PeoplePicker`: Allow to set resultsMaximumNumber [#143](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/143) [#148](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/148)
7+
- `PeoplePicker`: Allow to set the maximum number of suggestions `suggestionsLimit` [#143](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/143) [#148](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/148)
88
- `TaxonomyPicker`: retreiving the terms in the correct custom sort order [#146](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/146)
99

1010
### Contributors

docs/documentation/docs/controls/PeoplePicker.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ The People picker control can be configured with the following properties:
7272
| webAbsoluteUrl | string | no | Specify the site URL on which you want to perform the user query call. Default is the current site URL. |
7373
| showHiddenInUI | boolean | no | Show users which are hidden from the UI. By default these users/groups hidden for the UI will not be shown. |
7474
| principleTypes | PrincipleType[] | no | Define which type of data you want to retrieve: User, SharePoint groups, Security groups. Multiple are possible. |
75-
| resultsMaximumNumber | number | no | Maximum number of suggestions to show in the full suggestion list. Default is 5. |
75+
| suggestionsLimit | number | no | Maximum number of suggestions to show in the full suggestion list. Default is 5. |
7676

7777
Enum `PrincipalType`
7878

src/controls/peoplepicker/IPeoplePicker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export interface IPeoplePickerProps {
3131
/**
3232
* Maximum number of suggestions to show in the full suggestion list. (default: 5)
3333
*/
34-
resultsMaximumNumber?: number;
34+
suggestionsLimit?: number;
3535
/**
3636
* Selection Limit of Control
3737
*/

src/controls/peoplepicker/PeoplePickerComponent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ export class PeoplePicker extends React.Component<IPeoplePickerProps, IPeoplePic
365365
suggestionsHeaderText: strings.peoplePickerSuggestionsHeaderText,
366366
noResultsFoundText: strings.peoplePickerNoResultsFoundText,
367367
loadingText: strings.peoplePickerLoadingText,
368-
resultsMaximumNumber: this.props.resultsMaximumNumber ? this.props.resultsMaximumNumber : 5
368+
resultsMaximumNumber: this.props.suggestionsLimit ? this.props.suggestionsLimit : 5
369369
};
370370

371371

src/webparts/controlsTest/components/ControlsTest.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ private onServicePickerChange(terms: IPickerTerms): void {
351351
selectedItems={this._getPeoplePickerItems}
352352
showHiddenInUI={false}
353353
principleTypes={[PrincipalType.User]}
354-
resultsMaximumNumber={2} />
354+
suggestionsLimit={2} />
355355

356356
<PeoplePicker
357357
context={this.props.context}

0 commit comments

Comments
 (0)