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