Open shoonia opened 4 years ago
IFrame
HtmlComponent
We can return any custom data from HtmlComponent. It's not HtmlComponentMessageEvent like another hendlers.
HtmlComponentMessageEvent
$w("#myHtmlComponent").onMessage( (event) => { let receivedMessage = event.data.someDataHere; // My custom data } );
error:
Property 'someDataHere' does not exist on type 'Element'.ts(2339)
use
"devDependencies": { "corvid-cli": "^0.2.2", "corvid-types": "^0.1.90" }
Wrong event type for
IFrame
andHtmlComponent
We can return any custom data from
HtmlComponent
. It's notHtmlComponentMessageEvent
like another hendlers.error:
use