Adding events to Perspective Symbols

I know 8.3 will have some drawing tools that may or may not fix this for me, but I need to add an onClick to some elements in a symbol. As an example, I have a valve symbol with some of the paths that I want to be clickable and fire an event.

Will I have to just make them individual symbols an add on clicks to them that way or is there another way? I attempted to add onClick as an attribute, but it throws the minified react error for onClick not being a function.

Somewhere there was a javascript injection hack you could do that ran a javascript script to listen for onclick on the svg id
I can't find it right now, but its in the forum somwehere.

1 Like

I guess I was just bad at searching my first go around :laughing:

Thanks for pointing me in the right direction.

1 Like

Note that when drawing tools are added, this script might break ^^
ping me if it happends

3 Likes