Explorar el Código

add small example

Artur Paikin hace 4 años
padre
commit
0f7adf5759
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  1. 6 0
      website/src/docs/dashboard.md

+ 6 - 0
website/src/docs/dashboard.md

@@ -439,3 +439,9 @@ Fired when the user finished editing the file metadata.
 
 
 This event is useful if you are using the [`showRemoveButtonAfterComplete: true`](/docs/dashboard/#showRemoveButtonAfterComplete-false) option, and want to distinguish when a user has manually removed file in the UI, vs when “cancel all” has been pressed or `uppy.close()` or `uppy.reset()` has been called.
 This event is useful if you are using the [`showRemoveButtonAfterComplete: true`](/docs/dashboard/#showRemoveButtonAfterComplete-false) option, and want to distinguish when a user has manually removed file in the UI, vs when “cancel all” has been pressed or `uppy.close()` or `uppy.reset()` has been called.
 (See [#2301](https://github.com/transloadit/uppy/issues/2301#issue-628931176)).
 (See [#2301](https://github.com/transloadit/uppy/issues/2301#issue-628931176)).
+
+```js
+uppy.on('dashboard:file-removed-ui', (file) => {
+  // Your “file removed” logic
+})
+```