Change Page Data Using Custom Code

Hello,

I have created a custom block of code that returns true or false depending on where you click on the screen. I’d like to add this value to a variable within Page Data but I can’t find any documentation on how to access/change Page Data from the custom code block. Could you point me a direction? This event listener is is triggered with an on mounted event.

Sincerely,
Elijah

Hello @CD_Engineers,

You can add an argument to the custom code block and pass PageData into it, allowing you to work with it as an object:



Regards,
Alexander