ctantalo
19 Nov 2012, 1:38 PM
I have something that I think would be very simple and easy to implement, but everything I have tried.. falls short.
My model and store work fine, returning data, etc. One field in my model is type String, and contains HTML text.
When it is displayed in my panel, which just houses one TEXTAREA, the tags and such are there.
How do I display this as just HTML? I have tried functions to do an encode, but either I have syntax wrong, or this cant be simply done.
BTW< it doesnt have to be a textarea, but can be a panel, or whatever to make this work.
Ext.create('Ext.form.Panel', {
height: 500,
columnWidth: .6,
bodyPadding: 10,
defaults: {
anchor: '100%',
labelWidth: 100
},
items :[
{
xtype :'textareafield',
name: 'testProcDesc',
fieldLabel: 'Description',
height: 300,
readOnly: true
}
My model and store work fine, returning data, etc. One field in my model is type String, and contains HTML text.
When it is displayed in my panel, which just houses one TEXTAREA, the tags and such are there.
How do I display this as just HTML? I have tried functions to do an encode, but either I have syntax wrong, or this cant be simply done.
BTW< it doesnt have to be a textarea, but can be a panel, or whatever to make this work.
Ext.create('Ext.form.Panel', {
height: 500,
columnWidth: .6,
bodyPadding: 10,
defaults: {
anchor: '100%',
labelWidth: 100
},
items :[
{
xtype :'textareafield',
name: 'testProcDesc',
fieldLabel: 'Description',
height: 300,
readOnly: true
}