Open aiai5251 opened 7 years ago
I needed to support clicking on the "participant" (nodes) and managed to extract it by doing the following:
// Getting all the available "participants" - could alternatively adjust to select notes, signals etc.
var actors = document.getElementsByClassName('actor');
// Making the first participant have an onClick event, could alternatively for loop
actors[0].style.cursor = 'pointer';
actors[0].onclick = () => {
console.log(actors[0].textContent);
}
Hope this helps!
How can I support clicking every text tab?