Basic Textfield Input Layout
In this example we put together the following layout that correctly grows vertically, as fields/errors are added:
JS
Ext.create('Ext.form.FieldSet',{ title: 'Search Filter' , renderTo: Ext.getBody() , width: 300 , collapsible: true , iconCls: 'icon-properties' , style: 'background-color: #F1F1F1; margin: 30px auto;' , defaults: { // applies to every "item" below xtype: 'textfield' , fieldLabel: 'Test' , msgTarget: 'under' , anchor: '-25' , allowBlank: false } , items: [ {},{},{} // will use "defauts" configuration ] }); |
Next -> Adding [+] “Add” button to fieldset
Fieldset /w Dynamic Controls (3),
One thought on “Fieldset /w Dynamic Controls (3)”