Skip to content

3.18.0 Release #1816

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 65 commits into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
e924e10
fix bug in readme display
ValerasNarbutas Dec 13, 2023
c63df4a
Update Folderpicker documentation
NishkalankBezawada Jan 23, 2024
ff369dc
Added customIcons property on DynamicForm.
GuidoZam Jan 24, 2024
7697fc3
Added orderBy to DynamicField props for lookup fields
GuidoZam Jan 29, 2024
bfd935e
FIxing issue 1738
NishkalankBezawada Jan 30, 2024
9277bd2
calendar restricted dates
Jan 30, 2024
3c35daa
Bump adaptive-expressions from 4.21.1 to 4.22.1
dependabot[bot] Feb 5, 2024
605ae1c
update changelog for new version
joelfmrodrigues Feb 6, 2024
7b6707b
changelog
joelfmrodrigues Feb 6, 2024
c55b607
bump package version
joelfmrodrigues Feb 6, 2024
089bf2e
bump package version
joelfmrodrigues Feb 6, 2024
dd5e8fc
update version
joelfmrodrigues Feb 6, 2024
634560e
Bugfix for issue #1758
IRRDC Feb 8, 2024
f9380ec
Merge pull request #1747 from GuidoZam/DynamicForm-Lookup-Sorting
AJIXuMuK Feb 11, 2024
2420c8a
changelog
AJIXuMuK Feb 11, 2024
36a14c6
pre-commit
AJIXuMuK Feb 11, 2024
285ed6a
Merge pull request #1743 from NishkalankBezawada/Update-FolderPicker-…
AJIXuMuK Feb 11, 2024
bb60cf8
changelog
AJIXuMuK Feb 11, 2024
f479e18
pre-commit
AJIXuMuK Feb 11, 2024
d32a3c5
Merge pull request #1724 from ValerasNarbutas/master
AJIXuMuK Feb 11, 2024
e5da451
changelog
AJIXuMuK Feb 11, 2024
1481344
pre-commit
AJIXuMuK Feb 11, 2024
e0a64ee
Upgrade version references in config files to publish v3.16.1
michaelmaillot Jan 7, 2024
3378945
Merge branch 'dev' into Issue1738
NishkalankBezawada Feb 12, 2024
c2c58d0
Merge branch 'dev' into DynamicForm-custom-icon
GuidoZam Feb 12, 2024
175c3aa
Merge branch 'datetimepicker-restricted-dates' of https://github.com/…
jrodriguesStorm Feb 12, 2024
2013506
update import and DateTimePicker docs
jrodriguesStorm Feb 12, 2024
73e089f
git push origin devMerge branch 'srpmtt-datetimepicker-restricted-dat…
jrodriguesStorm Feb 12, 2024
5188e41
update formatting of content-type-picker docs
jrodriguesStorm Feb 12, 2024
ff377a6
changelog
jrodriguesStorm Feb 12, 2024
83eed58
Merge pull request #1745 from GuidoZam/DynamicForm-custom-icon
AJIXuMuK Feb 13, 2024
6a6a758
changelog
AJIXuMuK Feb 13, 2024
afa6636
pre-commit
AJIXuMuK Feb 13, 2024
09f36ab
Merge pull request #1750 from NishkalankBezawada/Issue1738
AJIXuMuK Feb 13, 2024
0bef712
changelog
AJIXuMuK Feb 13, 2024
36753f1
pre-commit
AJIXuMuK Feb 13, 2024
b97fc24
Update the PeoplePicker control:
michaelmaillot Feb 13, 2024
22997fd
remove unnecessary dependencies
jrodriguesStorm Feb 21, 2024
2462646
Merge pull request #1771 from pnp/clean-packages
joelfmrodrigues Feb 21, 2024
ce3f7c9
hide warning
jrodriguesStorm Feb 21, 2024
a52d646
Merge pull request #1754 from pnp/dependabot/npm_and_yarn/dev/adaptiv…
joelfmrodrigues Feb 21, 2024
5283279
Bump ip from 1.1.8 to 1.1.9
dependabot[bot] Feb 22, 2024
9e65307
Added style property to Rich text control. It will provide the flexib…
HarminderSethi Feb 24, 2024
387d8b6
Fast-serve update to match the most recent changes.
s-KaiNet Feb 27, 2024
88ace81
Fast-serve update.
s-KaiNet Feb 29, 2024
a04c28c
update package.json details
jrodriguesStorm Mar 4, 2024
f62c218
Merge pull request #1761 from IRRDC/1758_dev
joelfmrodrigues Mar 4, 2024
dcf33e3
changelog
jrodriguesStorm Mar 4, 2024
f11250c
Merge branch 'dev' of https://github.com/SharePoint/sp-dev-fx-control…
jrodriguesStorm Mar 4, 2024
4cbc6ea
Merge pull request #1772 from pnp/dependabot/npm_and_yarn/ip-1.1.9
joelfmrodrigues Mar 4, 2024
b8cb07c
Merge pull request #1773 from HarminderSethi/dev
joelfmrodrigues Mar 4, 2024
adb4be9
changelog
jrodriguesStorm Mar 4, 2024
2fb2551
Merge pull request #1782 from s-KaiNet/fast-serve-update
joelfmrodrigues Mar 4, 2024
c4c3292
changelog
jrodriguesStorm Mar 4, 2024
f472f9c
Merge branch 'dev' of https://github.com/SharePoint/sp-dev-fx-control…
jrodriguesStorm Mar 4, 2024
a3b51b0
Merge pull request #1764 from michaelmaillot/feat/peoplepicker-contex…
michaelmaillot Mar 11, 2024
fa196a5
Update release notes + changelog following PR #1764
michaelmaillot Mar 11, 2024
4e82afa
Carousel: make buttonLocation and buttonDisplay optional, add content…
AJIXuMuK Apr 2, 2024
259ef80
Merge pull request #1801 from pnp/carousel-defaults
AJIXuMuK Apr 2, 2024
052abc1
Update FluentUI imports
raclettierer Apr 21, 2024
8485b1c
update fluentui imports
joelfmrodrigues Apr 21, 2024
e4d10f3
update changelog
joelfmrodrigues Apr 21, 2024
6be67f9
update changelog and release notes
joelfmrodrigues Apr 21, 2024
34f318a
FileTypeIcon enhancements (#1789)
GuidoZam May 6, 2024
7cd95f5
Update release notes + changelog following PR #1789
michaelmaillot May 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,37 @@
{
"versions": [
{
"version": "3.18.0",
"changes": {
"new": [],
"enhancements": [
"`DynamicField`: Added orderBy to DynamicField props for lookup fields [#1747](https://github.com/pnp/sp-dev-fx-controls-react/pull/1747)",
"`DateTimePicker`: disable array of dates [#516](https://github.com/pnp/sp-dev-fx-controls-react/issues/516)",
"`DynamicForm`: new `customIcons` property to allow custom icons for the form [#1745](https://github.com/pnp/sp-dev-fx-controls-react/pull/1745)",
"`RichText`: Added style property to Rich text control [#1773](https://github.com/pnp/sp-dev-fx-controls-react/pull/1773)",
"`fast-serve`: Fast-serve update to match the most recent changes. [#1782](https://github.com/pnp/sp-dev-fx-controls-react/pull/1782)",
"`PeoplePicker`: Added context optimization [#1764](https://github.com/pnp/sp-dev-fx-controls-react/pull/1764)",
"`Multiple controls`: Wrong fluentui imports cause webpack build errors [#1763](https://github.com/pnp/sp-dev-fx-controls-react/issues/1763)",
"`FileTypeIcon`: Added standard events [#1789](https://github.com/pnp/sp-dev-fx-controls-react/pull/1789)"
],
"fixes": [
"`FolderPicker`: Update documentation on how to use the control with siteAbsoluteUrl property [#1743](https://github.com/pnp/sp-dev-fx-controls-react/pull/1743)",
"Readme documents highlight extension does not work correctly [#1495](https://github.com/pnp/sp-dev-fx-controls-react/issues/1495)",
"`DynamicForm`: Error on rendering DynamicForm when having a Date Field with internal name starting with underscore ('_')[#1738](https://github.com/pnp/sp-dev-fx-controls-react/issues/1738)",
"`DynamicForm`: Dynamic form loading error in other site [#1758](https://github.com/pnp/sp-dev-fx-controls-react/issues/1758)"
]
},
"contributions": [
"[Guido Zambarda](https://github.com/GuidoZam)",
"[Harminder Singh](https://github.com/HarminderSethi)",
"[IRRDC](https://github.com/IRRDC)",
"[Matthias Z'Brun](https://github.com/raclettierer)",
"[Michaël Maillot](https://github.com/michaelmaillot)",
"[Nishkalank Bezawada](https://github.com/NishkalankBezawada)",
"[Sergei Sergeev](https://github.com/s-KaiNet)",
"[srpmtt](https://github.com/srpmtt)"
]
},
{
"version": "3.17.0",
"changes":{
Expand Down
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
# Releases

## 3.18.0

### Enhancements

- `DynamicField`: Added orderBy to DynamicField props for lookup fields [#1747](https://github.com/pnp/sp-dev-fx-controls-react/pull/1747)
- `DateTimePicker`: disable array of dates [#516](https://github.com/pnp/sp-dev-fx-controls-react/issues/516)
- `DynamicForm`: new `customIcons` property to allow custom icons for the form [#1745](https://github.com/pnp/sp-dev-fx-controls-react/pull/1745)
- `RichText`: Added style property to Rich text control [#1773](https://github.com/pnp/sp-dev-fx-controls-react/pull/1773)
- `fast-serve`: Fast-serve update to match the most recent changes. [#1782](https://github.com/pnp/sp-dev-fx-controls-react/pull/1782)
- `PeoplePicker`: Added context optimization [#1764](https://github.com/pnp/sp-dev-fx-controls-react/pull/1764)
- `Multiple controls`: Wrong fluentui imports cause webpack build errors [#1763](https://github.com/pnp/sp-dev-fx-controls-react/issues/1763)
- `FileTypeIcon`: Added standard events [#1789](https://github.com/pnp/sp-dev-fx-controls-react/pull/1789)

### Fixes

- `FolderPicker`: Update documentation on how to use the control with siteAbsoluteUrl property [#1743](https://github.com/pnp/sp-dev-fx-controls-react/pull/1743)
- Readme documents highlight extension does not work correctly [#1495](https://github.com/pnp/sp-dev-fx-controls-react/issues/1495)
- `DynamicForm`: Error on rendering DynamicForm when having a Date Field with internal name starting with underscore ('_')[#1738](https://github.com/pnp/sp-dev-fx-controls-react/issues/1738)
- `DynamicForm`: Dynamic form loading error in other site [#1758](https://github.com/pnp/sp-dev-fx-controls-react/issues/1758)

### Contributors

Special thanks to our contributors (in alphabetical order): [Guido Zambarda](https://github.com/GuidoZam), [Harminder Singh](https://github.com/HarminderSethi), [IRRDC](https://github.com/IRRDC), [Matthias Z'Brun](https://github.com/raclettierer), [Michaël Maillot](https://github.com/michaelmaillot), [Nishkalank Bezawada](https://github.com/NishkalankBezawada), [Sergei Sergeev](https://github.com/s-KaiNet), [srpmtt](https://github.com/srpmtt).

## 3.17.0

### Enhancements
Expand Down
24 changes: 24 additions & 0 deletions docs/documentation/docs/about/release-notes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
# Releases

## 3.18.0

### Enhancements

- `DynamicField`: Added orderBy to DynamicField props for lookup fields [#1747](https://github.com/pnp/sp-dev-fx-controls-react/pull/1747)
- `DateTimePicker`: disable array of dates [#516](https://github.com/pnp/sp-dev-fx-controls-react/issues/516)
- `DynamicForm`: new `customIcons` property to allow custom icons for the form [#1745](https://github.com/pnp/sp-dev-fx-controls-react/pull/1745)
- `RichText`: Added style property to Rich text control [#1773](https://github.com/pnp/sp-dev-fx-controls-react/pull/1773)
- `fast-serve`: Fast-serve update to match the most recent changes. [#1782](https://github.com/pnp/sp-dev-fx-controls-react/pull/1782)
- `PeoplePicker`: Added context optimization [#1764](https://github.com/pnp/sp-dev-fx-controls-react/pull/1764)
- `Multiple controls`: Wrong fluentui imports cause webpack build errors [#1763](https://github.com/pnp/sp-dev-fx-controls-react/issues/1763)
- `FileTypeIcon`: Added standard events [#1789](https://github.com/pnp/sp-dev-fx-controls-react/pull/1789)

### Fixes

- `FolderPicker`: Update documentation on how to use the control with siteAbsoluteUrl property [#1743](https://github.com/pnp/sp-dev-fx-controls-react/pull/1743)
- Readme documents highlight extension does not work correctly [#1495](https://github.com/pnp/sp-dev-fx-controls-react/issues/1495)
- `DynamicForm`: Error on rendering DynamicForm when having a Date Field with internal name starting with underscore ('_')[#1738](https://github.com/pnp/sp-dev-fx-controls-react/issues/1738)
- `DynamicForm`: Dynamic form loading error in other site [#1758](https://github.com/pnp/sp-dev-fx-controls-react/issues/1758)

### Contributors

Special thanks to our contributors (in alphabetical order): [Guido Zambarda](https://github.com/GuidoZam), [Harminder Singh](https://github.com/HarminderSethi), [IRRDC](https://github.com/IRRDC), [Matthias Z'Brun](https://github.com/raclettierer), [Michaël Maillot](https://github.com/michaelmaillot), [Nishkalank Bezawada](https://github.com/NishkalankBezawada), [Sergei Sergeev](https://github.com/s-KaiNet), [srpmtt](https://github.com/srpmtt).

## 3.17.0

### Enhancements
Expand Down
5 changes: 3 additions & 2 deletions docs/documentation/docs/controls/Carousel.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ The Carousel component can be configured with the following properties:
| isInfinite | boolean | no | Indicates if infinite scrolling is enabled. |
| canMoveNext | boolean | no | Property indicates if the next item button can be clicked. If not provided, status of the button is calculated based on the current index. <br />It is mandatory when triggerPageEvent is used. |
| canMovePrev | boolean | no | Property indicates if the previous item button can be clicked. If not provided, status of the button is calculated based on the current index. <br />It is mandatory when triggerPageEvent is used. |
| buttonsLocation | CarouselButtonsLocation | yes | Specifies the location of the buttons inside the container. |
| buttonsDisplay | CarouselButtonsDisplay | yes | Specifies the buttons container display mode. |
| buttonsLocation | CarouselButtonsLocation | no | Specifies the location of the buttons inside the container. Default: center |
| buttonsDisplay | CarouselButtonsDisplay | no | Specifies the buttons container display mode. Default: block |
| containerStyles | ICssInput | no | Allows to specify own styles for carousel container. |
| loadingComponentContainerStyles | ICssInput | no | Allows to specify own styles for loading component. |
| contentContainerStyles | ICssInput | no | Allows to specify own styles for elements container. |
Expand Down Expand Up @@ -134,6 +134,7 @@ The Carousel component can be configured with the following properties:
| indicatorsContainerStyles | ICssInput | no | Allows to specify own styles for indicators container when indicatorsDisplay is set to "block" |
| prevButtonAriaLabel | string | no | Aria label of the PreviousItem button. Default 'Previous item'. |
| nextButtonAriaLabel | string | no | Aria label of the NextItem button. Default 'Next item'. |
| contentHeight | number | no | Allows to specify the height of the content. Can be used instead of providing styles for the content container (`contentContainerStyles`). |

enum `CarouselButtonsLocation`

Expand Down
28 changes: 14 additions & 14 deletions docs/documentation/docs/controls/ContentTypePicker.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,20 +57,20 @@ The `ContentTypePicker` control can be configured with the following properties:
| context | BaseComponentContext | yes | The context object of the SPFx loaded webpart or customizer. |
| listId | string | no | The ID of the list or library you wish to select content type(s) from. When not specified, picker will be populated with site content types.|
| className | string | no | If provided, additional class name to provide on the dropdown element. |
disabled | boolean | no | Whether or not the control is disabled. |
includeHidden | boolean | no | Whether or not to include hidden content types. Default is true. |
includeReadOnly | boolean | no | Whether or not to include read-only content types. Default is true. |
group | string | no | Only show content types of a certain group. |
filter | string | no | Filter content types from OData query (takes the upperhand of `hidden`, `readOnly` and `group` Filters). |
orderBy | ContentTypesOrderBy | no | How to order the content types. |
selectedContentTypes | string \| string[] | no | 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.
multiSelect | boolean | no | Indicates if multi-choice selections is allowed. Default is false. |
label | string | no | The label to display. |
placeholder | string | no | Input placeholder text. Displayed until option is selected. |
onSelectionChanged | (newValue: ISPContentType \| ISPContentType[]): void | no | Callback issued when the selected option changes. |
filterItems | (contentTypes: ISPContentType[]): ISPContentType[] | no | This function is invoked after the filtering has been done. This allows you to add additional custom filtering.
webAbsoluteUrl | string | no | Absolute Web Url of target site (user requires permissions). |
showBlankOption | boolean | no | Whether or not to show a blank option. Default is false. Works only when `multiSelect` is false. |
| disabled | boolean | no | Whether or not the control is disabled. |
| includeHidden | boolean | no | Whether or not to include hidden content types. Default is true. |
| includeReadOnly | boolean | no | Whether or not to include read-only content types. Default is true. |
| group | string | no | Only show content types of a certain group. |
| filter | string | no | Filter content types from OData query (takes the upperhand of `hidden`, `readOnly` and `group` Filters). |
| orderBy | ContentTypesOrderBy | no | How to order the content types. |
| selectedContentTypes | string \| string[] | no | 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. |
| multiSelect | boolean | no | Indicates if multi-choice selections is allowed. Default is false. |
| label | string | no | The label to display. |
| placeholder | string | no | Input placeholder text. Displayed until option is selected. |
| onSelectionChanged | (newValue: ISPContentType \| ISPContentType[]): void | no | Callback issued when the selected option changes. |
| filterItems | (contentTypes: ISPContentType[]): ISPContentType[] | no | This function is invoked after the filtering has been done. This allows you to add additional custom filtering. |
| webAbsoluteUrl | string | no | Absolute Web Url of target site (user requires permissions). |
| showBlankOption | boolean | no | Whether or not to show a blank option. Default is false. Works only when `multiSelect` is false. |

Enum `ContentTypesOrderBy`

Expand Down
10 changes: 6 additions & 4 deletions docs/documentation/docs/controls/DateTimePicker.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Here are some examples of the control:
```TypeScript
import { DateTimePicker, DateConvention, TimeConvention } from '@pnp/spfx-controls-react/lib/DateTimePicker';
```

- Use the `DateTimePicker` control in your code as follows, either as an uncontrolled or a controlled component:

```TypeScript
Expand All @@ -47,7 +48,6 @@ import { DateTimePicker, DateConvention, TimeConvention } from '@pnp/spfx-contro

The `DateTimePicker` control can be configured with the following properties:


| Property | Type | Required | Description |
| ---- | ---- | ---- | ---- |
| label | string | no | Property field label displayed on top. |
Expand All @@ -72,12 +72,13 @@ The `DateTimePicker` control can be configured with the following properties:
| timeDisplayControlType | TimeDisplayControlType | no | Specifies what type of control to use when rendering time part. |
| showLabels | boolean | no | Specifies if labels in front of date and time parts should be rendered. |
| placeholder | string | no | Placeholder text for the DatePicker. |
| initialPickerDate | Date | no | The initially highlighted date in the calendar picker
| initialPickerDate | Date | no | The initially highlighted date in the calendar picker |
| maxDate | Date | no | The maximum allowable date. |
| minDate | Date | no | The minimum allowable date. |
| minutesIncrementStep | MinutesIncrement | no | Specifies minutes' increment step for `TimeDisplayControlType.Dropdow` |
| showClearDate | boolean | no | Controls whether the clearDate iconbutton must be available when date is selected, default to false
| showClearDateIcon | string | no | Controls the icon used for clearDate iconbutton. Defaults to 'RemoveEvent'
| showClearDate | boolean | no | Controls whether the clearDate iconbutton must be available when date is selected, default to false |
| showClearDateIcon | string | no | Controls the icon used for clearDate iconbutton. Defaults to 'RemoveEvent' |
| restrictedDates | Date[] | no | If set the Calendar will not allow selection of dates in this array. |

Enum `TimeDisplayControlType`

Expand Down Expand Up @@ -112,6 +113,7 @@ Interface `IDateTimePickerStrings` extends [IDatePickerStrings](https://develope
| textErrorMessage | string | no | Error message when text is entered in the date picker. |

Type `MinutesIncrement`

```typescript
type MinutesIncrement = 1 | 5 | 10 | 15 | 30;
```
Expand Down
1 change: 1 addition & 0 deletions docs/documentation/docs/controls/DynamicForm.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ The `DynamicForm` can be configured with the following properties:
| fieldOverrides | {[columnInternalName: string] : {(fieldProperties: IDynamicFieldProps): React.ReactElement\<IDynamicFieldProps\>}} | no | Key value pair for fields you want to override. Key is the internal field name, value is the function to be called for the custom element to render. |
| respectEtag | boolean | no | Specifies if the form should respect the ETag of the item. Default - `true` |
| validationErrorDialogProps | IValidationErrorDialogProps | no | Specifies validation error dialog properties |
| customIcons | { [ columnInternalName: string ]: string } | no | Specifies custom icons for the form. The key of this dictionary is the column internal name, the value is the Fluent UI icon name. |

## Validation Error Dialog Properties `IValidationErrorDialogProps`
| Property | Type | Required | Description |
Expand Down
6 changes: 6 additions & 0 deletions docs/documentation/docs/controls/FileTypeIcon.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,11 @@ The FileTypeIcon component can be configured with the following properties:
| path | string | no | Path to the document. If this is provided, the control will use the file extension to display the corresponding icon. |
| size | ImageSize | no | This is a property that only needs to be used when the type is set to image. It allows you to specify the image size. small (16px), normal (20px), medium (48px) and large (96px) are possible. Use the **ImageSize** enum to get the list of available images sizes. |
| type | IconType | yes | This property specifies is you want to use the icon font or image. Use the **IconType** enum to get the list of available icon types. |
| onClick | React.MouseEvent&lt;HTMLElement&gt; | no | Event triggered when the icon is clicked. |
| onDoubleClick | React.MouseEvent&lt;HTMLElement&gt; | no | Event triggered when the icon is double clicked. |
| onMouseEnter | React.MouseEvent&lt;HTMLElement&gt; | no | Event triggered when the mouse cursor enters the icon (without event bubbling). |
| onMouseLeave | React.MouseEvent&lt;HTMLElement&gt; | no | Event triggered when the mouse cursor leaves the icon. |
| onMouseOver | React.MouseEvent&lt;HTMLElement&gt; | no | Event triggered when the mouse cursor enters the icon (with event bubbling). |
| onMouseUp | React.MouseEvent&lt;HTMLElement&gt; | no | Event triggered when the mouse button is released after clicked on the icon. |

![](https://telemetry.sharepointpnp.com/sp-dev-fx-controls-react/wiki/controls/FileTypeIcon)
13 changes: 13 additions & 0 deletions docs/documentation/docs/controls/FolderPicker.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,19 @@ import { FolderPicker, IFolder } from "@pnp/spfx-controls-react/lib/FolderPicker
canCreateFolders={true} />
```

- To use the `FolderExplorer` control to fetch folders from different sitecollection in your code as follows:

```TypeScript
<FolderExplorer context={this.props.context}
rootFolder={{
Name: 'Documents',
ServerRelativeUrl: `/sites/TestSite2/Shared Documents`
}}
onSelect={this._onFolderSelect}
canCreateFolders={true}
siteAbsoluteUrl="https://xxxx.sharepoint.com/sites/TestSite2"/>
```

- The `onSelect` change event returns the selected folder and can be implemented as follows:

```TypeScript
Expand Down
Loading
Loading