Quantcast
Channel: SCN: Message List - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 8124

Re: How to make url clickable in textarea/feedlistitem

$
0
0

Thanks guys, I got it working. I'll probably create a document about this, because I think this might be helpfull for other users to.

 

What I did was:

1: in the updateFinished event from my sap.m.list I call a function 'createURL'.

2. In the 'createURL' function I loop through all the objects of the same div class

3. Get the plain tekst with the html() function

4. Use autolinker (gregjacobs/Autolinker.js · GitHub ) to detect every url and create the a href tags.

5. replace the old html content with the new

 

 

The next thing I'll so is set up the validation.

 

Kind regards,

 

RW


Viewing all articles
Browse latest Browse all 8124

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>