Skip to content

Custom link #1677

Discussion options

You must be logged in to vote

Hi,

it seems like maybe, you want to use some linkTools after all, but just edit how they look if I understand correctly.
https://resources.jointjs.com/docs/jointjs/v3.5/joint.html#linkTools

It is possible to add a Remove button via linkTools for example. You can also add SourceArrowhead and TargetArrowhead which allow you to change target and source.

You can take advantage of events to add or remove the linkTools:
https://resources.jointjs.com/docs/jointjs/v3.5/joint.html#dia.Paper.events

 // Register events
paper.on('link:mouseenter', (linkView) => {
    showLinkTools(linkView);
});

paper.on('link:mouseleave', (linkView) => {
    linkView.removeTools();
});

// Actions
function showLin…

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by YongheeMinnovation
Comment options

You must be logged in to vote
1 reply
@jamesgeorgewilliams
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants