I'm trying to use the DisplayField component to display a link. I have read through several postings but none seem to be working for me. Here is what I have:
Code:
<DisplayField label="Tag #" labelAlign="left" value="Link for Tag #" 
                    style={{
                        'cursor': 'pointer',
                        'color': 'blue',
                        'text-decoration': 'underline'
                    }}
                    listeners= {{
                        afterrender: function(view) {
                            // Listener for onclick
                            view.getEl().on('click', function() {
                                console.log('test');
                            })
                        }
                    }}
                 />
As I mentioned this does not work. I've tried to use the onClick or the click events but those don't seem to fire as well. Also I'm trying to style just the value as a link but it appears to be applying underline to the label as well. I tried fieldStyle and that didn't work.