@@ -21,30 +21,73 @@ export interface IFilePickerProps {
21
21
*/
22
22
onSave :( filePickerResult : IFilePickerResult ) => void ;
23
23
24
+ /**
25
+ * Handler when file has been changed.
26
+ */
27
+ onChanged : ( filePickerResult : IFilePickerResult ) => void ;
28
+
29
+ /**
30
+ * Current context.
31
+ */
32
+ webPartContext : WebPartContext ;
33
+
24
34
/**
25
35
* File extensions to be displayed.
26
36
*/
27
37
accepts ?: string ;
28
38
29
39
/**
30
- * Used to execute WebSearch.
40
+ * Sets the label to inform that the value is required.
41
+ */
42
+ required ?: boolean ;
43
+
44
+ /**
45
+ * Used to execute WebSearch. If not provided SearchTab will not be available.
31
46
*/
32
47
bingAPIKey ?: string ;
33
48
34
- webPartContext : WebPartContext ;
35
49
/**
36
50
* Specifies if the picker button is disabled
37
51
*/
38
52
disabled ?: boolean ;
39
53
54
+ /**
55
+ * Number of itmes to obtain when executing REST queries. Default 100.
56
+ */
57
+ itemsCountQueryLimit ?: number ;
58
+
59
+ /**
60
+ * Specifies if RecentTab should be hidden.
61
+ */
40
62
hideRecentTab ?: boolean ;
63
+
64
+ /**
65
+ * Specifies if WebSearchTab should be hidden.
66
+ */
41
67
hideWebSearchTab ?: boolean ;
68
+
69
+ /**
70
+ * Specifies if OrganisationalAssetTab should be hidden.
71
+ */
42
72
hideOrganisationalAssetTab ?: boolean ;
73
+
74
+ /**
75
+ * Specifies if OneDriveTab should be hidden.
76
+ */
43
77
hideOneDriveTab ?: boolean ;
78
+
79
+ /**
80
+ * Specifies if SiteFilesTab should be hidden.
81
+ */
44
82
hideSiteFilesTab ?: boolean ;
83
+
84
+ /**
85
+ * Specifies if LocalUploadTab should be hidden.
86
+ */
45
87
hideLocalUploadTab ?: boolean ;
46
- hideLinkUploadTab ?: boolean ;
47
88
48
- required ?: boolean ;
49
- onChanged : ( filePickerResult : IFilePickerResult ) => void ;
89
+ /**
90
+ * Specifies if LinkUploadTab should be hidden.
91
+ */
92
+ hideLinkUploadTab ?: boolean ;
50
93
}
0 commit comments