question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Create custom label clickeable

See original GitHub issue

Hi I’m trying to create a buttom as label the button is rendered but in position 0,0 and it’s not moving when I move a related node

widget image

model image

registering Diagram.RegisterModelComponent<SelectorLinkLabel, SelectorLinkLabelWidget>();

using it

      var link1 = new LinkModel(node1, node2)
           {
               TargetMarker = LinkMarker.Arrow
           };
       link1.Labels.Add(new SelectorLinkLabel(link1));
       Diagram.Links.Add(link1);

Any idea what it’s wrong?

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
zHaytamcommented, Dec 6, 2022

Can you try adding pointer-events: all; to your button or maybe even the foreignObject?

0reactions
elgransancommented, Dec 6, 2022

image

Ok, it’s solved, I need to add the translate transform and the background color couldn’t be transparent

Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to use Custom Labels in Custom Button or Link
Custom labels cannot be used in Custom buttons or links. However, they can be used in URL type fields set via default values...
Read more >
JAVAFX How to make a button stacked behind a Label ...
I think I have solved my own question. All I did was set a clickable event for my label. Label sp = new...
Read more >
Create and Edit Custom Labels
From Setup, in the Quick Find box, enter Custom Labels , then select Custom Labels. To create a label, click New Custom Label....
Read more >
Using Custom Labels
The Custom Labels feature is an extremely flexible and versatile way to customize Web pages to suit your individual needs. JAWS allows you...
Read more >
How to use Custom Labels in Custom Button or Link
How to use Custom Labels in Custom Button or Link. I'm new to salesforce, Is there any way to use a Custom Label...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found