Skip to content

Commit c63df4a

Browse files
Update Folderpicker documentation
1 parent d58bb93 commit c63df4a

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

docs/documentation/docs/controls/FolderPicker.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,19 @@ import { FolderPicker, IFolder } from "@pnp/spfx-controls-react/lib/FolderPicker
4242
canCreateFolders={true} />
4343
```
4444

45+
- To use the `FolderExplorer` control to fetch folders from different sitecollection in your code as follows:
46+
47+
```TypeScript
48+
<FolderExplorer context={this.props.context}
49+
rootFolder={{
50+
Name: 'Documents',
51+
ServerRelativeUrl: `/sites/TestSite2/Shared Documents`
52+
}}
53+
onSelect={this._onFolderSelect}
54+
canCreateFolders={true}
55+
siteAbsoluteUrl="https://xxxx.sharepoint.com/sites/TestSite2"/>
56+
```
57+
4558
- The `onSelect` change event returns the selected folder and can be implemented as follows:
4659

4760
```TypeScript

0 commit comments

Comments
 (0)