View Full Version : Textarea word wrapping
mattn
5 Jun 2007, 11:43 PM
Hello,
How can I enable word wrapping in a textarea
thx for the help
Animal
6 Jun 2007, 12:14 AM
http://www.idocs.com/tags/forms/_TEXTAREA_WRAP.html
Thx for the reply but this is for html, how can i do it for extjs?
new Ext.form.TextArea({
fieldLabel: 'Schrijven',
name: 'schrijven',
grow: true,
preventScrollbars:true,
value: ''
})
Animal
6 Jun 2007, 1:50 AM
Set the attribute.
How can I set these attributes for the textarea above?
I tried several things but didn't found it
sorry for the noob questions & thx for the help
tryanDLS
6 Jun 2007, 8:56 AM
The TextArea control wraps by default. That's assuming that the the text contains a blank space to break on. If not, it won't wrap.
Ok thx that was indeed the problem I tried a string without spaces
talshadar
27 Mar 2009, 8:01 AM
but the textarea totally isn't working for me. It will not word wrap nor will it accept an ENTER as a new line - it's just one loooooong line of text.
tDescription = new Ext.form.TextField({
fieldLabel:"Description"
,name:"Description"
,tabIndex:3
,width:250
,height:90
,allowBlank:false
,disableKeyFilter:true
});
That is what I have. I don't want the text area to grow - it needs to be the set size with scroll bars appearing as needed and the user needs to be able to actually use the enter key to add new lines. Any suggestions?
This is the most frustrating thing I've found with ExtJS - the lack of REAL dupport documentation. php.org is the best example of documentation I've seen and the extJS docs don't even come close. It should NOT be so bloody difficult to get things to work and so much of the time I'm stuck to waiting for someone to help me with what is usually such a simple simple thing to do. It is so frustrating. The ExtJS community is awesome, don't get me wrong. There are so many people that are extremely helpful and a lot of good advice in the forums, it really does make a difference and is pretty much the only reason I keep using and trying to learn the tool. But I still maintain it's a LOT harder than it has to be. Concrete examples shouldn't be difficult to find but in alot of cases it's impossible to find an exact example.
Sorry for the added rant but it's been frustrating me ever since I started using it and after spending the last 2 1/2 days banging my head on the stupidest littlest things I'm more than a little frustrated.
talshadar
1 Apr 2009, 1:32 PM
As most of you probably know, if you hold the ALT key and using the number pad, type in the ascii code for characters - you get the character. IE: ALT - 255 == space. ALT 13 SHOULD be a enter/return but in the TextArea - it's returned as a pretty little musical note. ♪ <-- just like that. So that would explain why hitting enter isn't doing a thing.
This is pretty important to get resolved so any help would be appreciated.
talshadar
1 Apr 2009, 1:43 PM
It's working now - have NO idea why:
tDescription = new Ext.form.TextArea({
fieldLabel:"Description",
name:"Description",
tabIndex:4,
width:250,
height:90,
allowBlank:false,
disableKeyFilter:true
});
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.