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
Copy file name to clipboardExpand all lines: docs/documentation/docs/controls/FilePicker.md
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -62,11 +62,13 @@ The FilePicker component can be configured with the following properties:
62
62
buttonIconProps | IIconProps | no | In case it is provided the file picker will be rendered as an Icon the and all can define Properties for Icon |
63
63
| onSave | (filePickerResult: IFilePickerResult) => void | yes | Handler when the file has been selected and picker has been closed. |
64
64
| onChange | (filePickerResult: IFilePickerResult) => void | no | Handler when the file selection has been changed. |
65
+
| onCancel | () => void | no | Handler when file picker has been cancelled. |
65
66
| context | BaseComponentContext | yes | Current context. |
66
67
| accepts | string[]| no | Array of strings containing allowed files extensions. E.g. [".gif", ".jpg", ".jpeg", ".bmp", ".dib", ".tif", ".tiff", ".ico", ".png", ".jxr", ".svg"]|
67
68
| required | boolean | no | Sets the label to inform that the value is required. |
68
69
| bingAPIKey | string | no | Used to execute WebSearch. If not provided SearchTab will not be available. |
69
70
| disabled | boolean | no | Specifies if the picker button is disabled |
71
+
| hidden | boolean | no | Specifies if the picker button is hidden (if hidden, panel visibility can still be controlled with isPanelOpen) |
70
72
| itemsCountQueryLimit | number | no | Number of items to obtain when executing REST queries. Default 100. |
71
73
| hideRecentTab | boolean | no | Specifies if RecentTab should be hidden. |
72
74
| hideWebSearchTab | boolean | no | Specifies if WebSearchTab should be hidden. |
@@ -77,6 +79,7 @@ The FilePicker component can be configured with the following properties:
77
79
| hideLocalUploadTab | boolean | no | Specifies if LocalUploadTab should be hidden. |
78
80
| hideLinkUploadTab | boolean | no | Specifies if LinkUploadTab should be hidden. |
79
81
| storeLastActiveTab | boolean | no | Specifies if last active tab will be stored after the Upload panel has been closed. Note: the value of selected tab is stored in the queryString hash. Default `true`|
82
+
| isPanelOpen | boolean | no | Specifies if the file picker panel is open by default or not |
80
83
| renderCustomUploadTabContent | (filePickerResult: IFilePickerResult) => JSX.Element \| null | no | Optional renderer to add custom user-defined fields to "Upload" tab |
81
84
| renderCustomLinkTabContent | (filePickerResult: IFilePickerResult) => JSX.Element \| null | no | Optional renderer to add custom user-defined fields to "Link" tab |
82
85
| includePageLibraries | boolean | no | Specifies if Site Pages library to be visible on Sites tab |
0 commit comments