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
| action | String | false | 'pick' | A method from [Client](https://filestack.github.io/filestack-js/classes/client.html) class. One of 'transform','retrieve','metadata','storeUrl','upload','remove','pick','removeMetadata','preview','logout' |
57
-
| actionOptions | Object | false || An action (client method) specific options object eg. PickerOptions, TransformOptions etc. |
58
-
| componentDisplayMode | Object ||| Determines how will be wrapper component displayed |
59
-
| componentDisplayMode.type | String | false | 'button' | It can be 'button', 'link' or 'immediate' |
60
-
| componentDisplayMode.customText | String | false | 'Pick file' | If type is 'button' or 'link' you can set text for it |
61
-
| componentDisplayMode.customClass | String | false | 'filestack-react' | If type is 'button' or 'link' you can set class for it |
62
-
| onSuccess | Function | false | result => console.log(result) | A function to be called after successful completed action |
63
-
| onError | Function | false | error => console.error(error) | A function to be called when error occurs |
64
-
| clientOptions | Object ||| Filestack client options used for an every action |
| actionOptions | pickerOptions | We want to be consistent with other filestack libs |
99
+
| clientOptions | clientOptions ||
100
+
| onSuccess | onSuccess ||
101
+
| onError | onError ||
102
+
| N/A | children | Children prop will be used now in case you'll want to use specific container |
103
+
| action | N/A | Default picker action will be 'pick' always |
104
+
| file | N/A | Removed |
105
+
| source | N/A | Removed |
106
+
| customRender | N/A | Removed, from now on clients will be responsible for rendering |
107
+
| componentDisplayMode | N/A | Removed, from now on clients will be responsible for rendering |
108
+
161
109
### Migration from 1.x.x and 2.x.x
162
-
One of the changes introduced in the new version are rethinked props that the component accepts, so that the use of the component is as straightforward as possible.
110
+
One of the changes introduced in the new version are rethinked props that the component accepts, so that the use of the component is as straightforward as possible.
163
111
Below you will find information about what happened to each of the options available in 2.x.x :
0 commit comments