13693261870
2022-09-16 354b3dbfbffb3df45212a2a44dbbf48b4acc2594
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
Ext.define('KitchenSink.view.form.ContactForm', {
    extend: 'Ext.form.Panel',
    xtype: 'contact-form',
    
    //<example>
    exampleTitle: 'Contact Form',
    exampleDescription: [
        '<p>Demonstrates a simple contact form.</p>'
    ].join(''),
    //</example>
    
    title: 'Contact Us',
    frame: true,
 
    width: 400,
    layout: 'anchor',
    border: false,
    bodyPadding: 10,
    fieldDefaults: {
        labelAlign: 'top',
        labelWidth: 100,
        labelStyle: 'font-weight:bold'
    },
    defaults: {
        anchor: '100%',
        margins: '0 0 10 0'
    },
    items: [{
        xtype: 'fieldcontainer',
        fieldLabel: 'Your Name',
        labelStyle: 'font-weight:bold;padding:0',
        layout: 'hbox',
        defaultType: 'textfield',
        fieldDefaults: {
            labelAlign: 'top'
        },
        items: [{
            flex: 1,
            name: 'firstName',
            fieldLabel: 'First',
            allowBlank: false
        },
        {
            width: 30,
            name: 'middleInitial',
            fieldLabel: 'MI',
            margins: '0 0 0 5'
        },
        {
            flex: 2,
            name: 'lastName',
            fieldLabel: 'Last',
            allowBlank: false,
            margins: '0 0 0 5'
        }]
    },
    {
        xtype: 'textfield',
        fieldLabel: 'Your Email Address',
        vtype: 'email',
        allowBlank: false
    },
    {
        xtype: 'textfield',
        fieldLabel: 'Subject',
        allowBlank: false
    },
    {
        xtype: 'textareafield',
        fieldLabel: 'Message',
        labelAlign: 'top',
        height: 120,
        margin: '0',
        allowBlank: false
    }],
    buttons: [{
        text: 'Cancel'
    },
    {
        text: 'Send'
    }]
});