im trying to add event listerens to them. it worked fine in vision to do something like this with java swing action handlers.
But i suppose its not possible to add js script handlers in runtime anyways so ill have to think of somethign else xd
What i made in vision was a button that added(and removed) events to all componets. on click these opened a popup with a table containting all their text, tooltips, dataset labels. Super usefull for translating^^
Now for perspective a have a working event listerer that works on selected text, but its hard to use with dropboxes and tooltips. so now im looking to add events on all componets too.
if i make a custom component.
looking through it i think i can find everything i need in window.__client.page.views._data
going a bit deeper i can find the paths,recoruce paths and all the props.
if i can reconstruct the path… and add events on each div that has a [data-component-path] and manage to link those… i suppose i could add events in run time that have all the relevant info that i need, window.__client.page.views._data.value.value.root.childComponents.def.props
but its quite a soup going through all those, especiialy if there are containers and emmebeded views xd