Results 1 to 8 of 8

Thread: Show labels at the top of text fields

  1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    31
    Vote Rating
    0
      0  

    Smile 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
    Attached Images Attached Images

  2. here you go!
    http://jsfiddle.net/serju/P4aX9/1/
    PHP Code:
    Ext.create('Ext.container.Container', {
        
    layout: {
            
    type'hbox'
        
    },
        
    width600,
        
    renderToExt.getBody(),
        
    defaults: {        
            
    labelWidth80,
            
    labelAlign 'top',
            
    xtype 'textfield'
        
    },
        
    items: [{                
            
    fieldLabel'Id'
        
    },{
            
    fieldLabel'Name'
        
    },{    
            
    fieldLabel 'City'       
        
    }]
    }); 

  3. #2
    Sencha User
    Join Date
    Jan 2012
    Posts
    1,376
    Answers
    347
    Vote Rating
    114
      0  

    Default

    You should config your textfield with labelAlign set to 'top'.

  4. #3
    Sencha User
    Join Date
    Feb 2012
    Posts
    31
    Vote Rating
    0
      0  

    Default 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

  5. #4
    Sencha User chramer's Avatar
    Join Date
    Feb 2011
    Location
    Chisinau, Moldova
    Posts
    223
    Answers
    42
    Vote Rating
    12
      0  

    Default

    here you go!
    http://jsfiddle.net/serju/P4aX9/1/
    PHP Code:
    Ext.create('Ext.container.Container', {
        
    layout: {
            
    type'hbox'
        
    },
        
    width600,
        
    renderToExt.getBody(),
        
    defaults: {        
            
    labelWidth80,
            
    labelAlign 'top',
            
    xtype 'textfield'
        
    },
        
    items: [{                
            
    fieldLabel'Id'
        
    },{
            
    fieldLabel'Name'
        
    },{    
            
    fieldLabel 'City'       
        
    }]
    }); 

  6. #5
    Sencha User
    Join Date
    Feb 2012
    Posts
    31
    Vote Rating
    0
      0  

    Default

    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

  7. #6
    Sencha User chramer's Avatar
    Join Date
    Feb 2011
    Location
    Chisinau, Moldova
    Posts
    223
    Answers
    42
    Vote Rating
    12
      0  

    Default

    that's pure EXTJS, Sir!
    that's all it is
    Just within PHP tags, for better formating..

  8. #7
    Sencha Premium Member vadimv's Avatar
    Join Date
    Sep 2010
    Location
    Cluj, Romania
    Posts
    688
    Answers
    23
    Vote Rating
    50
      0  

    Default


  9. #8
    Sencha User
    Join Date
    Feb 2012
    Posts
    31
    Vote Rating
    0
      0  

    Default

    thanks for your valuable time and comments ,

    God Bless You

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •