on-internet
← Community

Extjs Layout table with colspan on a for fields

Stack Overflow ·

I have a simple form in extjs, I want the first field to take 2 spaces in the table layout: Ext.create('Ext.form.Panel', { renderTo: Ext.getBody(), title: 'Form Panel', bodyStyle: 'padding:5px 5px 0', width: 600, layout: { type: 'table', columns: 3, tableAttrs: { style: { width: '100%' } } }, fieldDefaults: { labelAlign: 'top' }, items: [{ colspan: 2, xtype: 'textfield', fieldLabel: 'Field 1 Take 2 spaces', }, { xtype: 'textfield', fieldLabel: 'Field 2', }, { xtype: 'textfield', fieldLabel: 'Field 3', }, { xtype: 'textfield', fieldLabel: 'Field 4', }], }); It is not working. Have a look here:

Comments

Sign in or sign up to comment and upvote.

No comments yet.