Skip to content

Instantly share code, notes, and snippets.

@bmoeskau
Created July 28, 2011 07:19
Show Gist options
  • Select an option

  • Save bmoeskau/1111141 to your computer and use it in GitHub Desktop.

Select an option

Save bmoeskau/1111141 to your computer and use it in GitHub Desktop.
Ext.onReady(function() {
Ext.create('Ext.form.Panel', {
title: 'FieldContainer Example',
width: 550,
bodyPadding: 10,
items: [{
xtype: 'fieldcontainer',
fieldLabel: 'Foo',
labelWidth: 100,
layout: 'auto',
items: [{
xtype: 'container',
layout: 'hbox',
items: [{
xtype: 'textfield',
flex: 1
}, {
xtype: 'textfield',
width: 50
}, {
xtype: 'textfield',
flex: 1
}]
},{
xtype: 'container',
layout: 'hbox',
items: [{
xtype: 'textfield',
flex: 1
}, {
xtype: 'textfield',
flex: 1
}, {
xtype: 'textfield',
flex: 1
}]
}]
},{
xtype: 'textfield',
fieldLabel: 'Bar'
}],
renderTo: Ext.getBody()
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment