PDA

View Full Version : Input text in tab title.



whiteinu
6 Feb 2008, 2:22 PM
Hello,

I added input text to tab title.

But it's not working well.

For example, if i type and click the text field, it doesn't show text cursor.

Alos, I can't drag some text in the text field.

How can I fix it?

Here's my code. Thanks in advance.


tabs.add({
title: '<div id="textfield"></div>',
html: 'html'
}).show();

new Ext.form.Field({
renderTo: 'textfield',
width: 100,
height: 24,
listeners: {
'specialkey': function(panel, event){
if (event.getKey() == 13)
doSomething();
}
}
}).show();