How to add customlink while dragging from one node to another.. #201
Unanswered
snehabihani
asked this question in
Q&A
Replies: 3 comments 2 replies
-
Hello, I assume
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi, thank you for quick reply. But I want to change the link color for
every node.. means for different nodes there will be different link color..
…On Friday, May 27, 2022, Haytam Zanid ***@***.***> wrote:
Hello, I assume NodeLink is your class that inherits from BaseLinkModel
right?
If yes, then you can set a factory in the options in order to create the
links and control how:
var options = new DiagramOptions
{
Links = new DiagramLinkOptions
{
Factory = (diagram, sourcePort) => new NodeLink(sourcePort, null) // Not attached yet
}
}
—
Reply to this email directly, view it on GitHub
<#201 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AM4MS63MKKDS4XQWCVVHE2DVMDKLRANCNFSM5XD6KMMQ>
.
You are receiving this because you authored the thread.Message ID:
<Blazor-Diagrams/Blazor.Diagrams/repo-discussions/201/comments/2834703@
github.com>
--
Regards,
Sneha Bihani
Mob:9960298364
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Based on the source node? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How to add customlink while dragging from one node to another..
I have created customlink model. With this Diagram.Links.Add(new NodeLink(node.GetPort(PortAlignment.Bottom), node1.GetPort(PortAlignment.Top))); I can draw On page load but i want on drag functionality.
Beta Was this translation helpful? Give feedback.
All reactions