Skip to content

Commit d271e32

Browse files
author
Piotr Siatka
committed
Udpate documentation.
1 parent e9c7e3a commit d271e32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/documentation/docs/controls/FilePicker.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ import { FilePicker, IFilePickerResult } from '@pnp/spfx-controls-react/lib/File
4646
buttonIcon="FileImage"
4747
onSave={(filePickerResult: IFilePickerResult) => { this.setState({filePickerResult }) }}
4848
onChanged={(filePickerResult: IFilePickerResult) => { this.setState({filePickerResult }) }}
49-
webPartContext={this.props.context}
49+
context={this.props.context}
5050
/>
5151
```
5252

@@ -61,7 +61,7 @@ The FilePicker component can be configured with the following properties:
6161
| buttonIcon | string | no | In case it is provided the file picker will be rendered as an action button. |
6262
| onSave | (filePickerResult: IFilePickerResult) => void | yes | Handler when the file has been selected and picker has been closed. |
6363
| onChange | (filePickerResult: IFilePickerResult) => void | yes | Handler when the file selection has been changed. |
64-
| webPartContext | WebPartContext | yes | Current context. |
64+
| context | ApplicationCustomizerContext | WebPartContext | yes | Current context. |
6565
| accepts | string[] | no | Array of strings containing allowed files extensions. E.g. [".gif", ".jpg", ".jpeg", ".bmp", ".dib", ".tif", ".tiff", ".ico", ".png", ".jxr", ".svg"] |
6666
| required | boolean | no | Sets the label to inform that the value is required. |
6767
| bingAPIKey | string | no | Used to execute WebSearch. If not provided SearchTab will not be available. |

0 commit comments

Comments
 (0)