2010-07-05 50 views
0

如何在EXTJS中創建垂直滾動條的多行輸入?ExtJs多行輸入

我用這個

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

      noteField.setSize(200, 100); 

但是輸入並不多...

有人能幫助我嗎?

回答

8

您需要使用:

Ext.form.TextArea() 

像這樣:

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