Quantcast
Channel: Neueste Diskussionen - Shopware Community Forum
Viewing all articles
Browse latest Browse all 14594

i want to add dynamic fields inside for loop in extjs

$
0
0

createFormContent: function () {
    var me = this;
    var result;
    Ext.Ajax.request({
        url: '{url controller="" action=""}',
        params: {
        },
        success: function (response) {
            result = JSON.parse(response.responseText);
            alert(result.count);
            for (var i = 1; i <= result.count; i++) {                    
                me.customField+i = Ext.create('Ext.form.field.Text', {
                    name: ,
                    fieldLabel: ,
                    anchor: '95%',
                    labelWidth: 150,
                    width: '95%'
                });
            }
        }
    });
},


Viewing all articles
Browse latest Browse all 14594


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>