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.

Format URL links in annotation interface

See original GitHub issue

Is your feature request related to a problem? Please describe. I have tried to find any hints in the docs on how to enable support for URL link formatting in a custom annotation interface, but without any success.

Let’s say, I have a file identifier field file_id within data dict that is being imported to LS. I want to format this identifier as a clickable URL link, e.g. file_id = 123qwezxc for a given task and I want to be able to click on the generated link: https://someconstlink.com/123qwezxc

I have attempted to do something like this:

  <Style> .url-field { color: blue; text-align: left; margin: 20px}</Style>
  <View className="url-field">
  	<Text name="link" value="https://someconstlink.com/$file_id"/>
  </View>

But it doesn’t seem to work, i.e. it doesn’t save the interface code when I add this formatting. Moreover, there is no option to make it clickable as well.

Describe the solution you’d like

An .xml key explicitly converting information to a URL, like

<URL name="link" value="https://someconstlink.com/$file_id"/>

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
RadionBikcommented, Apr 26, 2022

thank you, it works!

1reaction
makseqcommented, Apr 26, 2022
<View>
    <HyperText name="p1" clickableLinks="true" inline="true" target="_blank">
      <a target="_blank" href="https://someconstlink.com/files?files=$file_id">https://someconstlink.com/files?files=$file_id</a>
    </HyperText>
  </View>
Read more comments on GitHub >

github_iconTop Results From Across the Web

Annotation interfaces · Prodigy
The web app lets you annotate a variety of different formats, including plain text, named entities, categorization, images and A/B comparisons, as well...
Read more >
HYPERLINK property - IBM
The HYPERLINK property defines actions to be taken with pages, annotations, JavaScript, and web pages. This property uses the following format:
Read more >
Add Link to Annotations - PDFTron
Use WebViewer UI to Add Links to Annotations · Programmatically Add Hyperlink to Existing Annotation · Programmatically Add Intra-Document Link to Existing ...
Read more >
Javadoc: @see and @link - Baeldung
The format of the @see tag is quite simple: @see reference. Copy. For example, we can use it to mark an external link...
Read more >
java - Javadoc @see or {@link}? - Stack Overflow
I use the @see annotation in 2 cases: Something is very relevant but not mentioned in the description. I refer to the same...
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