width:175
}),
+
+
new Roo.form.TextField({
fieldLabel: 'Company',
name: 'company',
name: 'email',
vtype:'email',
width:225
+ },
+
+ {
+ xtype : 'Select',
+ fieldLabel: 'Country',
+ name: 'scountry',
+ //vtype:'email',
+ width:225,
+ valueField :'code',
+ displayField : 'title',
+ emptyText : 'Select a country',
+ store: {
+ xtype : 'Store',
+ xns: Roo.data,
+
+ proxy: {
+ xns : Roo.data,
+ xtype : 'HttpProxy',
+ url: 'sample.data.json'
+ },
+ reader: {
+ xns : Roo.data,
+ xtype : 'JsonReader',
+ root: 'data',
+ totalProperty: 'totalCount',
+ id: 'post_id',
+ fields : [
+ 'code', 'title'
+ ]
+ }
+ },
}
]
- },
+ },
+
+
+
{
xtype : 'Column',
mform.addButton('Save');
mform.addButton('Cancel');
-
+ /*
mform.render('form-ct2');
mform.setValues({
country : 'AK,LA',
countrylist : 'AG,AZ',
countrylist_names : 'Antigua and Barbuda,Azerbaijan'
});
+ */
/*
* ================ Form 3 =======================
*/
xtype: 'Checkbox',
xns : Roo.form,
- fieldLabel: 'A checkbox',
+ fieldLabel: 'A checkbox',
boxLabel:'RooJS v1.1.1',
name:'extuser',
inputValue : '1',
listeners : {
confirm : function (_self)
{
- Roo.log(this.getImageDataURI());
+ Roo.log(_self.getImageDataURI());
Roo.log('in confirm');
}
},