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

Link / Action for each word #173

Open
magicpauluk opened this issue Mar 29, 2022 · 5 comments
Open

Link / Action for each word #173

magicpauluk opened this issue Mar 29, 2022 · 5 comments
Labels

Comments

@magicpauluk
Copy link

This is ideal for a project I am working on. I wondered if anyone had applied an action or hyperlink to the words?

@jasondavies
Copy link
Owner

This should be straightforward: you can use HTML hyperlink elements or add event listeners to SVG.

@jasondavies
Copy link
Owner

Actually, I'll leave this open as it may be helpful to create an example or add this feature to my app.

@jasondavies jasondavies reopened this Jul 15, 2022
@CappuccinoAaron
Copy link

You can add ".attr("onclick", function(d) { return "window.open('You URL')"; })" in js 'draw' function.

@nickde9999
Copy link

Is there a way to add the word to the url ? If I add + d.word it says d is not defined

@mypeaceduck
Copy link

This should be straightforward: you can use HTML hyperlink elements or add event listeners to SVG.

How to track clicks on a word?

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

No branches or pull requests

5 participants