Adds and loads a new JS or CSS files into the panel.
Creates a new panel
Hides the panel
Called when a message is sent from the webview (using postMessage).
To post a message from the webview to the plugin use:
const response = await webviewApi.postMessage(message);
message
can be any JavaScript object, string or numberresponse
is whatever was returned by the onMessage
handlerUsing this mechanism, you can have two-way communication between the plugin and webview.
See the postMessage demo for more details.
Sets the panel webview HTML
Shows the panel
Tells whether the panel is visible or not
Allows creating and managing view panels. View panels currently are displayed at the right of the sidebar and allows displaying any HTML content (within a webview) and update it in real-time. For example it could be used to display a table of content for the active note, or display various metadata or graph.
View the demo plugin