????????????????
sencha-touch-1.0.1a????????????????examples???sencha-touch??????????????Form?textfield??????????????????????????
examples - forms ? index.js ?????Form????
?examples - forms - index.js ????
var formBase = {
scroll: 'vertical',
url : 'postUser.php',
standardSubmit : false,
items: [
{
xtype: 'fieldset',
title: 'Personal Info',
instructions: 'Please enter the information above.',
defaults: {
required: true,
labelAlign: 'left',
labelWidth: '40%'
},
items: [
{
xtype: 'textfield',
name : 'name',
label: 'Name',
useClearIcon: true,
autoCapitalize : false
},
?????
?????????
??????
form = new Ext.form.FormPanel(formBase);
form.show();
????FormPanel ??????????
??????????????????????
form.getValues().name????????????
?????Form????????kitchensink ??? forms.js ???????
??????????????????????????????
?examples - kitchensink - src - demos - forms.js ????
demos.Forms = new Ext.TabPanel({
items: [{
title: 'Basic',
xtype: 'form',
id: 'basicform',
scroll: 'vertical',
items: [{
xtype: 'fieldset',
title: 'Personal Info',
instructions: 'Please enter the information above.',
defaults: {
// labelAlign: 'right'
labelWidth: '35%'
},
items: [{
xtype: 'textfield',
name: 'name',
label: 'Name',
placeHolder: 'Tom Roy',
autoCapitalize : true,
required: true,
useClearIcon: true
},
???????basicform.getValues().name???????????
???????????????????
TabPanel ???xtype: 'form',???????????
??????????????????????????
????????????????????????????????
?????????????