Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support clicking #182

Open
aiai5251 opened this issue Sep 14, 2017 · 1 comment
Open

support clicking #182

aiai5251 opened this issue Sep 14, 2017 · 1 comment

Comments

@aiai5251
Copy link

How can I support clicking every text tab?

@Bilaltariq98
Copy link

Bilaltariq98 commented Jun 6, 2018

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants