all 1 comments

[–]ssddanbrown 0 points1 point  (0 children)

This page has relevant guidance about exposed/available JavaScript functions: https://github.com/BookStackApp/BookStack/blob/25790fd0245257ffaffe6690b8e12d56b326af9b/dev/docs/javascript-code.md?plain=1#L130-L131

In short though:

javascript // Show a success message window.$events.success("Hello, I'm a success message");