m4manas
20 Jan 2012, 10:34 AM
<code>
var panel = new Ext.form.FormPanel({
xtype: 'fieldset',
id: 'tweetFieldset',
title: 'Tweet Reply',
items:[{
items: [{
id: 'tweetMessage',
xtype: 'panel',
html: "tweet"
}, {
xtype: 'textareafield',
name: 'tweetReply',
}]
}, {
items: [{
id: 'replyTweetButton',
xtype: 'button',
width:'150',
ui: 'confirm-round',
text: 'Reply',
handler: this.onTweetReply,
scope: this
}]
}]
});
</code>
I want to change the html value of the tweetMessage panel from a function. I m trying to do
Ext.getCmp('tweet').setValue('new tweet');
But it does not works.
Any suggestions
var panel = new Ext.form.FormPanel({
xtype: 'fieldset',
id: 'tweetFieldset',
title: 'Tweet Reply',
items:[{
items: [{
id: 'tweetMessage',
xtype: 'panel',
html: "tweet"
}, {
xtype: 'textareafield',
name: 'tweetReply',
}]
}, {
items: [{
id: 'replyTweetButton',
xtype: 'button',
width:'150',
ui: 'confirm-round',
text: 'Reply',
handler: this.onTweetReply,
scope: this
}]
}]
});
</code>
I want to change the html value of the tweetMessage panel from a function. I m trying to do
Ext.getCmp('tweet').setValue('new tweet');
But it does not works.
Any suggestions