This commit is contained in:
the-djmaze 2023-07-03 11:05:11 +02:00
parent 47e3fc90f2
commit 0e3ed0fea0
2 changed files with 18 additions and 0 deletions

View file

@ -440,6 +440,22 @@ and called in JavaScript using rl.pluginRemoteRequest().
event.detail = 'screenname'
cancelable using preventDefault()
### squire-toolbar
event.detail = { squire: SquireUI, actions: object }
`actions` is the toolbar structure.
```javascript
block-of-buttons: {
button-name: {
select: ['selectbox options'],
html: 'button text',
cmd: () => `command to execute`,
key: 'keyboard shortcut',
matches: 'HTML elements that match'
}
}
```
See [SquireUI.js](https://github.com/the-djmaze/snappymail/blob/master/dev/External/SquireUI.js)
for all default toolbar actions.
# JavaScript `rl` object