Notaku exposes a Widget JavaScript API to control your widget behaviour
Notaku.show()
Notaku.hide()
This method will change the website shown in the widget sidebar.
It works even if the widget has not been opened yet.
Notaku.goTo('<https://notaku.so/docs>')
The widget sidebar will show a link to visit your full page website.
You can use this method to change the link url, very useful in case you are hosting the website on a /docs
subdirectory
Notaku.setFullPageUrl('<https://notaku.so/docs>')
If you have many Notaku widgets on a page you can target one with the getWidget(widgetId)
function
Notaku.getWidget('{{widgetId}}').show()