View Full Version : Set text in textarea (simple solution?)

31 Oct 2012, 3:34 PM
This might be a really easy questions but I cant figure out how to set the text in a textarea. All I can do is set exampleText but I'd like to have the textarea pop up with something in in which the user can edit

I couldnt find any methods/properties in the doc... http://docs.sencha.com/ext-js/4-0/#!/api/Ext.form.field.TextArea

31 Oct 2012, 5:58 PM
You can set value config when creating a new instance of textarea config or use <textareaInstance>.setValue('textarea content').

1 Nov 2012, 4:51 PM
thanks! The fact that that method took type 'value' instead of 'string' threw me off I guess, shoulda just tried it anyway