Extend example extension code with more details

This commit is contained in:
the-djmaze 2023-11-27 01:51:23 +01:00
parent 5e2d9c4fb0
commit 7135af995d
6 changed files with 122 additions and 12 deletions

View file

@ -408,14 +408,34 @@ and called in JavaScript using rl.pluginRemoteRequest().
### mailbox.inbox-unread-count
### mailbox.message-list.selector.go-up
### mailbox.message-list.selector.go-down
### mailbox.message.show
Use to show a specific message.
``` JavaScript
dispatchEvent(
new CustomEvent(
'mailbox.message.show',
{
detail: {
folder: 'INBOX',
uid: 1
},
cancelable: false
}
)
);
```
## audio
### audio.start
### audio.stop
### audio.api.stop
## Misc
### idle
### rl-layout
event.detail value is one of:
0. NoPreview
1. SidePreview
2. BottomPreview
### rl-view-model.create
event.detail = the ViewModel class