Overview
The @qatium/plugin/ui
library exports methods to work with the UI of the plugin.
sendMessage()
Allows the plugin UI to communicate with its engine. Learn more about plugin communication.
Method signature
Parameters
message: T
: an arbitrary message to be sent to the engine. Check the documentation of structuredClone to verify what can be sent.
Example
Send a message to the engine
onMessage()
Allows for listening messages from the plugin engine. Learn more about plugin communication.
Method signature
Parameters
message: T
: The message sent by the plugin engine.
Example
Receives a message and prints it into an HTML element.