1. #1
    Ext User
    Join Date
    Aug 2007
    Posts
    39
    Vote Rating
    0
    perler is on a distinguished road

      0  

    Default Login form with user/password/remember

    Login form with user/password/remember


    Hi,

    I'm trying to create a login form.
    Code:
            var form = new Ext.FormPanel({
                        id: "form1",
                        labelWidth: 100,
                        url:'/login',
                        frame:true,
                        
                        bodyStyle: "margin-top: 130px; margin-left: 70px",
                        defaultType: 'textfield',
                        defaults: {width: "200px"},
                                    
                        items: [{
                                    fieldLabel: 'Username',
                                    name: 'user'
                                },{
                                    fieldLabel: 'Password',
                                    name: 'password',
                                    inputType: "password"
                                },{
                                fieldLabel: 'Remember me',
                                name: 'remember',
                                inputType: 'checkbox', width: ''}
                                ]
                        
                        
                 });
    Works fine so far, but I want the "remember me" field to look like this form: http://search.chemidex.com/login.aspx?lid=2
    I found "hideLabel", but I still need a label...

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,546
    Vote Rating
    64
    Animal is a jewel in the rough Animal is a jewel in the rough Animal is a jewel in the rough

      0  

    Default


    Use boxLabel with Checkbox.

    and labelSeparator: ''

Thread Participants: 1