- <p><a href="http://extjs.com/deploy/dev/docs/?class=Ext.layout.FitLayout" target="_blank">API Reference</a></p>
- </div>
- <div id="form-details">
- <h2>Ext.layout.FormLayout</h2>
- <p>FormLayout has specific logic to deal with form fields, labels, etc. While you can use a FormLayout in
- a standard panel, you will normally want to use a FormPanel directly in order to get form-specific functionality
- like validation, submission, etc. FormPanels use a FormLayout internally so the layout config is not needed
- (and the layout may not render correctly if overridden).</p>
- <p><b>Sample Config:</b></p>
- <pre><code>
-xtype: 'form', // FormPanel
-labelWidth: 75,
-width: 350,
-defaultType: 'textfield',
-items: [{
- fieldLabel: 'First Name',
- name: 'first',
- allowBlank:false
- },{
- fieldLabel: 'Last Name',
- name: 'last'
- },{
- fieldLabel: 'Company',
- name: 'company'
- },{
- fieldLabel: 'Email',
- name: 'email',
- vtype:'email'
- }
-],
-buttons: [
- {text: 'Save'},
- {text: 'Cancel'}
-]
- </code></pre>
- <p><a href="http://extjs.com/deploy/dev/docs/?class=Ext.layout.FormLayout" target="_blank">API Reference</a></p>