如何在EXTJS中创建带有垂直滚动条的多行输入?
我用了这个
noteField = new Ext.form.TextField({
emptyText: 'note...',
multiline: true,
applyTo: 'txtNote',
maxLength: 250
});
noteField.setSize(200, 100);但输入不是多行...
有人能帮我吗?
发布于 2010-07-06 01:23:03
您需要使用:
Ext.form.TextArea()如下所示:
var noteField = new Ext.form.TextArea({
//config here
});发布于 2018-06-16 17:54:16
使用TextArea而不是TextField。我也遇到过同样的问题。下面的代码片段适用于我:
editor: new Ext.form.TextArea({
})发布于 2018-06-16 18:42:31
试试下面的
Ext.create('Ext.form.Panel', {
fullscreen: true,
items: [{
xtype: 'fieldset',
title: 'About you',
items: [{
xtype: 'textfield',
label: 'Name',
name: 'name'
}, {
xtype: 'textareafield',
label: 'Bio',
maxRows: 4,
name: 'bio'
}]
}]
});https://stackoverflow.com/questions/3180936
复制相似问题