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
*`asset:add` New asset added to the collection. The [Asset] is passed as an argument to the callback.
22
23
23
-
*`asset:open` - Asset Manager opened.
24
-
*`asset:close` - Asset Manager closed.
25
-
*`asset:add` - Asset added. The [Asset] is passed as an argument to the callback.
26
-
*`asset:remove` - Asset removed. The [Asset] is passed as an argument to the callback.
27
-
*`asset:update` - Asset updated. The updated [Asset] and the object containing changes are passed as arguments to the callback.
28
-
*`asset:upload:start` - Before the upload is started.
29
-
*`asset:upload:end` - After the upload is ended.
30
-
*`asset:upload:error` - On any error in upload, passes the error as an argument.
31
-
*`asset:upload:response` - On upload response, passes the result as an argument.
32
-
*`asset` - Catch-all event for all the events mentioned above. An object containing all the available data about the triggered event is passed as an argument to the callback.
33
-
*`asset:custom` - Event for handling custom Asset Manager UI.
24
+
```javascript
25
+
editor.on('asset:add', (asset) => { ... });
26
+
```
27
+
28
+
*`asset:remove` Asset removed from the collection. The [Asset] is passed as an argument to the callback.
29
+
30
+
```javascript
31
+
editor.on('asset:remove', (asset) => { ... });
32
+
```
33
+
34
+
*`asset:update` Asset updated. The [Asset] and the object containing changes are passed as arguments to the callback.
*`asset` Catch-all event for all the events mentioned above. An object containing all the available data about the triggered event is passed as an argument to the callback.
* * `asset:add` - Asset added. The [Asset] is passed as an argument to the callback.
21
-
* * `asset:remove` - Asset removed. The [Asset] is passed as an argument to the callback.
22
-
* * `asset:update` - Asset updated. The updated [Asset] and the object containing changes are passed as arguments to the callback.
23
-
* * `asset:upload:start` - Before the upload is started.
24
-
* * `asset:upload:end` - After the upload is ended.
25
-
* * `asset:upload:error` - On any error in upload, passes the error as an argument.
26
-
* * `asset:upload:response` - On upload response, passes the result as an argument.
27
-
* * `asset` - Catch-all event for all the events mentioned above. An object containing all the available data about the triggered event is passed as an argument to the callback.
0 commit comments