I've been trying and googling for hours, and cannot find a solution. Perhaps you have a solution for me.
I'm trying to linkify url's in my feed. My Twitter and blog posts always have links and I'd like them to be clickable.
Code:
Ext.define('Gallery.view.Feed', {
extend: 'Ext.navigation.View',
xtype: 'feed',
fullscreen: true,
config: {
title: 'Feed',
iconCls: 'download',
cls: 'feed',
scrolable: true,
items: [
{
xtype: 'nestedlist',
title: 'Feed-Me',
iconCls: 'star',
displayField: 'title',
store: {
type: 'tree',
fields: [
'title', 'link', 'author', 'contentSnippet', 'content',
{name: 'leaf', defaultValue: true}
],
root: {
leaf: false
},
proxy: {
type: 'jsonp',
url: 'https://ajax.googleapis.com/ajax/services/feed/load?v=1.0&q=http://mix.chimpfeedr.com/cabf1-gallery1&num=20',
reader: {
type: 'json',
rootProperty: 'responseData.feed.entries'
}
}
},
detailCard: {
xtype: 'panel',
scrollable: true,
styleHtmlContent: true
},
listeners: {
itemtap: function(nestedList, list, index, element, post) {
this.getDetailCard().setHtml(post.get('content'));
}
}
}
]
}
});
I've seen examples of this when using a template. Is there any easy way to implement linkify without using a template? If not, what would be the best way to implement a linkified template here?
Thanks!