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
*`device:add` New device added to the collection. The `Device` is passed as an argument.
22
23
23
-
*`device:add` - Added new device. The [Device] is passed as an argument to the callback
24
-
*`device:remove` - Device removed. The [Device] is passed as an argument to the callback
25
-
*`device:select` - New device selected. The newly selected [Device] and the previous one, are passed as arguments to the callback
26
-
*`device:update` - Device updated. The updated [Device] and the object containing changes are passed as arguments to the callback
27
-
*`device` - 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
24
+
```javascript
25
+
editor.on('device:add', (device) => { ... });
26
+
```
27
+
28
+
*`device:remove` Device removed from the collection. The `Device` is passed as an argument.
29
+
30
+
```javascript
31
+
editor.on('device:remove', (device) => { ... });
32
+
```
33
+
34
+
*`device:select` A new device is selected. The `Device` is passed as an argument.
35
+
36
+
```javascript
37
+
editor.on('device:select', (device) => { ... });
38
+
```
39
+
40
+
*`device:update` Device updated. The `Device` and the object containing changes are passed as arguments.
41
+
42
+
```javascript
43
+
editor.on('device:update', (device) => { ... });
44
+
```
45
+
46
+
*`device` Catch-all event for all the events mentioned above.
0 commit comments