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 for hyperlink and tooltip #34

Closed
yangpu opened this issue Dec 5, 2014 · 10 comments
Closed

Support for hyperlink and tooltip #34

yangpu opened this issue Dec 5, 2014 · 10 comments
Labels
Type: Enhancement New feature or request
Milestone

Comments

@yangpu
Copy link

yangpu commented Dec 5, 2014

Can we use markdown syntax for define hyperlink and tooltip for interactive?

@knsv knsv added styling Type: Enhancement New feature or request and removed styling labels Dec 5, 2014
@dhm116
Copy link

dhm116 commented Dec 6, 2014

👍

@DCushman033C
Copy link

This would be an excellent feature.

@lgersman
Copy link

lgersman commented Feb 3, 2015

👍

@knsv
Copy link
Collaborator

knsv commented Feb 4, 2015

This could be done! This is will not work outside the browser so the case with this syntax need to be covered for that case also. I would suggest syntax as per below:

click a1,b1 callBackFun
click a2,b2 link

tooltip a1,b1 Tooltip text 1
tooltip a2,b2 Tooltip text 2

where a1,2,b1 and b2 are nodes.

@knsv
Copy link
Collaborator

knsv commented Sep 30, 2015

This in progress now. Will use the following syntax:

click a1,b1 callBackFun
click a2,b2 callBackFun "tooltip text"
click a3,b3 "link"
click a4,b4 "link" "tooltip text"

@lgersman
Copy link

Good proposal - the syntax looks promising !

knsv added a commit that referenced this issue Oct 1, 2015
@knsv
Copy link
Collaborator

knsv commented Oct 3, 2015

A fix is committed, but not yet released. Usage is described in the docs:
http://knsv.github.io/mermaid/#interaction

@knsv knsv added this to the 0.5.2 milestone Oct 4, 2015
@knsv
Copy link
Collaborator

knsv commented Oct 4, 2015

Fix for this issue was released in mermaid 0.5.2. Will close this now, let me know if you issues still remain.

@knsv knsv closed this as completed Oct 4, 2015
@piranna
Copy link

piranna commented Oct 30, 2015

I think mouse pointer should change to a hand when it's over a clickable element, if not it's not possible to know it. Also would be good to change them on over to show them too. Both things are just a matter of a bit CSS...

Another thing that I've seen is that the "open in a new window" behaviour should be configurable, because I want to use as an image map to other elements on the same page. In that way, if links could be done with regular HTML a tags instead of the need of Javascript that would be a plus, because it would be used on PDFs too.

@majinliang123
Copy link

How could i just show tooltip text, not a link node

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

7 participants