-
2 Mar 2012 10:25 PM #1
Answered: Show labels at the top of text fields
Answered: Show labels at the top of text fields
Hello !
i hope all of you are in great state of health , i have a prob , i want to show my labels of my text fields at the top of them. as shown in attached image file , please help me in this .
Best Regards
-
Best Answer Posted by chramer
here you go!
http://jsfiddle.net/serju/P4aX9/1/
PHP Code:Ext.create('Ext.container.Container', {
layout: {
type: 'hbox'
},
width: 600,
renderTo: Ext.getBody(),
defaults: {
labelWidth: 80,
labelAlign : 'top',
xtype : 'textfield'
},
items: [{
fieldLabel: 'Id'
},{
fieldLabel: 'Name'
},{
fieldLabel : 'City'
}]
});
-
2 Mar 2012 11:08 PM #2
You should config your textfield with labelAlign set to 'top'.
-
2 Mar 2012 11:28 PM #3
Thanks for the reply
Thanks for the reply
i am newbie so i have no idea , i need help of people like you at every single step. can you please show me some coding.
Best Regards
-
2 Mar 2012 11:48 PM #4
here you go!
http://jsfiddle.net/serju/P4aX9/1/
PHP Code:Ext.create('Ext.container.Container', {
layout: {
type: 'hbox'
},
width: 600,
renderTo: Ext.getBody(),
defaults: {
labelWidth: 80,
labelAlign : 'top',
xtype : 'textfield'
},
items: [{
fieldLabel: 'Id'
},{
fieldLabel: 'Name'
},{
fieldLabel : 'City'
}]
});
-
3 Mar 2012 12:13 AM #5
thanks for your interest sir , but i am not using php , i am using asp.net .can you please do something in asp.net .thanks again sir.
Regards
-
3 Mar 2012 1:55 AM #6
that's pure EXTJS, Sir!
that's all it is
Just within PHP tags, for better formating..
-
3 Mar 2012 2:08 AM #7
-
5 Mar 2012 12:05 AM #8
thanks for your valuable time and comments ,
God Bless You


Reply With Quote