1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    53
    Vote Rating
    0
    evs.saad is on a distinguished road

      0  

    Default Unanswered: Display Three text fields in a Row

    Unanswered: Display Three text fields in a Row


    Hi,
    Can anyone tell me that how can we display or manage the fields with their labels in extjs. I want to display three text fields in a row with their respective labels. I am successful in displaying the fields but without labels. Here is my code.

    Code:
    {
              xtype       : 'container',
              border      : false,
              layout      : 'column',
              anchor      : '100%',
              defaultType : 'field',items :[
                {
                    boxLabel: 'To Date',
                    xtype: 'datefield',
                    id: 'to_date',
                    style: "float: left; margin-left:3px;"
                },
                {
                    boxLabel: 'From Date',
                    xtype: 'datefield',
                    id: 'from_date',
                    style: "float: left;margin-left:3px"
                },
                
                {
                    boxLabel: 'Patient',
                    id:'patient',    
                    xtype: 'textfield',
                    style: "float: left;margin-left:3px"    
                    
                }
                ]}
    Thanks in advance

  2. #2
    Sencha User
    Join Date
    Dec 2009
    Location
    Enschede, The Netherlands
    Posts
    327
    Answers
    16
    Vote Rating
    13
    flanders will become famous soon enough

      0  

    Default


    Text and date fields do not take an boxLabel but a fieldLabel. I believe that will solve your problems :P

Thread Participants: 1