admin管理员组文章数量:1287569
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?
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?
Share Improve this question edited Jul 5, 2010 at 17:28 Bella 3,21724 silver badges26 bronze badges asked Jul 5, 2010 at 16:22 VigjVigj 814 silver badges8 bronze badges3 Answers
Reset to default 10You need to be using:
Ext.form.TextArea()
Like so:
var noteField = new Ext.form.TextArea({
//config here
});
try the below
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'
}]
}]
});
Use TextArea
instead of TextField
. I have also faced the same issue. This code snippet works for me:
editor: new Ext.form.TextArea({
})
本文标签: javascriptExtJs multiline inputStack Overflow
版权声明:本文标题:javascript - ExtJs multiline input - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741225020a2361696.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论