views:

20

answers:

1

How do i create a multiline input with vertical scrollbars in EXTJS?

I used this

 noteField = new Ext.form.TextField({
                emptyText: 'note...',
                multiline: true,
                applyTo: 'txtNote',
                maxLength: 250
            });

            noteField.setSize(200, 100);

but the input is not multiline...

Someone can help me?

+1  A: 

You need to be using:

 Ext.form.TextArea()

Like so:

 var noteField = new Ext.form.TextArea({
      //config here    
 });
DRL