PDA

View Full Version : form panel



lavap
26 May 2010, 11:00 PM
Hi..

I have created a logoin page..
and I want add some text after the login button in the form panel..
is it possible???
if possible plz help me..
here is my code..








Ext.onReady(function () {

Ext.QuickTips.init();
var login = new Ext.FormPanel({

labelWidth:80,
frame:true,
title:'Please Login with your credentials',
defaultType:'textfield',

items:[{


fieldLabel: 'User Id',
},{


fieldLabel: 'Password',
inputType:'password'
}],

buttons:[{

text:'Login',


}]



});

var win = new Ext.Window({

layout:'fit',

width:300,

height:150,

closable: false,

resizable: false,

plain: true,

border: false,

items: [login]

});

win.show();



});

crysfel
27 May 2010, 7:45 AM
Add the "fbar" property to your window, that way the text will be below of your button.



var win =new Ext.Window({
fbar : [{xtype:"panel",html:"This is a text!",border:false,bodyStyle:"background:none;"}],
.....
});


best regards