How to hide/show a title over a VideoBox? (EditorX)

I found a clue. I’m trying to test the function on the H1 itself.

When I write the function in the code editor alone, it doesn’t work. When I go into the properties panel to add an onClick event (which gives the exact same result in the code editor), the function works as intended.

On the VideoBox element, I am unable to add any events in the properties panel. This is all there is to it:

This could be the issue.