#Widget events (and properties) not showing in site Events & Properties Tab

15 messages · Page 1 of 1 (latest)

restive bough
#

I'm cutting my teeth on Blocks, so I started with a simple app. The app is released and installed on a free site I'm using for development. I have defined a custom event in the blocks editor, which appear in the API panel of the Blocks Editor. The widget in the site editor works (it runs onReady), but the event does not appear in the Events & Properties Tab, so I can't catch the event.

modern gust
#

@restive bough

//site code
$w('#myWidget').onStateChange((event)=>{console.log(event)});
restive bough
modern gust
#

Is the element the widget id in page?

restive bough
restive bough
modern gust
restive bough
modern gust
restive bough
#

I've been using release versions

restive bough
restive bough
#

Duh - I just realized that StateChange is the name of my custom event. 😅

restive bough