Wie Sie ExtJS textfield Breite nach zu seinem container

Benutze ich nun ExtJS version 4.2.1 und ich habe ein table layout.

     Ext.create('Ext.panel.Panel', {
            width: 1300,
            height: 700,
            title: 'Table Layout',
            layout: {
                type: 'table',
                columns: 3,
                tdAttrs:
                    {
                        width: 500,
                    }
            },
            items: [
                {
                    fieldLabel: 'Text1',
                    xtype: 'textfield',
                },
                {
                    fieldLabel: 'Text2',
                    xtype: 'textfield',
                },
                {
                    fieldLabel: 'Text3',
                    xtype: 'textfield',
                },
                {
                    fieldLabel: 'Text4',
                    xtype: 'textfield',
                },
                 {
                     fieldLabel: 'Text5',
                     xtype: 'textfield',
                 },
                {
                    fieldLabel: 'Text6',
                    xtype: 'textfield',
                }],
            renderTo: Ext.getBody()
        });

und das Ergebnis ist:
Wie Sie ExtJS textfield Breite nach zu seinem container
jede Spalte der Breite ist 500 Pixel und ich möchte jedes textfield-Breite passen Sie mit Ihrem container. irgendwie eine autobreite,Aber nicht jetzt.

InformationsquelleAutor Hadi zamani | 2014-05-19
Schreibe einen Kommentar