aboutsummaryrefslogtreecommitdiffhomepage
path: root/support/doc
diff options
context:
space:
mode:
Diffstat (limited to 'support/doc')
-rw-r--r--support/doc/plugins/guide.md18
1 files changed, 18 insertions, 0 deletions
diff --git a/support/doc/plugins/guide.md b/support/doc/plugins/guide.md
index 5251ce48a..e6870ce17 100644
--- a/support/doc/plugins/guide.md
+++ b/support/doc/plugins/guide.md
@@ -216,6 +216,24 @@ notifier.success('Success message content.')
216notifier.error('Error message content.') 216notifier.error('Error message content.')
217``` 217```
218 218
219#### Custom Modal
220
221To show a custom modal:
222
223```js
224 peertubeHelpers.showModal({
225 title: 'My custom modal title',
226 content: '<p>My custom modal content</p>',
227 // Optionals parameters :
228 // show close icon
229 close: true,
230 // show cancel button and call action() after hiding modal
231 cancel: { value: 'cancel', action: () => {} },
232 // show confirm button and call action() after hiding modal
233 confirm: { value: 'confirm', action: () => {} },
234 })
235```
236
219#### Translate 237#### Translate
220 238
221You can translate some strings of your plugin (PeerTube will use your `translations` object of your `package.json` file): 239You can translate some strings of your plugin (PeerTube will use your `translations` object of your `package.json` file):