I’ve spent a bit of time figuring out how to get a click event from a plugin to be accessible as Dynamic data and was able to thanks to some of the posts here! I’ve put that knowledge into a tutorial and I hope it can help another fellow Bubbler! Dynamic data from a Bubble.io plugin’s click events: Dynamic data from a Bubble.io plugin’s click events | by Jason Yee | JavaScript in Plain English
The gist is to add the instance to the window
object. That allows you to call window.instance.publishState(‘EXPOSED_STATE’, var_used_to_create_button_dom_obj)
in a button’s onclick
event.
Very helpful posts: