Format URL links in annotation interface
See original GitHub issueIs 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:
- Created a year ago
- Comments:10 (3 by maintainers)
thank you, it works!