PDA

View Full Version : ABC- Create login form using Ext.Panel



Riaz
19 Oct 2010, 8:26 PM
I have attached my code who wants to familiar with Sencha Touch . If you have better coding please inform me.



Ext.setup({
onReady: function () {

//** BEGIN - LOGIN FORM
var login = new Ext.Panel({
id: 'login',
floating: true,
centered: true,
hideOnMaskTap: false,
width: 400,
height: 240,
layout: 'fit',
items: [{
xtype: 'fieldset',
title: 'Please Log On',
defaults: {
required: true,
labelAlign: 'left'
},
items: [{
xtype: 'textfield',
name: 'UserName',
label: 'User Name',
autoCapitalize: false
}, {
xtype: 'passwordfield',
name: 'Password',
label: 'Password'
},{
xtype: 'button',
text: "Log On"
}]
}]

});
//** BEGIN - LOGIN FORM
login.show();
}
});