Right now the perspective doesn’t support SVG click event to passes the name of the selected element.
I try to have this simply by adding some transparent label underneath each element and assign of event click script for my requirement.
I put the label underneath SVG because I want to use the CSS hover effect for each element.
As of 8.1, we have some options called stop propagation. If I uncheck this option, the click event of SVG should pass to the underneath object but it doesn’t work.
Is it a bug or did I understand the event bubbling effect incorrectly?
Is there any workaround for this?
Isn’t it nice to have a click event that passes the element name or the selection property for SVG, like table, so we can find which element click by the user?
if you put a style pointer-events:none on the svg, clicks will go through it. atleast in chrome, not tested in workstation.
you might also have to put pointer-events:auto on the labels but probably not.
Yeah im not quite sure what the reason is its not possible, guess the devs just never had the time yet, just like with the xy graphs they recently added on click events too.
I have an svg custom component which has some (messages) events on it, but it kinda works a bit different than the ignition component and i have no docs xD so not sure if it’s worth trying to figure that out lol (also idk if i can just share a module tho, ill have to ask my boss)