Improved plugin documentation

This commit is contained in:
the-djmaze 2022-02-26 10:33:11 +01:00
parent 6d6690009c
commit 92cec80b73
2 changed files with 22 additions and 6 deletions

View file

@ -17,6 +17,23 @@ JavaScript
```javascript
class PluginPopupView extends rl.pluginPopupView
{
// Happens when DOM is created
onBuild(dom) {}
// Happens before showModal()
onBeforeShow(...params) {}
// Happens after showModal()
onShow(...params) {}
// Happens after showModal() animation transitionend
afterShow() {}
// Happens when user hits Escape or Close key
// return false to prevent closing, use closeCommand() manually
onClose() {}
// Happens before animation transitionend
onHide() {}
// Happens after animation transitionend
afterHide() {}
}
PluginPopupView.showModal();