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
embed-mode: add documentation for new opencloud-embed:share-links event (#510)
* embed-mode: add documentation for new owncloud-embed:share-links event
* style: make linter happy
---------
Co-authored-by: Michael Barz <michael.barz@zeitgestalten.eu>
|**opencloud-embed:select**|`Resource[]`| Gets emitted when user selects resources or location via the select action |
31
+
|**opencloud-embed:share-links**|`Array<{ url: string, password?: string }>`| Gets emitted when user shares resources via the "Share links" action. Includes passwords when applicable. |
32
+
|**opencloud-embed:share**|`string[]`|**(Deprecated)** Gets emitted when user shares resources. Use `opencloud-embed:share-links` for password support. |
33
+
|**opencloud-embed:cancel**|`null`| Gets emitted when user attempts to close the embedded instance via "Cancel" action |
33
34
34
35
### Example
35
36
@@ -47,7 +48,22 @@ To maintain uniformity and ease of handling, each event encapsulates the same st
47
48
doSomethingWithSelectedResources(resources);
48
49
}
49
50
51
+
functionshareLinksEventHandler(event) {
52
+
if (event.data?.name!=='opencloud-embed:share-links') {
0 commit comments