Ext & FormsΒΆ

Ext is very powerful regarding forms. They can be very complex, but let’s make things simple, as in example 07_forms.html:

1
2
3
4
5
6
            var textInput = new Ext.form.TextField({
                    fieldLabel: "Firstname",
                    });
            var checkBox = new Ext.form.Checkbox({
                    fieldLabel: "Use",
                    });

add defined inputs to form:

1
2
3
4
5
6
7
8
9
            var form = new Ext.form.FormPanel({
                    title: "Form panel",
                    items: [textInput,checkBox],
                    width: 500,
                    height: 200,
                    frame: true,
                    renderTo: Ext.getBody(),
                    buttons: [{text:"Submit"}]
                });

Previous topic

Grids and Data in Ext

Next topic

Ext and Trees

This Page