Ext JS - Learning Center

Manual:Forms:BasicForm

From Learn About the Ext JavaScript Library

Jump to: navigation, search

When using 'SetValues' for form elements, an object array with id, value pairs is required similar to :

myform = new Ext.form.Form({
    labelWidth : 75
});
myform.add (
    new Ext.form.TextArea({
        fieldLabel : 'label for box 1',
        name : 'myfield1',
        height : 50
    })
);
myform.setValues([
    { id : 'myfield1', value : '123' },
    { id : 'myfield2', value : '456' }
]);
  • This page was last modified 23:28, 14 June 2007.
  • This page has been accessed 15,078 times.