JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="http://cdn.sencha.io/ext-4.1.0-gpl/resources/css/ext-all.css">
JavaScript
Ext.onReady(function() {
var createWindow = function() {
var win = Ext.create('Ext.window.Window', {
title: 'Link example',
layout: 'anchor',
defaults: {
anchor: '100%',
labelWidth: 155,
labelStyle: 'font-weight: bold'
},
modal: true,
width: 300,
bodyPadding: 30,
height: 300,
autoShow: true,
items: [{
xtype: 'displayfield',
fieldLabel: 'Ich bin ein Label',
listeners: {
scope: this,
afterrender: function(field) {
var val = Ext.String.format('<a href="{0}">{1}</a>', 'http://google.de', 'Google.de')
field.inputEl.setHTML(val);
}
}
}]
});
return win;
};
var win = createWindow();
});