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

Put your own action on the chart #372

Closed
yhjhoo opened this issue Jul 11, 2016 · 6 comments
Closed

Put your own action on the chart #372

yhjhoo opened this issue Jul 11, 2016 · 6 comments

Comments

@yhjhoo
Copy link

yhjhoo commented Jul 11, 2016

Hi

Is it possible to put your own JavaScript action on the chart? Eg: click on start icon, trigger a ajax call.

@tylerlong
Copy link
Collaborator

Yes, please read https://mermaidjs.github.io/flowchart.html and find the section "Interaction".

@dfederighi
Copy link

Tyler ... I wrote an email, but maybe it's easier here. Does this action/interaction work or will it work with Gantt charts?

@SgtPooki
Copy link

SgtPooki commented Oct 31, 2019

Yes, please read https://mermaidjs.github.io/flowchart.html and find the section "Interaction".

The link is broken; https://mermaidjs.github.io/#/flowchart?id=interaction seems like the proper link now.

However, in the first example, e.g.

graph LR;
    A-->B;
    click A callback "Tooltip for a callback"
    click B "http://www.github.com" "This is a tooltip for a link"
Loading

the A node click event does not work. B does.

@IOrlandoni
Copy link
Member

@SgtPooki Hey, it seems like you're answering to a year and a half old issue/question. Feel free to open a new issue if you need any assistance. I'll lock this issue soon.

@SgtPooki
Copy link

@dunning-kruger I was just updating the documentation since the info in this issue was no longer valid. I don't have a particular issue, but there is a bug with the click event. thanks for the quick response :)

@IOrlandoni
Copy link
Member

@SgtPooki I appreciate the intention but issues are not an authoritative source of information. The link was valid at the time this issue was open and that is enough. Otherwise, we'd have a full-time job of keeping the ever-growing list of closed issues updated, or be flooded by notifications of comments "updating" closed issues.

As for the "bug with the click event", in case you're not talking about #891, feel free to create a new issue with the repro and we'd be happy to take a look!

@mermaid-js mermaid-js locked as resolved and limited conversation to collaborators Oct 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants